Linearized dictionary

2017-05-17 Thread 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. I created the PDDocument based on preflight context which is returning null. Since the PDDocument is null I can't proceed further.

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

2017-05-17 Thread 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.,

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

2017-05-17 Thread Tilman Hausherr
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

Re: javadoc typo

2017-05-17 Thread Tilman Hausherr
Thanks, I've fixed it, hopefully. https://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDButton.java?view=markup Tilman Am 17.05.2017 um 19:00 schrieb Gary Grosso: Sorry if this is the wrong audience, but I just noticed a "copyitis" glitch

javadoc typo

2017-05-17 Thread Gary Grosso
Sorry if this is the wrong audience, but I just noticed a "copyitis" glitch in the Javadoc, and hoping someone can forward to the right quarters. (Method isRadioButton says it is true if type of button field is a push button.) Method Detail * isPushButton public boolean isPushButton()

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

2017-05-17 Thread 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

Custom XMP schemas vs. XMPMediaManagementSchema

2017-05-17 Thread Peter Pinnau
Not sure if this is the right place for this topic. I am working on a document management software which already has a number of features to work on PDF documents like real-life paper. My plan is to add some kind of modification history information to the PDF. Let's call it a "feed" in modern

Custom XMP schemas with xmpbox

2017-05-17 Thread Peter Pinnau
I would like to implement a custom XMP schema and add/read that metadata using xmpbox. According to the sources of the schema implementations shipped with xmpbox I created a simple test schema: @StructuredType(preferedPrefix = "feed", namespace = "http://pinnau.biz/dms/feed/elements/1.1/;)

Re: PDStream.toByteArray() always returning zero length array

2017-05-17 Thread Maruan Sahyoun
Hi, > Am 17.05.2017 um 09:30 schrieb Martin Lynch : > > Hi > > I am using PDFBox 2.0.3 > > I need to return the byte array representation of a PDDocument without saving > it to disk, but I always get a zero length byte array. > > My method loads a file and creates a

PDStream.toByteArray() always returning zero length array

2017-05-17 Thread Martin Lynch
Hi I am using PDFBox 2.0.3 I need to return the byte array representation of a PDDocument without saving it to disk, but I always get a zero length byte array. My method loads a file and creates a PDDocument from it. It the modifies this document by adding in extra pages and finally I want to