Welcome Guest Search | Active Topics | Sign In | Register

Encoding in Html To Pdf Options
master83
Posted: Thursday, May 3, 2012 3:28:19 AM
Rank: Member
Groups: Member

Joined: 3/6/2012
Posts: 19
I have a string like "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s". In this string i have HTML Code "'" for " ' " (Apostrophe). When i render this string in Pdf using HtmlToPdf Converter it renders as it is instead i want it to render and decode my html code as well.

Is there any way to do that? Thanks!
eo_support
Posted: Thursday, May 3, 2012 8:29:35 AM
Rank: Administration
Groups: Administration

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

We tested this on our demo page and it worked fine:

http://www.essentialobjects.com/Products/EOPdf/HtmlToPdf.aspx

If you still have problems, please let us know.

Thanks!
master83
Posted: Thursday, May 3, 2012 9:59:58 AM
Rank: Member
Groups: Member

Joined: 3/6/2012
Posts: 19
HtmlToPdfOptions htmlToPdfOptions = new HtmlToPdfOptions();
htmlToPdfOptions.ZoomLevel = 0.68f;
htmlToPdfOptions.PageSize = PdfPageSizes.A4;
htmlToPdfOptions.AutoAdjustForDPI = true;
htmlToPdfOptions.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
htmlToPdfOptions.AutoFitY = HtmlToPdfAutoFitMode.ScaleToFit;
htmlToPdfOptions.OutputArea = new RectangleF(0.3f, 0.65f, doc.Pages[0].Size.Width - 0.6f, (doc.Pages[0].Size.Height * 3) - 1f);

i am using these HtmlToPdfOptions to convert but it doesn't work for me. ' comes as it is. Is there any other option or setting i need to make.

Thanks!
eo_support
Posted: Thursday, May 3, 2012 11:40:01 AM
Rank: Administration
Groups: Administration

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

It shouldn't have anything to do with the options. I would think the text you pass to the converter is already wrong. So I would recommend you to check that first. If that is fine for you and you still have problem, try to update to the latest build. If that still does not resolve the issue for you, please isolate the problem into a small test application and post the full test code. We will then take a look when we have that.

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.