mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 02:43:52 +08:00
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>
24 lines
290 B
Plaintext
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 |