dumppdf(1)

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 -i options 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 -r option, the “raw” stream contents are dumped without decompression. With -b option, the decompressed contents are dumped as a binary blob. With -t option, the decompressed contents are dumped in a text format, similar to repr() manner. When -r or -b option 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.

  1. 7–8
  2. 9
  3. 10
  4. 11
  5. 12–13

Authors

Jakub Wilk <[email protected]>

Wrote this manual page for the Debian system.

Yusuke Shinyama <[email protected]>

Author of PDFMiner and its original HTML documentation.

From python3-pdfminer 20221105+dfsg-1.1~deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.