Re: converting XFA PDFs using ghostscript - problem with encoding?
Nikola Ciprich <[email protected]> Thu, 7 Sep 2017 12:10:37 +0200
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ken, On Thu, Sep 07, 2017 at 10:56:48AM +0100, Ken Sharp wrote: > At 11:50 07/09/2017 +0200, Nikola Ciprich wrote: > > >I got good tip from kind soul that I can use ghostscript to render XFA > >PDF into normal one using something like > > The kind soul is incorrect, Ghostscript does not handle XFA. well, but it seems to work somehow, at least I can see the content now, even though encoding is not correct :) > > > >ps2pdf -dShowAcroForm odmeny.pdf odmeny2.pdf > > AcroForms are *not* XFA. XFA forms are written in XML, AcroForms are > genuine PDF constructs. > > > >Would somebody have a tip on how could I fix that last remaining issue? > > Without seeing the original PDF file ? no. sorry, I forgot to attach link to sample document: http://nik.lbox.cz/download/odmeny.pdf in the meantime, I installed pdf editor and examined source and produced file in more detail (as well as with pdffont) and seems that after all, problem can be in fonts: root@apostclient:/tmp/pp2 # pdffonts odmeny2.pdf name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- JNUFFB+MyriadPro-Regular CID Type 0C Identity-H yes yes yes 13 0 DTVGDH+ArialMT CID TrueType Identity-H yes yes yes 9 0 Helvetica Type 1 Custom no no no 20 0 IVUYJI+MyriadPro-Regular Type 1C WinAnsi yes yes no 16 0 this is the gs produced pdf. examining file in pdf editor shows that problematic part is the one with Helvetica font, with "Custom" encoding.. however how to proceed with this information, I don't know yet :) BR nik > > > > Ken > -- ------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------