Welcome Guest Search | Active Topics | Sign In | Register

PDF Encoding Options
Sara
Posted: Wednesday, June 22, 2011 11:11:31 AM
Rank: Member
Groups: Member

Joined: 6/22/2011
Posts: 22
Hi. Just started using your product and love it so far, but have a question. I am using HtmlToPdf to convert html into a PDF Document. I then set some response headers and save the doc to the output stream (code below). All works well, except when I open the pdf and try to copy text from it and paste the text into, say, textpad, I am getting garbage characters. Example: 􀀶􀀨􀀤􀀵􀀦􀀫􀀃􀀦􀀵􀀬􀀷􀀨􀀵􀀬􀀤 --this was copied from my pdf doc.

I'm assuming this is some sort of encoding issue, maybe something I need to set in a response header??? I'm not completely up on pdf files and am not finding an answer when searching for this.

Any idea how I get get the copy and paste to work correctly? By the way, it does work from a pdf that was not generated through your product.

Thanks!

tmlToPdf.ConvertHtml(html, doc);

HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ClearHeaders();
response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", string.Format("attachment;filename=OPN_{0}.pdf", fileExten));

doc.Save(response.OutputStream);
eo_support
Posted: Wednesday, June 22, 2011 11:15:27 AM
Rank: Administration
Groups: Administration

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

Please download the latest build from our download page. This is an issue that has just been fixed.

Thanks!
Sara
Posted: Wednesday, June 22, 2011 12:41:17 PM
Rank: Member
Groups: Member

Joined: 6/22/2011
Posts: 22
Excellent! Thanks for the quick reply. The new version does the trick!
eo_support
Posted: Wednesday, June 22, 2011 12:51:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great! Glad that it works for you! Please feel free to let us know if there is anything else.


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.