How to autogenerate field in Adobe Acrobate Pro and also form get auto flow on adding auto generate field to the form - pdf

I have made PDF form containing Radiobutton, Text Field, Button,CheckBox and Barcode in Adobe Acrobat Pro. and all is working well.
But according to new requirement I have to "Autogenerate" some of the fields like Radiobutton, Text Field and CheckBox on clicking to the "Add Field" Button, and on clicking the button the control should get auto generate to that PDF form.
Additional the text which is already added to the PDF form get flow down whenever the fields get auto generate on the top of the form.
According to my findings I found that it is possible through Adobe liveCycle but I want it to happen in Adobe Acrobat Pro
Also I have tried adding the blank new PDF page so that according to requirement I autogenerate my field on that blank PDF but not able to add new PDF page through Javascript?
Thanks you in advance.

It is possible; you would need to use form fields for everything which can move when you add new fields (been there, done that).
Then you will need a pagination logic which places or moves the fields to their correct position.

Related

Let a PDF prompt for an input and insert it

I would like a PDF for some support workers, which should be easily editable.
I need it to ask on first open for a kind of Customer ID. This should be inserted into the document. Is this possible?
Thanks for help!
This requires either a smart PDF viewer (such as Adobe Acrobat (Reader) on computers, PDFExpert on iDevices, qPDF on Android) OR serverside support.
In the first case, you would use the app.response() method to let the user enter that identifier and then set the result to the according field's value. That could be placed in the PageOpen event of the page the document opens.
Also doing its purpose would be setting the focus to that field when the page opens.
With server support, you could set up a HTML page where the user enters the identifier, submit that to the server, and have the server prefilling the form, using either a ready application like FDFMerge by Appligent, or using one of the PDF creating libraries floating around (such as iText, pdflib, etc.).

Adobe PDF Forms - Text Field displays value only when clicked on it

I have a PDF with forms defined in it.
One field in the form is a multi line text field.
The value in the text field is populated by a java program using Apache PDFBox.
The issue is when the value is of around 5 to 6 lines, the text box displays the text automatically. But if it is more than 6 lines, the text box does not display the value. I had to specifically click on the text field to display the text. If I click outside the text box again, the text disappears.
The text field is read only with Multi Line and Scrolling options enabled.
Any ideas what is causing this weird issue?
I have Adobe Acrobat Pro 11, Adobe Acrobat XI and Adobe Reader to view the files. All have the same issue.
It sounds like a typical "appearance" problem. There's no form field appearance in the field widget dictionary so when you click in the field, the raw string data is shown but when you click out there is no appearance to display so you get a blank. You can test this out by toggling the multi-line setting in the field properties in Acrobat so it generates an appearance. If that fixes it, then you the problem is the one I describe.
You can use PDFBox to set the "needs appearances" flag in the file that will tell Adobe viewers to regenerate field appearances when the file is opened but that doesn't work for all PDF viewers. To make the field value visible in all PDF viewers, it's best to generate appearances when you populate the field values.
The Datalogics PDF Java Toolkit can automatically generate appearances based on field values. Full disclosure, I represent Datalogics.

Acrobat XI forms invisible

I am trying to make a form I used FormsCentral For Acrobat, and it looks fine and when I open my pdf in acrobat it looks great but when I open it in a pdf viewer the fields in the form are invisible and the user cannot see where they are supposed to enter the data. They work fine, i.e. when you click on them they can be typed into, but the user can not see where to type.
I want to know how to either put a box around them or to make some sort of contrast.
Is this a viewer other than Adobe Acrobat? Adobe Acrobat will by default highlight any available fields. If it isn't, look for a setting to change that.
If you create a form with Adobe Acrobat Pro, you can double click the fields to get a properties dialog, and there are settings for border and fill color under the 'Appearance' tab. I don't know how FormsCentral is set up, but it may have a similar command.

iText - PDF file displaying message at the top about fillable form

Here is what I did:
1. I have a template WORD file that can be used to fill an application for some stuff. Assigned pre-defined tags to fillable fields.
2. Converted that word file to PDF file using CenoPdf
3. Used iText to fill the fields in generated PDF file.
4. Now when user downloads that filled file, they see a nice purple at the bar saying "Please fill out the following form. You can not save data typed into this form. Please print your completed form if you would like to copy for your records".
how can i get rid of this purple bar and the message? I am assuming i need to set some bits through iText to turn this off??
Thanks
You can't edit the purple bar at the top. This is a flaw with Acrobat. Whenever your PDF contains form fields, the message is automatically displayed by force and you cannot edit it. Adobe feels that it's users are more important than it's developers, and forces the bar and message whenever form fields are present.

Modify character spacing in a PDF form field

I'm trying to build a web app to programmatically fill out a PDF form. I am going to configure my form first in Adobe Acrobat, then write a Java app with iText to fill out all the form fields via user input from the web. The base form I need to fill out comes from the US government. They created form fields with extremely large kerning (character spacing) values I need to change. However, there appears to be no way to modify this value in the Acrobat UI.
Does anyone know how to manipulate character spacing on form fields in Acrobat 8.0 for Windows? I could try to use iText to programmatically manipulate the kerning of the original document, but this would be much more tedious.
I believe I figured this out: kerning is called "combing" in acrobat, and each of the form fields have been "combed". The strange thing is this option isn't checked when I view the properties of the form field, but "combing" is the behaviour I was attempting to replicate.