Attach ISDOC to a PDF and convert it to PDF/A-3B standard.
ISDOC is a XML based Invoicing Standard of the Czech Republic (EU), simillar to Factur-X and ZUGFeRD.
- Bash-compatible shell
- Ghostscript 9.27 + or alter
Tested on Ubuntu 20.04 LTS, Debian Buster, macOS Mojave (please add more you know of)
Clone this repo or download a zip,
make sure isdoc-pdf
is executable by chmod +x isdoc-pdf
.
Don't forget to install Ghostscript (9.27 or later).
./isdoc-pdf input.pdf input.isdoc [output.isdoc.pdf]
This script will attach your input ISDOC file to the input PDF as an alternative attachment, compress and flatten the PDF and convert it into PDF/A-3B, as stated by the official docs.
You can validate your result's PDF/A-3 compliance using veraPDF demo.
If you want to run this script silently, direct stdout to /dev/null
./isdoc-pdf input.pdf input.isdoc [output.isdoc.pdf] > /dev/nul
This package is based upon code fragments & inspiration from: