Page 1 of 1

pdf_output plugin method for Forms (new feature request?)

PostPosted: Thu May 11, 2023 7:58 pm
by rafig
Hi,
I have a use case for a client that wants to be able to email a PDF form to their clients part filled in by data from their Servoy solution.
The pdf_output plugin nearly does what I need with the 'convertPDFFormToPDFDocument', but I don't want the PDF file fully "flattened", just a new PDF form created with some form values filled in from database, but other form values left blank for their client to fill in and then save & email back (does not need to go back in to Servoy database!)
So code something like a 'convertPDFFormToNewPDFForm' instead of the 'convertPDFFormToPDFDocument'
Code: Select all
   var pdfform = plugins.file.readFile('TestPDFForm.pdf');
   //var field_values = plugins.file.readFile('c:/temp/1040a-data.fdf');//read adobe fdf values or
   var field_values = new Array()//construct field values
   field_values[0] = 'first_name=Rafi'
   field_values[1] = 'last_name=Galibov'
   var result_pdf_doc = plugins.pdf_output.convertPDFFormToNewPDFForm(pdfform, field_values);
   if (result_pdf_doc != null) {
      plugins.file.writeFile( + 'UpdatedTestPDFForm.pdf', result_pdf_doc);
   }

as the convertPDFFormToPDFDocument does create a new PDF with filled in values, but stops any other fields on form from working...
(I'm not sure much has been done with this plug in for a long time & certainly the docs don't seem to have been updated for a long time...)

Otherwise, does anyone have an easy way of doing what I'm asking?

Thanks

Rafi

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Mon May 15, 2023 6:51 pm
by rafig
^^^ BUMP ^^^

Anybody?? (more specifically from Servoy that might be able to update the plugin...?)
Thanks

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Tue May 16, 2023 8:57 am
by ROCLASI
Hi Rafi,

I suggest you file a feature request in the support system.

Hope this helps.

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Thu May 18, 2023 2:30 pm
by rafig
ROCLASI wrote:I suggest you file a feature request in the support system.

Hi Robert
apologies for not replying sooner ;-)
I will do that, but had hoped someone might have had some other easy/clever solution... ;-)
Thanks

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Thu May 18, 2023 2:46 pm
by rafig

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Thu May 18, 2023 5:45 pm
by Westy
We have a new Servoy solution that offers PDF forms as a service, that might help. Currently it allows PDF form templates to be uploaded and new records to be created for each template. It works with forms in the common PDF acroform format (not xml) with text and checkbox fields. Scripts within PDF forms are not supported. In the solution a form record popup provides the following actions:
Edit Record
Duplicate Record
Email Document
Fill to another Form
Combine forms and sort
Protect Document
Share editable link
Delete Record

We are adding a new option to allow the submission of data from an outside source that fills to any PDF form and emails the form. This should be available by the end of next week. If interested in testing, please let me know.

Anyone can create a new account now, to try the above listed action items, at https://FillinPDF.com

Dean Westover, President
Choices Software, Inc.

Re: pdf_output plugin method for Forms (new feature request?

PostPosted: Fri Jun 02, 2023 2:30 pm
by rafig
^^^ ANOTHER BUMP ^^^
No reply from Servoy & no action on my support case.
This is becoming more pressing for me from my client that needs this feature added.
Please can someone from Servoy have a look??
Have a good weekend
Thanks
Rafi