Hi, all!
I am using the Merger product to fill in existing merge fields. All is working fine for a long time now.
A recent enhancement to our system is giving me a problem. I need to use a merge field to locate an image for placement in the document. I've seen another example posted, which looks very straightforward. The only issue that I have run into is the difference between
DynamicPDF.Forms.FormField
and
DynamicPDF.Merger.Forms.PdfFormField
I have the Forms.FormField for the merge field, but I need to get it to a Merger.Forms.PdfFormField in order to use the GetX, GetY, Height, and Width.
Thanks!
Image placement
Re: Image placement
Support · May 18, 2009Hello,
In order to access the PdfFormField you will have to create a PdfDocument object when merging the PDF document. You can create a MergeDocument object using the PdfDocument object also.
PdfDocument pdf = new PdfDocument( filePath );
MergeDocument mergePdf = new MergeDocument( pdf );
Now you can access the PdfFormField using the "pdf" object.
Thanks,
ceTe Software Support Team.
Re: Image placement
Forum member · May 18, 2009Thanks!