diff options
author | Nicolas Pena <npm@chromium.org> | 2017-04-13 15:28:20 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-13 19:52:31 +0000 |
commit | 742977f943b30638427d1ef6532acbc3d1c36bff (patch) | |
tree | aa6d3fccc2479002ddf2550bc6d25c14d7567737 /testing/resources/text_form.in | |
parent | a119340ec92412d07e60654b2b22a5a5bea979b0 (diff) | |
download | pdfium-742977f943b30638427d1ef6532acbc3d1c36bff.tar.xz |
Add embeddertest for form text rendering and saving
This CL adds an embeddertest that adds text to a textfield and saves it. It
also adds a new 'charcode' option for .evt files in pdfium_test.
Change-Id: I14fbf50e2b1d5ae0bdc68d1dd25dc4f889c49bfb
Reviewed-on: https://pdfium-review.googlesource.com/4150
Commit-Queue: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources/text_form.in')
-rw-r--r-- | testing/resources/text_form.in | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/resources/text_form.in b/testing/resources/text_form.in new file mode 100644 index 0000000000..4872986af1 --- /dev/null +++ b/testing/resources/text_form.in @@ -0,0 +1,57 @@ +{{header}} +{{object 1 0}} +<< + /Type /Catalog + /Pages 2 0 R + /AcroForm << /Fields [ 4 0 R ] /DR 5 0 R >> +>> +endobj +{{object 2 0}} +<< /Count 1 /Kids [ 3 0 R ] /Type /Pages >> +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 +>> +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 +>> +{{object 8 0}} +<< /Length 51 >> +stream +BT +0 0 0 rg +/F1 12 Tf +100 150 Td +(Test Form) Tj +ET +endstream +endobj +{{xref}} +trailer<< /Size 8 /Root 1 0 R >> +{{startxref}} +%%EOF |