aboutsummaryrefslogtreecommitdiffstats
path: root/job.yml
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-19 00:22:57 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-20 15:16:25 +0200
commit6f43bf8de36b08c55b172b4f4133c79657651666 (patch)
treeec17bbf42d9ea78d44ab3b9d2cac363cc6b9bc68 /job.yml
parent23fc6756f1894e1af35853eb2251f08d5b25cf30 (diff)
downloadqpdf-6f43bf8de36b08c55b172b4f4133c79657651666.tar.zst
Major rework -- see long comments
* Replace --create-from-json=file with --json-input, which causes the regular input to be treated as json. * Eliminate --to-json * In --json=2, bring back "objects" and eliminate "objectinfo". Stream data is never present. * In --json-output=2, write "qpdf-v2" with "objects" and include stream data.
Diffstat (limited to 'job.yml')
-rw-r--r--job.yml25
1 files changed, 13 insertions, 12 deletions
diff --git a/job.yml b/job.yml
index b4fb7370..20e87ad7 100644
--- a/job.yml
+++ b/job.yml
@@ -36,10 +36,6 @@ choices:
- all
- print
- screen
- json_version:
- - 1
- - 2
- - latest
json_key:
# The list of selectable top-level keys id duplicated in the
# following places: job.yml, QPDFJob::json_schema, and
@@ -48,15 +44,21 @@ choices:
- attachments
- encrypt
- objectinfo # only v1
- - objects # only v1
+ - objects
- outlines
- pagelabels
- pages
- - qpdf # only v2
+ json_output:
+ - 2
+ - latest
json_stream_data:
- none
- inline
- file
+ json_version:
+ - 1
+ - 2
+ - latest
print128:
- full
- low
@@ -86,7 +88,6 @@ options:
- underlay
- empty
- replace-input
- - create-from-json
positional: true
bare:
- add-attachment
@@ -105,6 +106,7 @@ options:
- generate-appearances
- ignore-xref-streams
- is-encrypted
+ - json-input
- keep-inline-images
- linearize
- list-attachments
@@ -135,7 +137,6 @@ options:
- suppress-password-recovery
- suppress-recovery
- test-json-schema
- - to-json
- underlay
- verbose
- warning-exit-0
@@ -164,20 +165,20 @@ options:
show-attachment: attachment
show-object: trailer
json-stream-prefix: stream-file-prefix
- create-from-json: qpdf-json file
update-from-json: qpdf-json file
required_choices:
compress-streams: yn
decode-level: decode_level
flatten-annotations: flatten
json-key: json_key
+ json-output: json_output
+ json-stream-data: json_stream_data
keep-files-open: yn
normalize-content: yn
object-streams: object_streams
password-mode: password_mode
remove-unreferenced-resources: remove_unref
stream-data: stream_data
- json-stream-data: json_stream_data
optional_choices:
json: json_version
- table: pages
@@ -281,7 +282,7 @@ json:
main.password:
password-file:
empty:
- create-from-json:
+ json-input:
# output
_outputFile: "output filename"
replace-input:
@@ -308,6 +309,7 @@ json:
force-version:
progress:
split-pages:
+ json-output:
encrypt:
_user-password: "user password"
_owner-password: "owner password"
@@ -362,7 +364,6 @@ json:
- null
json-stream-data:
json-stream-prefix:
- to-json:
# other options
update-from-json:
allow-weak-crypto: