Skip to content

v4.6.8

Latest
Compare
Choose a tag to compare
@galkahana galkahana released this 13 Dec 14:08

With this version it is now possible to ask PDFWriter to generate an Xref table using PDF 1.5 Xref streams, instead of a default method of writing Xref table. This allows creating PDF files that are larger than 10gbs, a limitation created by how default xref tables are written.

To use this feature provide true as the value of a new parameter in PDFCreationSettings, as in the following example:

EStatusCode status = pdfWriter.StartPDF(
    "./myfile.pdf",
    ePDFVersion15,
    LogConfiguration::DefaultLogConfiguration(),
    PDFCreationSettings(
        true,
        true,
        EncryptionOptions::DefaultEncryptionOptions(), 
        // use true as the 4th parameter value to set WriteXrefAsXrefStream 
        // and generate xref table as xref stream
        true
    )
);

Make sure to set the version to one that's higher or equal to PDF1.5 on your PDFs to mark to readers that you are using this feature (or other 1.5 or higher features).

What's Changed

  • conf: setup to allow building libtiff to support ia32 envs in node by @galkahana in #285
  • feat: properly treat errors from recording out of bounds positions in very large files by @galkahana in #290
  • feat: allow asking for using xref streams, which opens the option to build very large files by @galkahana in #291

Full Changelog: v4.6.7...v4.6.8