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);
|
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!
|
Rank: Member Groups: Member
Joined: 6/22/2011 Posts: 22
|
Excellent! Thanks for the quick reply. The new version does the trick!
|
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.
|