We are having an issue that after we fill in the pdf form fields and print the pdf, it prints fine but without the form fields filled in.
Here is a code snip for what we are using
Input and output are both byte streams
Form form = new Form(input, output);
JSONArray fields = documentJson.getJSONArray("fields");
for (int fieldIndex = 0; fieldIndex < fields.length(); fieldIndex++) {
// get the field from the input data
JSONObject field = fields.getJSONObject(fieldIndex);
String value = field.getString("value");
if (value != null)
form.setField(field.getString("name"), value);
}
form.allFlatten();
//form.save();
form.close();
Please share the filled PDF file with us, so we could try to print it at our end and see why it is not printing the form field data. You can save the filled PDF to disk and share with us.
We’re sorry for the inconvenience and looking forward to help you out. Regards,
Thank you very much for sharing the input PDF file. We’ll look into this issue at our end and update you accordingly. Please spare us some time for further investigation.
I have been working on this issue at my end using the latest version. However, I’m unable to print the PDF file at all even using the console application. The printed output is completely blank. Could you please try to use the latest version (3.7.0) at your end and share the results with us as well? I just want to make sure that we’re on the same page before moving forward.
We’re sorry for the inconvenience and looking forward to help you out.
Regards,
I would like to share with you that the code for printing is same for any type of application, whether a console application or an applet. Also, the code is same whether the PDF contains form fields or not. However, as I shared earlier, I was unable to print the PDF successfully even with a console application. Nevertheless, we’ll further test it – in an Applet as well – and try to investigate why the component is unable to print the PDF properly. You’ll be updated with the results accordingly.
We need to investigate this issue in detail at our end. It has already been added in our to-do list. We’ll be able to provide you the sample and any further details within a week or two. Please spare us some time.
We’re sorry for the inconvenience and appreciate your cooperation. Regards,
We have looked into this issue on priority basis and I have reproduced the same issue at my end. I’m afraid, our team will have to investigate this issue in detail. The issue has been logged as PDFKITJAVA-24691 in our issue tracking system. You’ll be updated via this forum thread once it is resolved.
We’re sorry for the inconvenience. If you have any further questions, please do let us know. Regards,
I’m sorry to inform you that this issue is not yet resolved. However, I have asked our team to share the ETA of this issue. You’ll be updated via this forum thread as soon as the response is received.
Our team has further investigated this issue and shared the ETA. I would like to share that the fix for this issue will be available at the end of June 2011. You’ll be notified via this forum thread once it is resolved.
We’re sorry for the inconvenience. Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.