Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Blank space between characters in merged PDFs Options
Patrick
Posted: Tuesday, August 1, 2017 6:08:43 AM
Rank: Newbie
Groups: Member

Joined: 8/1/2017
Posts: 1
In some cases merging two (or more) PDFs leads to additional blank spaces between characters. I provided a bit of code below to reproduce.

Quote:
string style =
"html, body {" +
"font-family: Arial;" +
"font-size: 8.5pt;" +
"}" +
"h1 {" +
"font-weight: normal;" +
"font-size: 12pt;" +
"}";

string html1 =
"<html>" +
"<head>" +
"<style>" + style + "</style>" +
"</head>" +
"<body>" +
"<h1>Strange blank spaces between characters</h1>" + // There will be a space between the l and a of blank
"ddd" +
"</body>" +
"</html>";

string html2 =
"<html>" +
"<head>" +
"<style>" + style + "</style>" +
"</head>" +
"<body>" +
"Second document" +
"</body>" +
"</html>";

var doc1 = new PdfDocument();
HtmlToPdf.ConvertHtml(html1, doc1);

var doc2 = new PdfDocument();
HtmlToPdf.ConvertHtml(html2, doc2);

var merged = PdfDocument.Merge(doc1, doc2);
merged.Save("EoPdfMergeIssue.pdf");
eo_support
Posted: Tuesday, August 1, 2017 3:18:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,668
Thanks for posting in the forum. We are aware of this issue and this will be fixed in our next build.
eo_support
Posted: Friday, August 11, 2017 6:39:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,668
Hi,

This is just to let you know that we have posted a new build that should resolve this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

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.