We just purchased the DynamicPDF merger and have a problem with replacing our old PDFBox library with it.
Here's the problem, we have a pdf form that we fill. Output the file to a pdf file. Open it in Acrobat, things look okay. Try and open the file in xpdf and the form fields don't appear.
If I take the pdf into Acrobat and then run pre-flight on them and flatten the transparency, then the form fields do show in xpdf.
Is there a way to flatten the transparency with DynamicPDF?
Flatten Transparency
Re: Flatten Transparency
Support · Oct 1, 2007The form fields not appearing in the PDF viewer after the merge is likely an issue with the PDF viewer not creating an appearance stream for the form fields. By the PDF specification, the PDF viewer should always create an appearance stream when it opens the PDF. If an appearance stream is not being created this will cause the form field values to not be visible as you are experiencing.
We have found that there are some PDF viewers out there that do correctly create appearance streams and others that do not. You will want to make sure to use an actually valid PDF viewer that is creating those appearance streams for each PDF.
The reason you are then able to see the form fields after you run pre-flight and flatten the transparency is because that action is causing Acrobat to create those appearance streams. Then when you save that document again it now contains the appearance streams and is successfully viewed in the invalid viewer. In fact, to see this behavior very simply, all you need to do is actually just open the PDF up in Acrobat (or any other valid PDF viewer) and do a "Save As". This alone will be enough to create the appearance stream and view the form fields.
If you have any further questions about this or would like any suggestions on products that we have and or have not had success with in the past feel free to ask.
Thanks,
ceTe Software Support Team
Re: Flatten Transparency
Forum member · Oct 2, 2007Is there any way to force Document.write to create the appearance stream?
The one big problem we're having with this, is that we use ghostscript to handle some of our printing (pdf2ps to be exact). With the forms filled out, if we send the saved document to the printer, the forms end up printing blank. This is a real problem for us.
Any help is appreciated.
Re: Flatten Transparency
Support · Oct 2, 2007Hello,
Try adding the below line of code before drawing the PDF, i.e. before calling the DrawToWeb or Draw method. This may solve the problem for you.
document.getForm().setNeedsAppearances(true);
Thanks,
ceTe Software Support Team
Re: Flatten Transparency
Forum member · Oct 2, 2007That did not help. I'm doing something really basic. Its just one form field on the page, nothing else--with its value set (created in Acrobat) and ghostscript renders it fine. I then go through DynamicPDF to get the name of the form field and put the name in as the value for the form--then save. I've tried setting the PdfVersion, the format back and forth, and setting the NeedsAppearances. No matter what I do, the form will show up in Acrobat just fine but will not show up with ghostscript. Without working in ghostscript, the software does not work for us?
Do you think this is something that can be fixed? If not, is there a money back policy? We hadn't gotten this deep into things when we were using the evaluation version.
Re: Flatten Transparency
Support · Oct 2, 2007Hello,
Our product does not create the appearance streams that are required to view the PDF documents with form fields.
Our product relies on the PDF Viewer to create those appearance streams to meet with the PDF specifications. From our past experience, both XPDF and GhostScript viewers does not create these appearance streams.
We do not offer refunds on any of our products. Our recommendation would be to use a valid PDF viewer that creates this appearance stream and that will solve the problem for you when viewing the PDF with form fields.
We believe the PDF Viewer provided by Foxit software does create the appearance stream. You may want to try using their PDF Viewer and see if it works for you.
Thanks,
ceTe Software Support Team
Re: Flatten Transparency
Forum member · Oct 2, 2007But that doesn't help with our PDF flow for printing. We need a solution that can create a postscript with all streams rendered for the document from the PDF created. Do you have any solutions for ripping (what you say is a compliant PDF) for Linux, since ghostscript and xpdf can't do it?
Re: Flatten Transparency
Support · Oct 2, 2007Hello,
We do not recommend any particular product that would successfully convert the PDF documents to postscript files and also add the necessary appearance streams. However, please do make sure that any product you use to perform this conversion does add the appearance stream to the output postscript file.
Thanks,
ceTe Software Support Team
Re: Flatten Transparency
Forum member · Oct 2, 2007Update, as of ghostscript 8.15, they did add some support for forms without appearance streams. It supports text fields, but that is it--this may be enough for us.
Do you know if most of the printer vendors implementation of PDF rips handle forms without an appearance stream? I'm asking because I thought you might know off the top of your head without having to go test this on all of my printers.
Re: Flatten Transparency
Support · Oct 2, 2007Hello,
We are not aware of any specific printer driver software or software that performs PDF to postscript file conversion and also display's the form field values without requiring the appearance streams.
Thanks,
ceTe Software Support Team
Re: Flatten Transparency
Forum member · Oct 12, 2007Buyer BEWARE-----
For anybody else thinking about purchasing this software. I want to give you fair warning!!! Do more than some simple proof of concepts before purchasing--the PDF forms that it produces are not always readable by some PDF viewers (including Ghostscript).
They DO NOT OFFER any kind of return/refund policy (even though you do not have to click a box to say you accept their stupid policy).
We have NOT found a solution to our problem. The latest versions of Ghostscript can handle some forms and convert them to postscript, but it is really limited as to what it can do since DynamicPDF doesn't generate the appearance streams for it (which they say they don't need to because the spec tells them they don't).
Buyer BEWARE-----
Re: Flatten Transparency
Support · Oct 12, 2007We do encourage all our users to evaluate our products before making any purchase.
We have made available evaluation versions of all of our software, and we strongly encourage you to take advantage of evaluating to make sure that they meet your use and performance requirements prior to purchasing.
These evaluation editions of our products have no feature restrictions and never expire making a thorough evaluation process available to everyone.
Because of this evaluation process provided we do not offer refunds on any of our products.
All PDF documents created with DynamicPDF components comply 100% with the PDF specification released by Adobe Systems Incorporated. The PDF documents in question are valid and would appear correctly in any valid PDF viewer.
There are some viewers, including GhostScript, that do not always correctly create the documents appearance streams as they should.
"...the viewer application must construct an appearance stream dynamically at viewing time." See Section 8.62 (p. 639) of PDF Reference, Fifth Edition, v1.6 for more information.
Please feel free to inquiry with any further questions.
Thanks,
ceTe Software Support Team