You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Gary Grosso <ga...@oberontech.com> on 2017/05/17 16:34:07 UTC

creating fillable forms, possibly in/from existing PDF file?

Hi,

I am exploring a requirement to generate PDF fillable forms.

A major decision is whether to start with our current PDF (created with a derivative of PStill), or build it with PDFBox from scratch. In the past I added bookmarks to our existing PDF files using PDFBox.

I see in the examples (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/) that a PDAcroForm instance is being added to a newly created empty PDDocument.

Is it worth considering modifying an existing PDF document to add fillable form fields? Or should I not waste time with that approach and plan to create a new document from scratch?

Thanks,
Gary Grosso



RE: creating fillable forms, possibly in/from existing PDF file?

Posted by Gary Grosso <ga...@oberontech.com>.
Thanks, Andreas. I think I got there as the result of a Google search.

This time I specifically went to https://www.mail-archive.com/users@pdfbox.apache.org/ and things are working much better.

Gary


-----Original Message-----
From: Andreas Lehmkühler [mailto:andreas@lehmi.de] 
Sent: Thursday, May 18, 2017 2:20 AM
To: users@pdfbox.apache.org
Subject: RE: creating fillable forms, possibly in/from existing PDF file?


> Gary Grosso <ga...@oberontech.com> hat am 18. Mai 2017 um 05:09 geschrieben:
> 
> 
> Thanks for your reply, Tilman.
> 
> I see PDFBox allows for text field/area (single or multi-line), list box, combo box, check box, push button, and radio button.
> 
> Would it be reasonable to say that implementing a date picker in an acroform should be possible, but would require JavaScript (e.g., using PDFormFieldAdditionalActions class)?
> 
> By the way, it seems it is no longer possible to search the archives. For example, this:
> 
> http://www.mail-archive.com/search?a=1&l=pdfbox-users%40incubator.apache.org&haswords=PDDocument&x=16&y=9&from=&subject=&datewithin=1y&date=2016-05-15&notwords=&o=relevance
> 
> results in:
> 
> "No matches were found for PDDocument date:[20150516 TO 20170515]"
You are using the wrong ml-address, replace "pdfbox-users@incubator.apache.org" with "users@pdfbox.apache.org". The former one was deprecated in 2009 when pdfbox graduated to a top level project.

Andreas
> 
> which I know not to be true.
> 
> Am I searching incorrectly or in the incorrect location?
> 
> Thanks,
> Gary
> 
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de] 
> Sent: Wednesday, May 17, 2017 1:15 PM
> To: users@pdfbox.apache.org
> Subject: Re: creating fillable forms, possibly in/from existing PDF file?
> 
> Am 17.05.2017 um 18:34 schrieb Gary Grosso:
> > Hi,
> >
> > I am exploring a requirement to generate PDF fillable forms.
> >
> > A major decision is whether to start with our current PDF (created with a derivative of PStill), or build it with PDFBox from scratch. In the past I added bookmarks to our existing PDF files using PDFBox.
> >
> > I see in the examples (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/) that a PDAcroForm instance is being added to a newly created empty PDDocument.
> >
> > Is it worth considering modifying an existing PDF document to add fillable form fields? Or should I not waste time with that approach and plan to create a new document from scratch?
> 
> IMHO it doesn't make much difference because acroform is separate from the rest. Creating fields with PDFBox is always tricky.
> 
> Tilman
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


RE: creating fillable forms, possibly in/from existing PDF file?

Posted by Andreas Lehmkühler <an...@lehmi.de>.
> Gary Grosso <ga...@oberontech.com> hat am 18. Mai 2017 um 05:09 geschrieben:
> 
> 
> Thanks for your reply, Tilman.
> 
> I see PDFBox allows for text field/area (single or multi-line), list box, combo box, check box, push button, and radio button.
> 
> Would it be reasonable to say that implementing a date picker in an acroform should be possible, but would require JavaScript (e.g., using PDFormFieldAdditionalActions class)?
> 
> By the way, it seems it is no longer possible to search the archives. For example, this:
> 
> http://www.mail-archive.com/search?a=1&l=pdfbox-users%40incubator.apache.org&haswords=PDDocument&x=16&y=9&from=&subject=&datewithin=1y&date=2016-05-15&notwords=&o=relevance
> 
> results in:
> 
> "No matches were found for PDDocument date:[20150516 TO 20170515]"
You are using the wrong ml-address, replace "pdfbox-users@incubator.apache.org" with "users@pdfbox.apache.org". The former one was deprecated in 2009 when pdfbox graduated to a top level project.

Andreas
> 
> which I know not to be true.
> 
> Am I searching incorrectly or in the incorrect location?
> 
> Thanks,
> Gary
> 
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de] 
> Sent: Wednesday, May 17, 2017 1:15 PM
> To: users@pdfbox.apache.org
> Subject: Re: creating fillable forms, possibly in/from existing PDF file?
> 
> Am 17.05.2017 um 18:34 schrieb Gary Grosso:
> > Hi,
> >
> > I am exploring a requirement to generate PDF fillable forms.
> >
> > A major decision is whether to start with our current PDF (created with a derivative of PStill), or build it with PDFBox from scratch. In the past I added bookmarks to our existing PDF files using PDFBox.
> >
> > I see in the examples (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/) that a PDAcroForm instance is being added to a newly created empty PDDocument.
> >
> > Is it worth considering modifying an existing PDF document to add fillable form fields? Or should I not waste time with that approach and plan to create a new document from scratch?
> 
> IMHO it doesn't make much difference because acroform is separate from the rest. Creating fields with PDFBox is always tricky.
> 
> Tilman
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: creating fillable forms, possibly in/from existing PDF file?

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 18.05.2017 um 05:09 schrieb Gary Grosso:
> Thanks for your reply, Tilman.
>
> I see PDFBox allows for text field/area (single or multi-line), list box, combo box, check box, push button, and radio button.
>
> Would it be reasonable to say that implementing a date picker in an acroform should be possible, but would require JavaScript (e.g., using PDFormFieldAdditionalActions class)?


Yes.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


RE: creating fillable forms, possibly in/from existing PDF file?

Posted by Gary Grosso <ga...@oberontech.com>.
Thanks for your reply, Tilman.

I see PDFBox allows for text field/area (single or multi-line), list box, combo box, check box, push button, and radio button.

Would it be reasonable to say that implementing a date picker in an acroform should be possible, but would require JavaScript (e.g., using PDFormFieldAdditionalActions class)?

By the way, it seems it is no longer possible to search the archives. For example, this:

http://www.mail-archive.com/search?a=1&l=pdfbox-users%40incubator.apache.org&haswords=PDDocument&x=16&y=9&from=&subject=&datewithin=1y&date=2016-05-15&notwords=&o=relevance

results in:

"No matches were found for PDDocument date:[20150516 TO 20170515]"

which I know not to be true.

Am I searching incorrectly or in the incorrect location?

Thanks,
Gary

-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de] 
Sent: Wednesday, May 17, 2017 1:15 PM
To: users@pdfbox.apache.org
Subject: Re: creating fillable forms, possibly in/from existing PDF file?

Am 17.05.2017 um 18:34 schrieb Gary Grosso:
> Hi,
>
> I am exploring a requirement to generate PDF fillable forms.
>
> A major decision is whether to start with our current PDF (created with a derivative of PStill), or build it with PDFBox from scratch. In the past I added bookmarks to our existing PDF files using PDFBox.
>
> I see in the examples (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/) that a PDAcroForm instance is being added to a newly created empty PDDocument.
>
> Is it worth considering modifying an existing PDF document to add fillable form fields? Or should I not waste time with that approach and plan to create a new document from scratch?

IMHO it doesn't make much difference because acroform is separate from the rest. Creating fields with PDFBox is always tricky.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: creating fillable forms, possibly in/from existing PDF file?

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 17.05.2017 um 18:34 schrieb Gary Grosso:
> Hi,
>
> I am exploring a requirement to generate PDF fillable forms.
>
> A major decision is whether to start with our current PDF (created with a derivative of PStill), or build it with PDFBox from scratch. In the past I added bookmarks to our existing PDF files using PDFBox.
>
> I see in the examples (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/interactive/) that a PDAcroForm instance is being added to a newly created empty PDDocument.
>
> Is it worth considering modifying an existing PDF document to add fillable form fields? Or should I not waste time with that approach and plan to create a new document from scratch?

IMHO it doesn't make much difference because acroform is separate from 
the rest. Creating fields with PDFBox is always tricky.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org