Hello,
I created a PDF form (1 form field - which is a text field) with Acrobat 8. I followed the example in the Merger for .NET examples area and was able to populate the field with the current date.
The problem is that the form field is "Verdana Bold" 10 point black, but shows up as white on the page. It will display as black when the field is clicked into, but I just wanted an easy way to display some data onto the page without having to use the X, Y coordinate system.
Do you know why this happens? Is it an issue with how I created the PDF form in Acrobat, or is it something I am doing wrong with the Merger?
Code:
introductionPDF.Form.Fields["txtCurrentAsOf"].Value = DateTime.Now.ToString("MM/dd/yyyy");
Thank you for your time!
Matt L.
PDF Form Field only Displays when Clicked
Re: PDF Form Field only Displays when Clicked
Support · Aug 29, 2008Hello Matt,
What build of our product are you using? Please make sure that you have the latest build. You can download the latest build from our CustomerArea
by logging in using your current serial number.
If you are getting this behavior after using the latest build also then please send over the PDF document you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: PDF Form Field only Displays when Clicked
Forum member · Aug 29, 2008I am using the following:
DynamicPDF for .NET 2.0 - Server Edition
4.0.3.20 (Server Edition Build 70403)
Is this correct?
Thanks!
Matt L.
Re: PDF Form Field only Displays when Clicked
Support · Aug 29, 2008Hello Matt,
Latest build in our website is build 80214. Please try using the latest build and see if it solves your problem.
Thanks,
ceTe Software Support Team.
Re: PDF Form Field only Displays when Clicked
Forum member · Aug 29, 2008Are there any known issues with jumping up to Merger v5.0.1 Build 10296?
Thanks!
Matt L.
Re: PDF Form Field only Displays when Clicked
Support · Aug 29, 2008Hello Matt,
There are no issues in upgrading to v5.0 from v4.0 of our product. You can upgrade to v5.0 without any problem. However some classes has been depreciated. The v4.0 code may give some warnings when running on v5.0 dlls if you are using these classes. You can refer to the compatibility page
on our website.
Thanks,
ceTe Software Support Team.
Re: PDF Form Field only Displays when Clicked
Forum member · Aug 19, 2011I have the same problem. In a Pdf Document I have some Form Fields which I am filling by code. When I open the Document some of the values only appear when I click into the Form Field.
This whole problem appears only once out of about 100 and if I generate the document once again it works fine.
I am using Core Suite v5.1 for .NET (Build 15141) Developer Edition.
Thanks for your time.
Stefan R.
Re: PDF Form Field only Displays when Clicked
Support · Aug 19, 2011Hello Stefan,
Please try setting NeedsAppearances property of the Form class to true and see if it works for you.Below is the sample code for it.
MergeDocument doc = new MergeDocument(@"C:\fw9AcroForm_03.pdf");
doc.Form.Fields["f1-1"].Value = "My Text";
doc.Form.NeedsAppearances = true;
doc.Draw(@"C:\Mydocument.pdf");
If you continue getting this behavior then please send over a sample application or the code and input PDF document to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^]. This information will help them to do some testing to find the cause for this behavior.
Thanks,
ceTe Software Support Team.