mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 05:04:39 +08:00
Support for opening an internal link exists using mouse. But after setting focus over internal link by pressing Tab key, we do not have the provision to open the internal link using enter key press. This implementation uses FFI_DoGoToAction API to handle opening an internal link. Bug: chromium:994500 Change-Id: I94fde897bc22c283d9304bffd093ee810ba128e8 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/68931 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Badhri Ravikumar <bravi@microsoft.com>
132 lines
1.7 KiB
Plaintext
132 lines
1.7 KiB
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
/Names 12 0 R
|
|
/AcroForm [6 0 R 7 0 R]
|
|
>>
|
|
endobj
|
|
{{object 2 0}} <<
|
|
/Type /Pages
|
|
/Count 2
|
|
/Kids [3 0 R 4 0 R]
|
|
>>
|
|
endobj
|
|
{{object 3 0}} <<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Annots [6 0 R 7 0 R 8 0 R 9 0 R 10 0 R 11 0 R]
|
|
/Contents 5 0 R
|
|
/Tabs /R
|
|
>>
|
|
endobj
|
|
{{object 4 0}} <<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Tabs /R
|
|
>>
|
|
endobj
|
|
{{object 5 0}} <<
|
|
{{streamlen}}
|
|
>>
|
|
stream
|
|
BT
|
|
70 340 Td
|
|
14 Tf
|
|
(External Link ) Tj
|
|
0 -35 Td
|
|
14 Tf
|
|
(Internal Link ) Tj
|
|
0 -35 Td
|
|
14 Tf
|
|
(Link1 to top ) Tj
|
|
0 -35 Td
|
|
14 Tf
|
|
(Link2 to top ) Tj
|
|
ET
|
|
endstream
|
|
endobj
|
|
{{object 6 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Widget
|
|
/FT /Tx
|
|
/Parent 3 0 R
|
|
/T (TextField)
|
|
/Rect [69 670 220 690]
|
|
>>
|
|
endobj
|
|
{{object 7 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Widget
|
|
/FT /Btn
|
|
/Rect [69 360 220 380]
|
|
/A <<
|
|
/URI (https://www.google.com)
|
|
/S /URI
|
|
>>
|
|
/F 4
|
|
/T (button)
|
|
/Ff 65536
|
|
>>
|
|
endobj
|
|
{{object 8 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Link
|
|
/Rect [69 338 180 358]
|
|
/A <<
|
|
/Type /Action
|
|
/S /URI
|
|
/URI (https://cs.chromium.org/)
|
|
>>
|
|
/F 4
|
|
>>
|
|
endobj
|
|
{{object 9 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Link
|
|
/Rect [69 305 180 325]
|
|
/BS <<
|
|
/W 0
|
|
>>
|
|
/Dest [4 0 R /XYZ 200 725 0]
|
|
/F 4
|
|
>>
|
|
{{object 10 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Link
|
|
/Rect [69 270 180 290]
|
|
/BS <<
|
|
/W 0
|
|
>>
|
|
/Dest /top
|
|
/F 4
|
|
>>
|
|
{{object 11 0}} <<
|
|
/Type /Annot
|
|
/Subtype /Link
|
|
/Rect [69 235 180 255]
|
|
/BS <<
|
|
/W 0
|
|
>>
|
|
/Dest (target10)
|
|
/F 4
|
|
>>
|
|
{{object 12 0}} <<
|
|
/Dests 13 0 R
|
|
>>
|
|
endobj
|
|
{{object 13 0}} <<
|
|
/Names [
|
|
(target10) 14 0 R
|
|
/top 14 0 R
|
|
]
|
|
>>
|
|
endobj
|
|
{{object 14 0}} <<
|
|
/D [3 0 R /XYZ 100 200 0]
|
|
>>
|
|
endobj
|
|
{{xref}}
|
|
{{trailer}}
|
|
{{startxref}}
|
|
%%EOF |