dumppdf1
Dumps internal contents of a pdf files
Usage
dumppdf [option ...]
file ...
Overview
dumppdf dumps the internal contents of a PDF file in pseudo-XML format. This program is primarily for debugging purposes, but it's also possible to extract some meaningful contents
Options
-
-a -
Dump all the objects. By default only the document trailer is printed.
-
-i objno[,objno,...] -
Specifies PDF object IDs to display. Comma-separated IDs, or multiple
-ioptions are accepted.
-
-p pageno[,pageno,...] -
Specifies the comma-separated list of the page numbers to be extracted. Page numbers start at one. By default, it extracts text from all the pages.
-
-r, -b, -t -
Specifies the output format of stream contents. Because the contents of stream objects can be very large, they are omitted when none of the options above is specified.
With
-roption, the “raw” stream contents are dumped without decompression. With-boption, the decompressed contents are dumped as a binary blob. With-toption, the decompressed contents are dumped in a text format, similar torepr()manner. When-ror-boption is given, no stream header is displayed for the ease of saving it to a file.
-
-T -
Show the table of contents.
-
-P password -
Provides the user password to access PDF contents.
-
-d -
Increase the debug level.
Examples
Dump all the headers and contents, except stream objects:
$ dumppdf -a test.pdf
Dump the table of contents:
$ dumppdf -T test.pdf
Extract a JPEG image:
$ dumppdf -r -i6 test.pdf > image.jpeg
Releases
7 releases since Debian 7 (Wheezy); the text changed 4 times.