PDFormFieldAdditionalActions.setC() not working?

2017-05-25 Thread Gary Grosso
In my project, I could not get setC to do anything, so I modified the CreateSimpleForm.java code to create 2 fields (just in case that mattered), which resulted in http://aapro.net/PDF/SimpleForm.pdf. Then I commented out a lot of distracting other event handling in FieldTriggers.java, and

RE: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Gary Grosso
Never mind, it's as simple as: PDPushButton.setAlternateFieldName() I guess I'll use both setAlternateFieldName and setRolloverCaption. Gary -Original Message- From: Gary Grosso [mailto:gary.gro...@oberontech.com] Sent: Thursday, May 25, 2017 1:29 PM To: users@pdfbox.apache.org

RE: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Gary Grosso
I see. Does PDFBox provide a way to set the TU (alternate field name) field? Thanks, Gary -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online.de] Sent: Thursday, May 25, 2017 11:57 AM To: users@pdfbox.apache.org Subject: Re: what should

Re: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Tilman Hausherr
I looked at the files in PDFDebugger. The "This is a tooltip added by acrobat" line appears in "/TU", which is meant for something different: (Optional; PDF 1.3) An alternate field name that shall be used in place of the actual field name wherever the field shall be identified in the user

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Tilman Hausherr
ok... sorry I can't help further. Maybe it's best to ask on stackoverflow. Use a label for bouncycastle and include all, i.e. code, links to PDF files and the image. Tilman Am 25.05.2017 um 12:42 schrieb Paresh Chouhan: oh I cannot attach the image, see my work flow is something like

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Paresh Chouhan
Hi Diego, Only thing is I am not discarding changes so my steps are more like - Grab original PDF - add signature dictionary and get the hash - send the hash to client - Wait for data on Standard Input. - Wait for Client to send the signed hash back, This data is then feeded to the

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Diego Azevedo
Hey, Paresh I had the same problem with a similar workflow, and glancing at your code I think you did the same as I did before: - Grab original PDF - add signature dictionary and get the hash - discart changes - send the hash to client - mount CMS package with information

RE: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Gary Grosso
One more upload: http://aapro.net/PDF/DocBookTest3_modified_w-Acrobat-Tooltip-also-TextField.pdf Contrary to what I inferred from "how to add tooltip" articles I read online, Acrobat allows me to add a tooltip to a textfield (not just a button), and it works just fine. This is so much nicer

RE: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Gary Grosso
I also uploaded http://aapro.net/PDF/DocBookTest3_modified_captionsByPDFBox.pdf -Original Message- From: Gary Grosso [mailto:gary.gro...@oberontech.com] Sent: Thursday, May 25, 2017 8:54 AM To: users@pdfbox.apache.org Subject: RE: what should

RE: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Gary Grosso
Yes, it does work if done with Acrobat, see http://aapro.net/PDF/DocBookTest3_modified_w-Acrobat-Tooltip.pdf ( done using Button Properties > General > Tooltip). I need general tooltip capability. Everywhere I look, this is done with buttons, sometimes invisible. This is perhaps the last

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Paresh Chouhan
oh I cannot attach the image, see my work flow is something like this http://i64.tinypic.com/29v02u.png so I am doing the signing on the client and reattaching the signed hash that I receive from client. On Thu, May 25, 2017 at 4:09 PM Paresh Chouhan wrote: > On

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Paresh Chouhan
On Thu, May 25, 2017 at 3:13 PM Tilman Hausherr wrote: > Am 25.05.2017 um 08:22 schrieb Paresh Chouhan: > > Original PDF : https://www.mediafire.com/?bg9z4c9450v01io > > Signed PDF : https://www.mediafire.com/?fqvnf9mg50pfzjh > > Thanks... I wanted to see the files first

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Tilman Hausherr
Am 25.05.2017 um 08:22 schrieb Paresh Chouhan: Original PDF : https://www.mediafire.com/?bg9z4c9450v01io Signed PDF : https://www.mediafire.com/?fqvnf9mg50pfzjh Thanks... I wanted to see the files first because I'm lazy and had hoped it's some obvious problem in the PDF itself, but it isn't.

Re: what should PDAppearanceCharacteristicsDictionary.setRolloverCaption do?

2017-05-25 Thread Tilman Hausherr
According to the PDF spec: "(Optional; pushbutton fields only) The widget annotation’s rollover caption, which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button." The best would be to create such a file with Adobe Acrobat to see if it

Re: How do I specify the google noto font with printed

2017-05-25 Thread Tilman Hausherr
Am 25.05.2017 um 08:01 schrieb Rock Lin: Hi Sir: I used the PDDocument.load(PdfInputStream) to load a PDF File. And I want to print this PDF use google noto font(NotoSansCJKtc-Regular.otf).(The PDF has many chinese word) How did I do? You can't, at least not out of the box. It wouldn't make

How do I specify the google noto font with printed

2017-05-25 Thread Rock Lin
Hi Sir: I used the PDDocument.load(PdfInputStream) to load a PDF File. And I want to print this PDF use google noto font(NotoSansCJKtc-Regular.otf).(The PDF has many chinese word) How did I do? Thanks for your help!

RE: Warning about document close

2017-05-25 Thread Vassallo, Fabio
Good morning. Yesterday I finally had the time to thoroughly debug my code: it was actually my fault. In certain cases I didn't close a document and PDFBox was right to point it out. Thank you, Fabio Fabio Vassallo Product Development (CIS) Würth Phoenix S.r.l. via Kravogl 4, 39100 Bolzano

Re: PDF Signing, generated PDF Document certification is invalid, using HSM

2017-05-25 Thread Paresh Chouhan
Original PDF : https://www.mediafire.com/?bg9z4c9450v01io Signed PDF : https://www.mediafire.com/?fqvnf9mg50pfzjh ^Tilman :) On Thu, May 25, 2017 at 12:28 AM Tilman Hausherr wrote: > Hi, > Please upload your signed PDF file to a public location. > Tilman > > >