Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to Browse Internal PDF Structure in adobe 9.0?

I didn't find the advanced menu that has this option.

Can any body help me?

share|improve this question

migrated from stackoverflow.com Mar 13 '11 at 12:41

This question came from our site for professional and enthusiast programmers.

4 Answers 4

There are several ways to browse a PDF's internal structure.

Pdfs are kinda human readable

Barring security passwords, much of it is human readable. If a PDF has a password, all the strings and streams (which will already be compressed, no loss) will be pseudorandom garbage. Compressed data streams abound, but much of it looks something like this in your favorite text editor:

2 0 obj
<< /Type /Page 
   /MediaBox [0 0 612 792]
   /Contents 4 0 R
   /Resources << /Fonts 
     << /F1 5 0 R>> 
   >>
>>
endobj

Warning: Whitespace is largely irrelevant and usually removed when possible. I just made this pretty to make understanding it a bit easier.

<< and >> begin and end "dictionaries". Dictionaries are made up of key/value pairs. The key is always a "name": all names start with '/'. The value can be anything, including another name.

[ and ] begin and end "arrays". Arrays can be made up of just about anything.

Numbers are "numbers". Floating point or otherwise.

() and <> begin and end "strings". <> strings are listed as hex values, () are ANSI strings.

Pet Peeve: /Names and (Strings) use entirely different escape systems. Grr.

Indirect References point to other objects in the PDF:
< objNum > < generationNum-AlwaysZero > R

In the above example object, the content stream is in object 4, elsewhere in the PDF. To find it, you can use your editors text search for "N 0 obj" where N is the object number you want.
WARNING: There are hundreds, possibly thousands of objects in a PDF. Searching for "1 0 obj" will get you a LOT of hits.

Given that you're asking to see the internal structure, you probably already know all this. Others wanting to know the same thing may not.

WARNING: Do not EDIT a PDF in a text editor. All that binary stuff will get mangled, byte offsets are Very Important in PDF.

Acrobat Plugin[s]

There's an acrobat plugin called PDF CanOpener by Windjack Solutions (no affiliation). It's SLICK. You'll be able to browse the PDF structure as a tree, look at (and modify) content streams, and so forth.

Thirdy Party Apps

Lots. Many folks build one as part of learning to parse PDF, or as a debugging tool. They're Quite Handy.

iText RUPS (part of iText, a Java PDF lib):
https://sourceforge.net/projects/itext/

PDF Object Browser:
http://ulc-community.canoo.com/snipsnap/space/PDF+Object+Browser

PDF Vole:
https://java.net/projects/pdfvole

share|improve this answer
    
PDF Vole link seems to be broken now... –  DNA Nov 6 '12 at 18:40
2  
+1 for iText RUPS, not precisely a friendly GUI but works, by the way currently the project URL seems to be (sourceforge.net/projects/itextrups) –  jaime Sep 2 '13 at 5:17

O2Solutions offer an MS Windows compatible utility for viewing the internal structure of PDF documents. It's free for personal and commercial use.

http://www.o2sol.com/pdfxplorer/overview.htm

share|improve this answer

You can browse internal PDF structure in Adobe Acrobat using it's Browse Internal PDF Structure command from the Preflight plugin:

http://www.jpedal.org/PDFblog/2009/04/viewing-pdf-objects/

You can also use commercial PDF CanOpener plugin for Acrobat to see the Object structure or free PDFedit to decode compressed data streams in PDF.

share|improve this answer

PoDoFoBrowser is little free portable utility which allows not only browse internal PDF structure but also export, import and edit object data. It can be downloaded from here:

http://sourceforge.net/projects/podofo/files/podofobrowser/0.5/

Here is how it looks under Windows:

screenshot

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.