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
--------

Another test with pdfseparate:

pdfseparate -f 1 -l 1 old-invoice temp-out.pdf
pdfdetach -list temp-out.pdf
--------
1 embedded files
1: factur-x.xml
--------
 
Any ideas on how to approach this ?

-- 
In the nightmare of the dark    W.H. Auden, 1940
all the dogs of Europe bark
                                [email protected]            +49 171 3101372        
            

Reply via email to