You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opens up a prompt for viewing and debugging PDFs. Once in prompt can execute various commands to debug.
$ unicli debug file.pdf
> version
1.7
> pages
10
> page 3
Page context set to page 3
> images
Page 3
1 images
Img1 XObject: 121 0 R
> wo 121 /tmp/img1.dat
Object 121 written to /tmp/img1.dat
> content
q
Img1 Do
Q
> quit
Closing debug prompt
$
Basic commands
version/v - Print PDF version
catalog/c - Displays the PDF catalog
obj/o num - Displays object number `num` In a readable form. If the object is binary then avoid writing to the console
writeobj/wo num path - Writes object num to path
pages/pp - number of pages
Page context
It is also possible to work in page context, i.e. set page context to a specific page.
page/p num - Sets page context to page `num`
resources/res (num) - Prints page resources for page num (parameter not needed if page context set)
fonts (num) - Overview of fonts
xobj (num) - Overview of XObjects
contents (num) - Print the contentstream
text - Outputs as text
images - Overview of images in the content
Other
Other things we would like to be able to see:
filters: Get an overview of encodings/filters that are used in the PDF.
The text was updated successfully, but these errors were encountered:
Opens up a prompt for viewing and debugging PDFs. Once in prompt can execute various commands to debug.
Basic commands
Page context
It is also possible to work in page context, i.e. set page context to a specific page.
Other
Other things we would like to be able to see:
The text was updated successfully, but these errors were encountered: