Created attachment 7368 [details]
sample PDF with barcode missing when interpreted with gs
I'm attaching a PDF which does not display the barcodes when interpreted with gs. The barcodes do display on the same system with Adobe Reader. What's going on here?
The barcodes are Widget Annotations in an Acrobat interactive form. Ghostscript doesn't support interactive features of Acrobat forms so we don't attempt to do anything with widget annotations which can include features like buttons.
Acrobat reader is of course an interactive application and so does support interactive features.
In this particular case the Widget annotation is read-only and more importantly is also a text type (it uses a custom TrueType font to generate the barcode from the text).
Alex may decide this is possible to support, so I'll leave it up to him.
I'd say that GS doesn't _fully_ support annotations without appearance
In particular, the file has /NeedAppearances flag off. So GS doesn't even
try to generate appearance streams.
Next, there are bugs in handling /DV and /DR attributes.
This is yet another file with XML forms produced by Adobe LiveCycle .
Ghostscript still doesn't support XML forms.
Disabling /XFA attribute makes the bar code disappear on Acrobat Reader.
*** This bug has been marked as a duplicate of bug 688647 ***