mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-30 10:21:46 +08:00
FPDF_Thumbnail API contains: - FPDFPage_GetRawThumbnailDataFromPage() - FPDFPage_GetDecodedThumbnailDataFromPage() - FPDFPage_GetThumbnailAsBitmapFromPage() These allow getting the stream data for a thumbnail from a page and also retrieving a thumbnail as a bitmap. Also adds three new commands to pdfium_test: --save-thumbs --save-thumbs-dec --save-thumbs-raw Bug: pdfium:1312 Change-Id: I8363ef52651986fb6bf959b596448f58c3c8b86c Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/55390 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
34 lines
443 B
Plaintext
34 lines
443 B
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
>>
|
|
endobj
|
|
{{object 2 0}} <<
|
|
/Type /Pages
|
|
/MediaBox [ 0 0 200 200 ]
|
|
/Count 1
|
|
/Kids [ 3 0 R ]
|
|
>>
|
|
endobj
|
|
{{object 3 0}} <<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Thumb 4 0 R
|
|
>>
|
|
endobj
|
|
{{object 4 0}} <<
|
|
/Width 50
|
|
/Height 50
|
|
/BitsPerComponent 8
|
|
/ColorSpace /DeviceRGB
|
|
/Filter [/ASCIIHexDecode /FlateDecode]
|
|
>>
|
|
stream
|
|
endstream
|
|
endobj
|
|
{{xref}}
|
|
{{trailer}}
|
|
{{startxref}}
|
|
%%EOF
|