Aug 21, 2012; 16:15
Adam de Zoete
Save form data in PDF Permissions
Does anyone know the correct Lasso permission setting for PDF_Doc to get a PDF to allow saveable form data? I am trying to produce a PDF with a form that can be saved to disk along with it's form data.
I'm sure i'm missing something obvious. According to Adobe, there are various ways to set this up from within Acrobat Pro, but not everyone has that. Of course, Preview on Mac doesn't care and will just let you save it, but not everyone has that either. Acrobat Reader 9.5.2 plain refuses to allow the form to be saved.
http://forums.adobe.com/thread/462658
This was the code that I was using to test some basic form fields, with the permissions documented in LassoReference added in there:
---
local('file_name'='editable_form.pdf');
local('pdf_out'=pdf_doc(-file=#file_name, -size='Legal', -margins=Array(64,64,72,72), 'Author'='Name', -usedate, -userpassword='', -encryptstrong, -permissions='Print, Modify, AllowCopy, Annotate, FillIn, Assemble, ScreenReader, DegradedPrint'));
loop(30);
#pdf_out -> addtextfield(
-name='field_' + loop_count,
-value='Field ' + loop_count,
-font=pdf_font(-Face='Helvetica', -Size=8),
-left=50,
-top=50 + (loop_count*18),
-width=135.0,
-height=16.0);
/loop;
#pdf_out->close;
pdf_serve(#pdf_out,-file=#file_name);
---
Lasso 8.6
iText 1.4.1
Mac OS 10.7.4
I think I tried to do this a few years ago and hit an almighty brick wall, but assumed with the iText updates in 8.6 that it might now be possible. Anyone doing this successfully with 8.6?
I know there is a possible solution (untested) if I create a template PDF with a form in Acrobat and import that into my PDF, but it doesn't work for me as each form in the PDF i'm generating will be unique.
Any suggestions would be amazing.
Cheers,
Adam
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 21, 2012; 08:57
Steve Piercy - Web Site Builder
Re: Save form data in PDF Permissions
Aug 21, 2012; 18:23
Adam de Zoete
Re: Save form data in PDF Permissions
Aug 22, 2012; 05:55
Rick Draper
RE: Save form data in PDF Permissions
Aug 22, 2012; 10:16
Adam de Zoete
Re: Save form data in PDF Permissions