mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-30 21:30:41 +08:00
Part of feature work to make Pdfium more usable by mobile platforms that wish to render comboboxes and textfields using custom displays. Will return Tf font size for the annotation if applicable. This is obtained from CPDFSDK_Widget because it is not guaranteed to be set on CPDF_FormField which only sets font information if DR entry is present. R=thestig@chromium.org Bug: b/130297350 Change-Id: Iba866bb47cad78e2aa16343ae8d055887714e6f6 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/53051 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Ryan Smith <rycsmith@google.com>
67 lines
862 B
Plaintext
67 lines
862 B
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
/AcroForm <<
|
|
/Fields [ 4 0 R ]
|
|
/DR 5 0 R
|
|
>>
|
|
>>
|
|
endobj
|
|
{{object 2 0}} <<
|
|
/Type /Pages
|
|
/Count 1
|
|
/Kids [ 3 0 R ]
|
|
>>
|
|
endobj
|
|
{{object 3 0}}
|
|
<<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Resources 5 0 R
|
|
/MediaBox [ 0 0 300 300 ]
|
|
/Contents 8 0 R
|
|
/Annots [ 4 0 R ]
|
|
>>
|
|
endobj
|
|
{{object 4 0}} <<
|
|
/Type /Annot
|
|
/FT /Tx
|
|
/T (Text Box)
|
|
/DA (0 0 0 rg /F1 -12 Tf)
|
|
/Rect [ 100 100 200 130 ]
|
|
/Subtype /Widget
|
|
/V (Mountain Lion)
|
|
>>
|
|
endobj
|
|
{{object 5 0}} <<
|
|
/Font 6 0 R
|
|
>>
|
|
endobj
|
|
{{object 6 0}} <<
|
|
/F1 7 0 R
|
|
>>
|
|
endobj
|
|
{{object 7 0}} <<
|
|
/Type /Font
|
|
/Subtype /Type1
|
|
/BaseFont /Helvetica
|
|
>>
|
|
endobj
|
|
{{object 8 0}} <<
|
|
{{streamlen}}
|
|
>>
|
|
stream
|
|
BT
|
|
0 0 0 rg
|
|
/F1 -12 Tf
|
|
250 150 Td
|
|
(Test Form with Negative Font Size) Tj
|
|
ET
|
|
endstream
|
|
endobj
|
|
{{xref}}
|
|
{{trailer}}
|
|
{{startxref}}
|
|
%%EOF
|