diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 00edfdf..5259e64 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index fc26eca..d16434d 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -1,4 +1,3 @@ -%Document %objnum in -extract-images %\DocumentMetadata{lang=en, pdfversion=2.0, pdfstandard=ua-2, pdfstandard=a-4f, testphase={phase-III, title, table, math, firstaid}} \documentclass{book} % Edit here to produce cpdfmanual.pdf, cpdflibmanual.pdf, pycpdfmanual.pdf, @@ -5758,6 +5757,9 @@ A role map, which maps non-standard structure types to standard ones, may be set \vspace{1.5mm} \noindent\verb!cpdf -replace-struct-tree in.json in.pdf -o out.pdf! + \vspace{1.5mm} + \noindent\verb!cpdf -remove-struct-tree in.pdf -o out.pdf! + \vspace{1.5mm} \noindent\verb!cpdf -verify "PDF/UA-1(matterhorn)" [-json] in.pdf! @@ -5790,6 +5792,8 @@ We can print an abbreviated form of the structure tree to standard output: \noindent This might yield: +\smallgap + \begin{minipage}{\linewidth} \begin{framed} \begin{verbatim} @@ -5869,12 +5873,14 @@ This JSON file can be edited, for example to change text strings, and reapplied \noindent If extra objects are required, they should be introduced with negative object numbers: Cpdf will renumber them on import so as not to clash with any existing numbers. -To remove a structure tree from a PDF, we can use \texttt{-remove-dict-entry} from Chapter \ref{chap:misc}, in other words: +To remove a structure tree from a PDF, we can use \texttt{-remove-struct-tree}: \begin{framed} - \noindent\small\verb!cpdf -remove-dict-entry /StructTreeRoot in.pdf -o out.pdf! + \noindent\small\verb!cpdf -remove-struct-tree in.pdf -o out.pdf! \end{framed} +\noindent This removes the structure tree and all references to it. + \section{Verifying conformance to PDF/UA} Cpdf contains a new, experimental verifier for PDF/UA via most of the machine-checkable subset of the Matterhorn Protocol, a list of checks based on the PDF/UA-1 specification. For example, we can run: