ghostscript generates header in resulting pdf

Viewed 22

I have a pdf with form fields on it. I want to "flatten" this into a pdf without form fields but when i run the original pdf through ghostscript, the resulting pdf file has a banner at the top that says: "In order to submit this form, you should open it with Adobe Acrobat Reader"

enter image description here

If I tell ghostscript not to render the form fields the banner does not appear, but neither do the form fields.

Is there any way to print the pdf with the form fields using ghostscript without generating this banner.

Running on FBSD, Ghostscript v9.22

The command line is :

gs -dNOPAUSE -sDEVICE=pdfwrite "-sOutputFile=/tmp/flatened.pdf" -dBATCH "/tmp/Sample PDF w fillable fields.pdf"

A sample PDF file:

A sample results file

1 Answers

This seams to be related to how the PDF for generated, it was generated via jotform, and this is a known issue at jotform. Form generated via adobe acrobat work fine.

Related