diff options
author | Sahil Arora <sahilarora.535@gmail.com> | 2017-08-01 14:16:24 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-22 00:55:02 +0200 |
commit | b19210fa7dbab7efa7a3cd65653be4ff2f6e08e9 (patch) | |
tree | f73f03a51c308c3b4241e815a9eda469df73e5d9 /include/qpdf | |
parent | 3b170ab0621e24285462c2e1c7b083b1e564267f (diff) | |
download | qpdf-b19210fa7dbab7efa7a3cd65653be4ff2f6e08e9.tar.zst |
QPDFWriter: Add setPCLm() and writePCLm() methods
* Add support for PCLm using setPCLm() and writePCLm() methods in
QPDFWriter.hh and QPDFWriter.cc
* Add a function writePCLmHeader() for PCLm header in QPDFWriter
Diffstat (limited to 'include/qpdf')
-rw-r--r-- | include/qpdf/QPDFWriter.hh | 8 |
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; |