diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-02 03:27:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-04 05:18:13 +0100 |
commit | e3144ac4177b7c38567f41a8e31a6c162d3b76f4 (patch) | |
tree | 94d2e557359b040cae83224a9c5e33f7cb46d7db /qpdf/qtest/qpdf.test | |
parent | 26393f51373d95bb2fe5a99d1de9d04d8d7eb920 (diff) | |
download | qpdf-e3144ac4177b7c38567f41a8e31a6c162d3b76f4.tar.zst |
Add form fields to json output
Also add some additional methods for detecting form field types to
assist in the json creation and for later use.
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r-- | qpdf/qtest/qpdf.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index a976fc49..94f386d4 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -195,7 +195,9 @@ $n_tests += scalar(@form_tests) + 2; # modifying the resulting PDF in various ways. That file would be good # starting point for generation of more complex forms should that be # required in the future. The file storage/form.pdf is a direct export -# from LibreOffice with no modifications. +# from LibreOffice with no modifications. The files +# storage/field-types.odt and storage/field-types.pdf are the basis of +# field-types.pdf used elsewhere in the test suite. foreach my $f (@form_tests) { @@ -356,6 +358,7 @@ my @json_files = ( ['page-labels-and-outlines', []], ['page-labels-num-tree', []], ['image-streams', []], + ['field-types', []], ['image-streams', ['--decode-level=all']], ['image-streams', ['--decode-level=specialized']], ['page-labels-and-outlines', ['--json-key=objects']], @@ -368,6 +371,8 @@ my @json_files = ( ['--json-key=objects', '--json-object=trailer']], ['page-labels-and-outlines', ['--json-key=objects', '--json-object=trailer', '--json-object=2 0 R']], + ['field-types', ['--json-key=acroform']], + ['need-appearances', ['--json-key=acroform']], ); $n_tests += scalar(@json_files); foreach my $d (@json_files) |