RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Adam Steen
HI Tilman Thanks for your help, regarding "pdAcroForm.setNeedAppearances(true);", will pdfbox have a default appearance in the future, so need appearances will not be needed? I have a working solution to set default values and have acrobat render them. It was pure fluke that I got this result,

RE: No Class definition error on

2016-01-21 Thread Haddy, Diane E
I am using eclipse as my IDE. I have pdfBox.jar in WEB-INF/lib directory. I searched this error online and someone referenced fontbox-1.8.11.jar file. So I downloaded it too. Now it works. Thank you very much for replying to my email so quickly. Diane -Original Message- From: Tilma

Re: No Class definition error on

2016-01-21 Thread Tilman Hausherr
Maybe something went wrong with the deployment, i.e. that pdfbox jar isn't in the .war file? What IDE are you using? Tilman Am 21.01.2016 um 22:01 schrieb Haddy, Diane E: Hello I am new to Apache PDFBox. I have written simple code to display the word “Training” in the pdf. When I call th

No Class definition error on

2016-01-21 Thread Haddy, Diane E
Hello I am new to Apache PDFBox. I have written simple code to display the word "Training" in the pdf. When I call this method I am receiving a NoClassDefFound error on PDTpye1Font. Any ideas or suggestions are welcome. Thank you Diane private byte[] createThePdf() throws Exception {

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread clovis
Ok thanks for the responses. I know this is beyound this forum's scope. But I think people here can make good suggestions about this topic and if the solution happens to be returning FDF, I think I will need your help again in dealing with this response. I will try both PDF or FDF. As HTML seems v

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread Maruan Sahyoun
and FDF is supported too as has been pointed out. Maruan Sahyoun > Am 21.01.2016 um 14:24 schrieb Maruan Sahyoun : > > For Adobe Reader you need to supply a PDF als the response content. Adobe > Acrobat also supports other response formats auch aus HTML. > > BR > > Maruan Sahyoun > >> Am 21.

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread Maruan Sahyoun
For Adobe Reader you need to supply a PDF als the response content. Adobe Acrobat also supports other response formats auch aus HTML. BR Maruan Sahyoun > Am 21.01.2016 um 14:08 schrieb clovis : > > Sorry, I've just tested again and it is working now. Actualy it was already. > The test PDF I cr

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread Gilad Denneboom
This is beyond the scope of this forum, I think, but you could return a simple FDF file from your service. The file will be processed by the application and presented to the user. On Thu, Jan 21, 2016 at 2:08 PM, clovis wrote: > Sorry, I've just tested again and it is working now. Actualy it was

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread Tilman Hausherr
Am 21.01.2016 um 14:08 schrieb clovis: Sorry, I've just tested again and it is working now. Actualy it was already. The test PDF I created with Acrobat Pro has an invalid URL and Acrobat Reader shows a message immediatly after you click the button. The PDF I've created with PDFBOX has a valid URL

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread clovis
Sorry, I've just tested again and it is working now. Actualy it was already. The test PDF I created with Acrobat Pro has an invalid URL and Acrobat Reader shows a message immediatly after you click the button. The PDF I've created with PDFBOX has a valid URL and Acrobat doesn't show any feedback un

Re: Add a Submit Action to PDPushButton

2016-01-21 Thread Tilman Hausherr
Hi, The screenshot didn't get through. Please upload it somewhere, also the PDF you created with Adobe. Please do also post your current code in full. Tilman Am 21.01.2016 um 13:27 schrieb clovis: Hi, Now that my Push Button is visible. I want to submit PDF or PDF form data to a server (unl

Add a Submit Action to PDPushButton

2016-01-21 Thread clovis
Hi, Now that my Push Button is visible. I want to submit PDF or PDF form data to a server (unless someone knows how to extract pdf form data just filled in a PDF embedded in an HTML page using acrobat reader). First I tried to use PDActionSubmitForm, but there is no PDPushButton.setAction method

Re: PDFBox for JavaScript analysis

2016-01-21 Thread Alin Ghitulan
Thanks a lot, I will try it out and come back once I have component that can read the whole javascript. Maybe the code can be put somewhere in the API and be of used to someone else :) On Wed, Jan 20, 2016, 15:35 Tilman Hausherr wrote: > Am 20.01.2016 um 05:58 schrieb Tilman Hausherr: > >> > > >

Re: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Tilman Hausherr
Am 21.01.2016 um 09:41 schrieb Adam Steen: I am now able to create a radio button group with "pdAcroForm.setNeedAppearances(true);", acrobat rendering things nicely for me. I am also able to create a group of checkboxes with default values also with "pdAcroForm.setNeedAppearances(true);", agai

RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Adam Steen
I am now able to create a radio button group with "pdAcroForm.setNeedAppearances(true);", acrobat rendering things nicely for me. I am also able to create a group of checkboxes with default values also with "pdAcroForm.setNeedAppearances(true);", again acrobat rendering things nicely for me. M

Re: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Tilman Hausherr
Am 21.01.2016 um 06:51 schrieb Adam Steen: It seems without building an appearance I am unable to set a default value? Indeed. I've been there too and looked through the code. Tilman Does anyone have any ideas? Adam -Original Message- From: Adam Steen [mailto:ad...@rmt.com.au] Se