pdfium/testing/resources/version_in_catalog.in
Helmut Januschka c31ed43bee Implement PDF version handling from catalog dictionary
Add support for reading PDF version from the Version entry in the
catalog dictionary. The catalog version takes precedence over the
file header version.


Bug: 409579362
Change-Id: I581e01a2ce79fd68126696a6ccbe45046f767bb4
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/130850
Auto-Submit: Helmut Januschka <helmut@januschka.com>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
2025-04-23 13:01:52 -07:00

24 lines
290 B
Plaintext

{{header}}
%PDF-1.5
{{object 1 0}} <<
/Type /Catalog
/Version /1.6
/Pages 2 0 R
>>
endobj
{{object 2 0}} <<
/Type /Pages
/Count 1
/Kids [3 0 R]
>>
endobj
{{object 3 0}} <<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
>>
endobj
{{xref}}
{{trailer}}
{{startxref}}
%%EOF