Origami/pdf2pdfa

From aldeid
Jump to navigation Jump to search
You are here:
pdf2pdfa

Description

Enforces a document to be rendered as PDF/A.

This will disable multimedia features and JavaScript execution in Adobe Reader.

Usage

Syntax

Usage: pdf2pdfa [<PDF-file>] [-o <output-file>]

Options

-o, --output FILE
Output PDF file (stdout by default)
-h, --help
Show this message

Example

Before conversion

$ pdfid pdf2.pdf 
PDFiD 0.1.2 pdf2.pdf
 PDF Header: %PDF-1.4
 obj                   14
 endobj                14
 stream                 2
 endstream              2
 xref                   1
 trailer                1
 startxref              1
 /Page                  1
 /Encrypt               0
 /ObjStm                0
 /JS                    2
 /JavaScript            3
 /AA                    0
 /OpenAction            1
 /AcroForm              1
 /JBIG2Decode           0
 /RichMedia             0
 /Launch                0
 /EmbeddedFile          0
 /XFA                   0
 /Colors > 2^24         0

After conversion

After the conversion, JavaScript elements will still appear as objects in the document but will not be active anymore.

$ pdf2pdfa pdf2.pdf -o pdf2a.pdf
$ pdfid pdf2a.pdf 
PDFiD 0.1.2 pdf2a.pdf
 PDF Header: %PDF-1.4
 obj                   16
 endobj                16
 stream                 3
 endstream              3
 xref                   1
 trailer                1
 startxref              1
 /Page                  1
 /Encrypt               0
 /ObjStm                0
 /JS                    2
 /JavaScript            3
 /AA                    0
 /OpenAction            1
 /AcroForm              1
 /JBIG2Decode           0
 /RichMedia             0
 /Launch                0
 /EmbeddedFile          0
 /XFA                   0
 /Colors > 2^24         0

Comments