netPDF on the command line

For batch processing and scripts, netPDF also runs without a user interface. The return value indicates the result.

Commands

netPDF --validate rechnung.pdf --report=bericht.html
netPDF --rechnungen eingang
netPDF --convert rechnung.xml peppol.xml Peppol
netPDF --zugferd rechnung.pdf rechnung.xml zugferd.pdf
netPDF --pdfa bericht.pdf archiv.pdf 2b
netPDF --barrierefrei bericht.pdf barrierefrei.pdf de-DE
netPDF --ocr scan.pdf durchsuchbar.pdf de
netPDF --umwandeln bericht.pdf bericht.docx
netPDF --vergleichen alt.pdf neu.pdf bericht.pdf
netPDF --text bericht.pdf
netPDF --render bericht.pdf 1 seite1.png 150
netPDF --info datei.pdf
  • --validate checks an e-invoice (PDF or XML) and optionally writes a report; --rechnungen checks an entire folder.
  • --convert converts an XML invoice to another profile, for example XRechnungUbl, Peppol or FacturXEN16931.
  • --zugferd embeds an XML invoice into a PDF.
  • --pdfa converts to PDF/A; variants 1a 1b 2a 2b 2u 3a 3b 3u 4 4e 4f, default 3b. --pdfua and --barrierefrei validate or generate accessible PDF files.
  • --ocr recognizes text in scanned pages; --umwandeln converts based on file extensions (docx, xlsx, pptx, html, txt, png, jpg, tif and back to pdf).
  • --signieren and --signaturen sign or verify signatures, --optimieren reduces file size.
  • --text outputs the text, --render a page as PNG, --info the key metadata. --help lists all commands.

Return value

0 means OK, 1 indicates findings or errors, 2 indicates an incorrect invocation. With --out=datei.txt netPDF also writes the output into a file. Under Linux the command is called netpdf.