|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, We tested this on our demo page and it worked fine: http://www.essentialobjects.com/Products/EOPdf/HtmlToPdf.aspxIf you still have problems, please let us know. Thanks!
|
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
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
|
|