aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-12-27 17:39:01 +0100
committerJay Berkenbilt <ejb@ql.org>2012-12-31 11:36:48 +0100
commit04c203ae060458ae39253263c7dd1c603b931bf0 (patch)
tree2ef17e10a0e62146ae9a8b57d1c6e86fe452bf5d /include
parentb4b8b28ed237f127c6b8c31fbb244efacc70e0a8 (diff)
downloadqpdf-04c203ae060458ae39253263c7dd1c603b931bf0.tar.zst
Eliminate flattenScalarReferences
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh16
-rw-r--r--include/qpdf/QPDFWriter.hh1
2 files changed, 1 insertions, 16 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 64858625..b2e73929 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -352,24 +352,8 @@ class QPDF
void optimize(std::map<int, int> const& object_stream_data,
bool allow_changes = true);
- // Replace all references to indirect objects that are "scalars"
- // (i.e., things that don't have children: not arrays, streams, or
- // dictionaries) with direct objects.
- QPDF_DLL
- void flattenScalarReferences();
-
- // Decode all streams, discarding the output. Used to check
- // correctness of stream encoding.
- QPDF_DLL
- void decodeStreams();
-
// For QPDFWriter:
- // Remove /ID, /Encrypt, and /Prev keys from the trailer
- // dictionary since these are regenerated during write.
- QPDF_DLL
- void trimTrailerForWrite();
-
// Get lists of all objects in order according to the part of a
// linearized file that they belong to.
QPDF_DLL
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 725b2be8..611c6aef 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -299,6 +299,7 @@ class QPDFWriter
void setDataKey(int objid);
int openObject(int objid = 0);
void closeObject(int objid);
+ void prepareFileForWrite();
void writeStandard();
void writeLinearized();
void enqueuePart(std::vector<QPDFObjectHandle>& part);