pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Call java file from PDF
Date Sun, 14 Feb 2016 20:27:13 GMT
Am 14.02.2016 um 21:15 schrieb Al Grant:
> Thank you for both your answers.
> The html is very appealing,  but what I did not mention is in working
> within a rather rigid IT environment.
> I won't be able to install a html server. So back to Java executable (which
> I can use) unless there is a better way?

But you were already told that you can't execute java programs from a PDF.

You mentioned that you want to submit the data to a database.

Why do you need a PDF at all?


> Cheers
> Al
> On 15/02/2016 9:07 am, "Gilad Denneboom" <gilad.denneboom@gmail.com> wrote:
>> As Tilman wrote, you can submit the data to a server and then handle it
>> from there, but you can't execute an executable from within the PDF. That
>> would be a huge security risk, as a Java application can easily delete
>> files on your system or do all kinds of other damages.
>> On Sun, Feb 14, 2016 at 8:38 PM, Al Grant <bigal.nz@gmail.com> wrote:
>>> Hi Gilad,
>>> Well - both - using a javascript button on the PDF form to call a java
>>> executeable to submit the data on the form to a database. But it doesnt
>>> sound like javascript can call executeables?
>>> I will probably have to have the form saved to the disk and then have the
>>> java executeable given the path to the file, where it can then scrape the
>>> data to the database?
>>> Cheers
>>> -Al
>>> On Sun, Feb 14, 2016 at 10:29 PM, Gilad Denneboom <
>>> gilad.denneboom@gmail.com
>>>> wrote:
>>>> Java or JavaScript? The two are very different, despite the similar
>>> names.
>>>> You can't execute a Java file from within a PDF (luckily), but you can
>>>> attach (Acrobat) JavaScript code to a button in a PDF and have it
>> execute
>>>> when the button is pressed, yes.
>>> --
>>> "Beat it punk!"
>>> - Clint Eastwood

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

View raw message