aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFWriter.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 2f878492..0ab2f2ad 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -353,6 +353,11 @@ class QPDFWriter
QPDF_DLL
void setLinearization(bool);
+ // Create PCLm output. Enables writing unreferenced objects,
+ // set PCLm header and writes pages before file catalog and page tree.
+ QPDF_DLL
+ void setPCLm(bool);
+
QPDF_DLL
void write();
@@ -417,9 +422,11 @@ class QPDFWriter
void prepareFileForWrite();
void writeStandard();
void writeLinearized();
+ void writePCLm();
void enqueuePart(std::vector<QPDFObjectHandle>& part);
void writeEncryptionDictionary();
void writeHeader();
+ void writePCLmHeader();
void writeHintStream(int hint_id);
qpdf_offset_t writeXRefTable(
trailer_e which, int first, int last, int size);
@@ -492,6 +499,7 @@ class QPDFWriter
bool encrypted;
bool preserve_encryption;
bool linearized;
+ bool pclm;
qpdf_object_stream_e object_stream_mode;
std::string encryption_key;
bool encrypt_metadata;