summaryrefslogtreecommitdiff
path: root/testing/resources/text_form_multiple.pdf
diff options
context:
space:
mode:
authorDiana Gage <drgage@google.com>2017-07-28 17:07:39 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-31 21:43:06 +0000
commitab3909796cf2e9fa192040bcd7cb9da7bb3328a5 (patch)
treec4b3d336aa8d3539794ec0a9740cb9d78a7b0af8 /testing/resources/text_form_multiple.pdf
parent47c9e6d1a151c7c8b0649712a91e04f12177b7b9 (diff)
downloadpdfium-ab3909796cf2e9fa192040bcd7cb9da7bb3328a5.tar.xz
Add FORM_ReplaceSelection() and embedder tests.
This method replaces the selected text in a user-editable form text area with another text string (which can be empty or non-empty). If there is no selected text, FORM_ReplaceSelection() will append the replacement text after the current caret position. BUG=chromium:59266 Change-Id: I76448ef757d107888c33ebd5656457ebac93b952 Reviewed-on: https://pdfium-review.googlesource.com/8812 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Diana Gage <drgage@google.com>
Diffstat (limited to 'testing/resources/text_form_multiple.pdf')
-rw-r--r--testing/resources/text_form_multiple.pdf39
1 files changed, 26 insertions, 13 deletions
diff --git a/testing/resources/text_form_multiple.pdf b/testing/resources/text_form_multiple.pdf
index 6b14cefa82..172ab5e864 100644
--- a/testing/resources/text_form_multiple.pdf
+++ b/testing/resources/text_form_multiple.pdf
@@ -4,7 +4,7 @@
<<
/Type /Catalog
/Pages 2 0 R
- /AcroForm << /Fields [ 4 0 R 9 0 R ] /DR 5 0 R >>
+ /AcroForm << /Fields [ 4 0 R 9 0 R 10 0 R ] /DR 5 0 R >>
>>
endobj
2 0 obj
@@ -17,7 +17,7 @@ endobj
/Resources 5 0 R
/MediaBox [ 0 0 300 300 ]
/Contents 8 0 R
- /Annots [ 4 0 R 9 0 R ]
+ /Annots [ 4 0 R 9 0 R 10 0 R ]
>>
endobj
4 0 obj
@@ -64,19 +64,32 @@ endobj
/Subtype /Widget
>>
endobj
+10 0 obj
+<<
+ /Type /Annot
+ /FT /Tx
+ /T (CharLimit)
+ /MaxLen 10
+ /DA (0 0 0 rg /F1 12 Tf)
+ /V (Elephant)
+ /Rect [ 100 50 200 75 ]
+ /Subtype /Widget
+>>
+endobj
xref
-0 10
+0 11
0000000000 65535 f
0000000015 00000 n
-0000000120 00000 n
-0000000179 00000 n
-0000000321 00000 n
-0000000457 00000 n
-0000000490 00000 n
-0000000521 00000 n
-0000000597 00000 n
-0000000697 00000 n
-trailer<< /Root 1 0 R /Size 10 >>
+0000000127 00000 n
+0000000186 00000 n
+0000000335 00000 n
+0000000471 00000 n
+0000000504 00000 n
+0000000535 00000 n
+0000000611 00000 n
+0000000711 00000 n
+0000000855 00000 n
+trailer<< /Root 1 0 R /Size 11 >>
startxref
-841
+1020
%%EOF