poppler pdfattach -replace fails ?

Kurt Jaeger pi at freebsd.org
Tue May 20 10:24:27 UTC 2025


Hi!

version: poppler 25.04.0 from the FreeBSD-ports

I'm trying to extract, correct and replace the Zugferd XML inside a PDF:

step 1: extract xml:

pdfdetach -list old-invoice.pdf
-------
1 embedded files
1: factur-x.xml
-------

step 2: fix xml (vi rules!)

step 3: replace xml

pdfattach -replace old-invoice.pdf factur-x.xml new-invoice.pdf

test:

pdfdetach -list new-invoice.pdf
--------
2 embedded files
1: factur-x.xml
2: factur-x.xml
--------
 
Any ideas ?

-- 
pi at FreeBSD.org         +49 171 3101372                  Now what ?


More information about the poppler mailing list