View Structure of a PDF

Did you know that it is possible to view the structure of a PDF file using PDFBox? Note that this Command line tool was actually created to debug PDFs. For instance, if your PDF had errors it would be displayed below the command line once you have executed the command.

Step 1: Download the PDFBox app from here to a folder that you prefer.

Step 2: Copy the PDF file to the same folder.

Step 3: Go to the Command prompt, navigate to the folder we mentioned above and run the command given below. Note that the location of the Java exe files has to be specified in your PATH (For more details refer to this link).

java -jar pdfbox-app-1.8.10.jar PDFDebugger Sample.pdf

(Replace the Sample.pdf with your PDF filename)

Screenshot of Command prompt.

Step 4:

Have a look at the structure by using the links on the left pane.