On 5/20/25 13:39, Kurt Jaeger wrote: > Hi! Hi Kurt,
> version: poppler 25.04.0 from the FreeBSD-ports my version is current master (92d1e757) in Fedora 41 (compiled by myself). > pdfattach -replace old-invoice.pdf factur-x.xml new-invoice.pdf > > pdfdetach -list new-invoice.pdf > -------- > 2 embedded files > 1: factur-x.xml > 2: factur-x.xml > -------- I can confirm that this doesn’t replace the attached file with PDF documents too (so it might be a bug). > 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 > -------- Sorry, but I cannot follow. Embedded files (as opposed to [file] attachment annotations) are not anchored in pages (afaIk). Then, if old-invoice.pdf has a single embedded file, it will have only a single embedded file in all (or each) of its pages. > Any ideas on how to approach this ? Open a new issue @ https://gitlab.freedesktop.org/poppler/poppler/-/issues/new. Many thanks for your help, Pablo
