Developing a PDF viewer means spending a lot of time ripping apart PDF files to see what exactly is going on. So I am always on the lookout for good tools which allow you to analyse and drill down inside a PDF file. With the increased used of Compressed objects in PDF files (where data is hidden inside data), such tools are increasingly required.
I wrote an article, Viewing PDF objects on Acrobat 9.0 which has a well-hidden mode to examine the internal guts of a PDF file. If you have a copy of Acrobat and work on Mac on Windows it works very well. But if you do not have Acrobat or want to develop on other platforms, there are some very creditable alternatives.
Pdfedit is a free tool for Unix and Linux systems (it can also run under Windows) which can be downloaded from sourceforge. It you are running the latest version of Ubuntu it can be installed directly from the Ubuntu software centre as well.
Pdfedit offers a multipane pane display showing the PDF, the internal PDF tree and can also show command streams and other data. Not only does it allow you to see the internals of the PDF file, but it also lets you perform some editing functions including delinearize, flatten, export and add text and images to a page. It seems to cope well with most files – it is based on xpdf which is a mature and tested PDF library.
It does not work on encrypted files
Pdfedit also has its own page on wikipedia so you can find out more details there. It is certainly worth a try and post what you think.
Do you have any favorite PDF tools or programs which you recommend?