Skip to content

CLI issue: listing boxes without specifying box types exits with 1 #915

@wdscxsj

Description

@wdscxsj

With pdfcpu v0.8.0, listing boxes without specifying the optional box types always exits with 1, with an error message at the end of the output:

$ pdfcpu boxes list in.pdf
listing mediaBox, cropBox, trimBox, bleedBox, artBox for in.pdf
...  # the boxes are correctly listed
problem parsing box list: pdfcpu: invalid box prefix: in.pdf
# exit code is 1

Listing with the box types works fine:

$ pdfcpu boxes list m,c,t,b,a in.pdf
listing mediaBox, cropBox, trimBox, bleedBox, artBox for in.pdf
...  # the boxes are correctly listed
# exit code is 0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions