I have been working on my local machine, which has Acrobat Standard installed on it. I've been using the following snippet of code:
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page();
page = mergeDoc.Pages[0];
doc.Form.Fields[FieldPosition].CreateLabel(page, FieldValue, fieldFont, fieldFontSize, TextAlign);
Where FieldPosition, FieldValue, fieldfont, etc... are all values passed down to the method this code resides in. When I have Acrobat standard set as my default viewer, it displays everything fine. However, when I try and view the PDF using Foxit, or Acrobat Reader, none of the form data appears. Here's the line I use to display the data:
doc.Form.IsReadOnly = true;
doc.DrawToWeb();
Is there some different for why it works in Standard, but when loaded in Reader, all I see is a blank page?
Labels Display in Acrobat Standard, but not reader?
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Dec 15, 2009It seems the issue may be related to Windows 7. On Vista boxes, we are not seeing the issue.
Re: Labels Display in Acrobat Standard, but not reader?
Support · Dec 15, 2009Hello,
We have not seen this behavior so far. Can you please send over the output PDF document to our [^a|mailto:support@cete.com\opennewwindow|Support Team^] so that they can do some further testing?
Also please let us know the version of Acrobat Reader and Acrobat Snatdard you are using on Windows 7 machine? What edition of Windows 7 is installed?
Thanks,
ceTe Software Support Team
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Mar 3, 2010I am having the same problem but it doesn't seem to matter what OS as I have the problem on XP and Vista.
One thing I noticed, is if I click on the field the text actually shows up like it should. It seems to be hidden behind the field. When I print though, it is no longer there.
Have you figured anything out on this?
Thanks,
Ryan
Re: Labels Display in Acrobat Standard, but not reader?
Support · Mar 3, 2010Hello Ryan,
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 look into it further?
Thanks,
ceTe Software Support Team.
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Mar 3, 2010I already have an active ticket going: S10466972
Ryan
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Mar 3, 2010I figured out the issue. For us it was a case of setting Mergeoptions.None. The problem seems to be that in some instances of Adbobe on some browsers, (Safari has it for sure for us) the boxes that we were using as placeholders were appearing on top of our actual values. While on some systems the boxes only appeared if you selected "View Editable fields", in others, they were always on, and always covered up the data. Since we now always do MergeOptions.None, it's been fixed for all of our clients.
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Mar 3, 2010I tried setting MergeOptions.None but then the acro fields don't seem to import (they are on the original PDF) and I get the following lovely error: Object reference not set to an instance of an object. It's referencing the line where I set the field value:
Line 53: document.Form.Fields["f1_9(0)"].Value = s;
Ryan
Re: Labels Display in Acrobat Standard, but not reader?
Support · Mar 17, 2010Hello Ryan,
Yes, when setting the MergeOptions.None the form fields will not be preserved to the final PDF and you will get this error when trying to access a field as it is no more present in the PDF.
Thanks,
ceTe Software Support Team.
Re: Labels Display in Acrobat Standard, but not reader?
Forum member · Mar 17, 2010Ahh, yes. I don't put data in the fields. I just use the form fields as markers, and then I write directly to the form. I then remove the fields so they don't cover up the actual data, as it appears to in some PDF viewers.
We do this because there is no need (and we don't want to grant) the end user the ability to edit the data in the PDF.