Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow asking for using xref streams, which opens the option to build very large files #291

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

galkahana
Copy link
Owner

Enable using Xref streams for regular PDF files (and not just modified files, as it was). To do this provide StartPDF/StartPDFForStream with PDFCreationSettings which inWriteXrefAsXrefStream is true. You should also aim for PDFVersion of 1.5 or higher (the last one is more for the sake of readers as xref streams are a 1.5 feature (or higher).

See XrefStreamsTest.cpp for an example.

What this allows is to lift the limit of 10gbs for file size imposed by regular xrefs that use 10 decimal digits to describe file offset. You can now use the full long long kind of size (~8 EBs or ~8K TBs).

@galkahana galkahana merged commit 88a7ba0 into master Dec 8, 2024
7 checks passed
@galkahana galkahana deleted the galk.xref_streams_in_regular_files branch December 8, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant