mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 20:37:52 +08:00
Normalize rotations read from PDF documents. Make FPDFPage_GetRotation always return a value 0 to 3 as specified in fpdf_edit.h instead of returning the page rotation / 90 (page rotation may be negative for some PDFs). BUG=chromium:713197 Change-Id: Ie477803f7d298b777a3ace89b21cfda8b7f6808b Reviewed-on: https://pdfium-review.googlesource.com/4532 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
28 lines
351 B
Plaintext
28 lines
351 B
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
>>
|
|
endobj
|
|
{{object 2 0}}<<
|
|
/Type /Pages
|
|
/MediaBox [0 0 600 800]
|
|
/Count 1
|
|
/Kids [ 3 0 R ]
|
|
>>
|
|
endobj
|
|
{{object 3 0}}<<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Resources <<>>
|
|
/Rotate -90
|
|
>>
|
|
endobj
|
|
{{xref}}
|
|
trailer <<
|
|
/Size 4
|
|
/Root 1 0 R
|
|
>>
|
|
{{startxref}}
|
|
%%EOF
|