Re: Linearized dictionary
Hi, * I need to Check whether my PDF file is Linearized or not, for fast view web. * In the previous version (1.8.2) of PDFBox Linearized is in the COSName. I will get the COSDictionary and check whether Linearized is available in the COSName and conclude the PDF is suited for fast web view. Now Linearized keyword is not in the List of COSName. How can I get the Linearized dictionary in PDFBox. Please let me know if you need more details. Regards, Karthick G On Thu, May 18, 2017 at 9:17 AM, karthick gwrote: > Hi team, > > I am a long time user of PDFBox. We starts to migrate pdfbox from 1.8.2 to > 2.0.5. > During migration I found that Linearized dictionary moved to preflight > jar. > I created the PDDocument based on preflight context which is returning > null. > Since the PDDocument is null I can't proceed further. What is the right > way to > get Lineraized dictionary in the current version of PDFBox . Please guide > me. > Please let me know if you need more details. > > Regards, > Karthick G > > > >
Re: creating fillable forms, possibly in/from existing PDF file?
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-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
Re: Linearized dictionary
Am 18.05.2017 um 05:47 schrieb karthick g: Hi team, I am a long time user of PDFBox. We starts to migrate pdfbox from 1.8.2 to 2.0.5. During migration I found that Linearized dictionary moved to preflight jar. No, that's not correct. It was always part of preflight and located in the preflight jar. I created the PDDocument based on preflight context which is returning null. Since the PDDocument is null I can't proceed further. What is the right way to get Lineraized dictionary in the current version of PDFBox . Please guide me. It isn't needed to parse a linearized pdf. Why do you need it? Please let me know if you need more details. Regards, Karthick G Andreas - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
RE: creating fillable forms, possibly in/from existing PDF file?
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:andr...@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 Grossohat 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=pdfbox-users%40incubator.apache.org=PDDocument=16=9===1y=2016-05-15==relevance > > results in: > > "No matches were found for PDDocument date:[20150516 TO 20170515]" You are using the wrong ml-address, replace "pdfbox-us...@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:thaush...@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-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org
RE: creating fillable forms, possibly in/from existing PDF file?
> Gary Grossohat 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=pdfbox-users%40incubator.apache.org=PDDocument=16=9===1y=2016-05-15==relevance > > results in: > > "No matches were found for PDDocument date:[20150516 TO 20170515]" You are using the wrong ml-address, replace "pdfbox-us...@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:thaush...@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-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org