Hi -
We're using Adobe Livecycle Designer to create our PDF templates, and we're evaluating Merger to populate these from C#.
I've created a simple form in designer with a few text fields, but when I reference the document in C#, I get "Object reference not set to an instance of an object. "
The offending line of code is:
document.Form.Fields["txtLoanVersionId"].Value = "blah!";
The PDF file I'm referencing has a PDF version of 1.6, and I notice that the examples in the evaluation are version 1.3. I can run the examples just fine, but when I take one of the examples (such as fw9AcroForm_03.pdf) and upgrade it to PDF version 1.6 through Adobe Livecycle Designer, then I get the same error that I'm getting in my little test.
Will Merger work with PDF version 1.6?
Thanks!
Jay
Adobe Livecycle Designer compatibility
Re: Adobe Livecycle Designer compatibility
Forum member · Jan 31, 2006Oops! Probably just found my own answer. Merger is only currently only compatible thru Adobe PDF version 1.5.
Re: Adobe Livecycle Designer compatibility
Support · Jan 31, 2006Hi Jay,
Actually, Merger v3.0 will support any PDF as long as it does not contain any cross-reference streams or object streams. Typically, Designer will save documents in PDF version 1.6 with cross-reference and object streams so this could be the problem you are having.
Version 4.0 of Merger will fully support cross-reference streams and object streams and therefore will be fully compatible through v1.6 of the PDF specification. If you would like to download and test a BETA of Merger v4.0 it is available at http://www.DynamicPDF.com/Products/DynamicPDF/
.
It is however possible that the issue you are having is not related to the PDF version at all. The issue you are having could be a problem with the names of the form fields. You see, Designer typically saves the names of the form fields in a hierarchical manner. A form field's name could be the concatenation of its parents name like "Parent2.Parent1.FormFieldName" instead of "FormFieldName" as might be expected.
When you are referencing a form field make sure that you have provided the entire name for that form field. This would also make sense because when you saved our example PDF (fw9AcroForm_03.pdf) Designer could be just renaming all the form fields (in this hierarchical structure) and that would cause this error to occur as well.
If you have any questions about any of this feel free to let us know. Also if you have a particular PDF that you would like to check the exact reason it is not working with our product you can send the PDF over to our [^a|mailto:support@cete.com|Support^]. Also include any error and/or stack trace you may have as well.
Thanks,
ceTe Software Support Team