If you do not have JPedal, you can download a trial copy from here.
To start JPedal in inspect mode, pass the
--inspect parameter via the command line:
java -jar jpedal.jar --inspect "pdfFile.pdf"
- View the Cross-References
- Pause decoding at a specific command
- View the object tree
- View images
- View streams
Many new features to follow!
Click ‘View’ then ‘Xref’. The Cross-Reference Viewer allows you to view the list of objects which are stored in the Cross-Reference table and Cross-Reference streams. You may click on an object to view its contents in the right-hand pane.
You can pause the decoding of a PDF file at a specific command. This can be achieved using the slider, the cassette buttons, or the text field. Each command is highlighted in blue in the right-hand pane. Any associated data is displayed above the command it came from.
You may also set breakpoints by selecting a command. Breakpoints are displayed with red boxes. The resume button underneath the command pane will advance to the next breakpoint. The button on the far right will clear all the breakpoints.
Click ‘View’ then ‘Objects’. The Object Viewer allows you to view the internal structure of a PDF file and discover how objects are related to each other. Each object in the tree displays its reference, its type, and its /Type key if it has one. You may click on an object to view its contents in the right-hand pane.
When you view an object from the Cross-Reference Viewer or the Object Viewer, its contents will be highlighted. Below are the colors used and what they correspond to.
You can view the images which are stored inside a PDF file. Images are typically stored as XObjects or as data to an ID command. The JPedal Inspector supports both.
There are three ways you can view images in the Inspector:
- Find the XObject in the Cross-Reference Viewer and press ‘Show Image’
- Find the XObject in the Object Viewer and press ‘Show Image’
- Find a DO or ID command in the command window, right-click and press ‘View Image’ or ‘View Inline Image’
You can decode and view the contents of a stream by opening the Cross-Reference Viewer or Object Viewer and pressing ‘Decode Stream’