next up previous contents index
Next: Setting Document Information Up: Document Information and Metadata Previous: Listing Fonts   Contents   Index


Reading Document Information

The -info option prints entries from the document information dictionary to standard output.


\begin{framed}
\begin{verbatim}$cpdf -info pdf_reference.pdf
Encrypted: 40bit
...
...: D:20061017081020Z
Modified: D:20061118211043-02'30'\end{verbatim}
\end{framed}
The details of the format for creation and modification dates can be found in Appendix [*]. Add the -raw option to print the original unicode.

The -page-info option prints the media box and other boxes page-by-page to standard output:


\begin{framed}
\begin{verbatim}$cpdf -page-info 14psfonts.pdf
Page 1:
MediaBox...
...00 500.000000 500.000000
BleedBox:
TrimBox:
ArtBox:\end{verbatim}
\end{framed}

The -pages operation prints the number of pages in the file.
\begin{framed}
\begin{verbatim}$cpdf -pages Archos.pdf
8\end{verbatim}
\end{framed}



root 2008-12-01