Automatically create and save PDF-file

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatically create and save PDF-file

criho
Hi,

is there any way to automatically create and save a PDF-File of the filled form?

I want to run a form, let the form be filled out by a user and at a certain state of the form i want to (automatically) create a pdf-file of the filled form (the same as it would be generated by clicking the standard pdf-button) and send it to a windows-fileshare or a webservice to save it.

Thanks for your help.

Christian
Reply | Threaded
Open this post in threaded view
|

Re: Automatically create and save PDF-file

Erik Bruchez
Administrator
So would the user click a button? What would trigger the PDF creation? -Erik
Reply | Threaded
Open this post in threaded view
|

Re: Automatically create and save PDF-file

criho

If a certain status is selected from a dropdown control and the workflow-send button is clicked. This should trigger the pdf creation.

Christian



Erik Bruchez [via Orbeon Forms community mailing list] --- Re: Automatically create and save PDF-file ---

Von:"Erik Bruchez [via Orbeon Forms community mailing list]" <[hidden email]>
An"criho" <[hidden email]>
Datum:Sa., 05.04.2014 03:00
BetreffRe: Automatically create and save PDF-file


So would the user click a button? What would trigger the PDF creation? -Erik


If you reply to this email, your message will be added to the discussion below:
http://discuss.orbeon.com/Automatically-create-and-save-PDF-file-tp4658192p4658225.html
To unsubscribe from Automatically create and save PDF-file, click here.
NAML


CaritasOberösterreich - Jetzt Fan werden

Das Jahresthema 2014 der Caritas in OÖ.: Gemeinsam Familie leben
Es werden keine Bilder angezeigt? Hier klicken
Reply | Threaded
Open this post in threaded view
|

Re: Automatically create and save PDF-file

Erik Bruchez
Administrator
This should be possible already since 4.4 with a custom button and process, as processes support conditions:

https://github.com/orbeon/orbeon-forms/wiki/Form-Runner:-Buttons-and-Processes#conditions

Here is how it would work:

- button starts process
- condition checks value in instance
- if condition is satisfied
  - run send action
  - your service receives the URL of the PDF created

Would this work?

-Erik