Hello!
I am using Adobe Acrobat 8's 'LiveCycle' product to define form fields in a PDF and then use the DynamicPDF Merger component to fill the fields via VB.NET. I can successfully update the form fields in the .pdf from code no problem similar to your AcroFormFill MergerExample.
(for example - this code works just fine)
MyDocument.Form.Fields("topmostSubform[0].Page1[0].APPLICANTS_LAST_NAME[0]").Value = "Smith"
The problem lies with the ability to make the .pdf ReadOnly. For what ever reason the code below runs fine (no exceptions thrown) but does not work (.pdf is in edit mode regardless of code) when the .pdf is written to the web after being modified by LiveCycle:
' Make the form read only
MyDocument.Form.IsReadOnly = True
' Encrypt and Secure the document
MyDocument.Security = New HighSecurity()
MyDocument.Security.AllowEdit = False
' View PDF from web
MyDocument.DrawToWeb()
When this code is ran against 1 of your original .pdf's provided in your examples like 'fw9AcroForm_03.pdf' the code above locks the .pdf and makes it read-only as expected.
However, if I open that same .pdf up with Adobe LiveCycle and save it, run the example again, the .pdf is in edit mode when presented on the web. This is the same behavior shown when using .pdf's of my own that had form fields defined by Adobe LiveCycle.
The ability to make the .pdf read-only and apply security was the main reason we purchased the product (as was demonstrated in your examples). Is there something I am missing here to make the .pdf read-only?
By the way, LiveCycle is the defacto product provided by Adobe to designate or edit form fields in a .pdf so I do not have another tool to circumvent this.
Anyones help would greatly be appreciated, thank you!
LiveCycle and DynamicPDF Merger ReadOnly Issues
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Support · Mar 11, 2008Actually, please make sure that you download the latest build from our website (use the Customer Area http://www.DynamicPDF.com/CustomerArea
if you already have a license). We actually just released a build that contained a fix relating to the read-only property of certain form fields.
If after getting the latest build you are still having issues please let us know and we can investigate this further.
Thanks,
ceTe Software Support Team
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Forum member · Mar 12, 2008I am using the .NET 2.0 .dll version 4.0.3.20. Is this not the current version? Also, this is not specific form fields having the issue; the entire .pdf (all form fields) will not go into read-only mode.
Do you have any suggestions? Thanks!
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Support · Mar 12, 2008Hello,
The number you have given is the version number of the product. What build of that version are you using? You can get the latest build from our CustomerArea
by logging in using your serial number. Please try using the latest build and see if it solves your problem.
Thanks,
ceTe Software Support Team.
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Forum member · Mar 18, 2008Sorry. The build version I am using is 80214. I still have not been able to resolve this issue. The .pdf is not locked after being written to the web as detailed in my 1st post.
Does anyone have any ideas on this issue?
Thanks!
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Support · Mar 18, 2008Hello,
Can you please send over the PDF document and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it to find out what is causing this behavior to occur.
Thanks,
ceTe Software Support Team.
Re: LiveCycle and DynamicPDF Merger ReadOnly Issues
Forum member · Mar 18, 2008The ceTe Software Support team reccomended adding the following line and this fixed the issue as explained in my 1st post:
MyDocument.Security.AllowUpdateAnnotsAndFields = False
Thank you!