|
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");
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Thanks for posting in the forum. We are aware of this issue and this will be fixed in our next build.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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!
|
|