Welcome Guest Search | Active Topics | Sign In | Register

Blank PDF on Windows 2003 + IIS 6 Options
Cu4IT
Posted: Tuesday, August 27, 2013 12:44:09 PM
Rank: Newbie
Groups: Member

Joined: 8/26/2013
Posts: 6
I am using the following code to place a div filled with a calendar into a PDF:

Code: C#
HtmlToPdf.Options.MinLoadWaitTime = 1500;
HtmlToPdf.Options.VisibleElementIds = "calendarContainer";
HtmlToPdf.Options.PageSize = new SizeF(PdfPageSizes.A4.Height, PdfPageSizes.A4.Width);
HtmlToPdf.Options.OutputArea = new RectangleF(0.15f, 0.15f, PdfPageSizes.A4.Height - 0.3f, PdfPageSizes.A4.Width - 0.3f);
HtmlToPdf.Options.AutoFitY = HtmlToPdfAutoFitMode.ShrinkToFit;
ASPXToPDF1.RenderAsPDF(string.Format("Kalender_{0}_{1}.pdf", YearString, datevalue.ToString("MMMM")));


On our testenvironment (Windows 2008R2 + IIS 7.5) it works without any problems. On another environment with Windows 2003 + IIS6 I get an emtpy PDF.

Are there any known conflicts with other plug-ins? And does it matter if the div to render to PDF is not controlled by .NET (i.e. no runat="server")?
eo_support
Posted: Tuesday, August 27, 2013 4:32:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Neither DIV nor plug-in matters. We can not think of anything that could cause a blank page, except for that VisibleElementIds is wrong, or your page is indeed blank. I would recommend you try it with a small simple test page and see if it works for you, then gradually add contents back and see what triggered the problem. Usually as long as you find out what triggered the problem,you will find out why it occurs.

Thanks!
Cu4IT
Posted: Monday, September 2, 2013 2:18:16 PM
Rank: Newbie
Groups: Member

Joined: 8/26/2013
Posts: 6
It appears I used an old EO.pdf.dll file from trial with my new license which required a newer dll. That resolved the issue.
eo_support
Posted: Monday, September 2, 2013 2:45:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Glad to hear that the issue is resolved. Please feel free to let us know if there is anything else.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.