When I convert a Word document to a PDF, I am getting some words overlapping each other. I’ve attached the one such document that results in this error. The overlapping words occurs on the first page under section 6b (the words and & the are printed on top of one another).
The code I am using to do the conversion is as follows:
Aspose.Words.Document sourceDoc = new Aspose.Words.Document(@"C:\Aspose Testing\testing.doc");
MemoryStream ms = new MemoryStream();
XmlDocument xml = new XmlDocument();
sourceDoc.Save(ms, Aspose.Words.SaveFormat.AsposePdf);
ms.Position = 0;
xml.Load(ms);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(xml, null);
ms.Close();
System.IO.MemoryStream pdfMS = new MemoryStream();
pdf.Save(@"C:\Aspose Testing\testing.pdf");
Sorry for such delay, I seem have missed your post. The overlapping issue is most likely has to do with Aspose.Pdf, I will consult the Aspose.Pdf team and let you know immediately.
When I convert a Word document to a PDF, I am getting some words overlapping each other. I’ve attached the one such document that results in this error. The overlapping words occurs on the first page under section 6b (the words and & the are printed on top of one another).
The code I am using to do the conversion is as follows:
Aspose.Words.Document sourceDoc = new Aspose.Words.Document(@“C:\Aspose Testing\testing.doc”);
I have used the above code to do Word forms to PDF conversion, and the PDF looks good EXCEPT that the form check boxes (which were checked programmatically) come across in the PDF looking like vertical lines with a horizontal loop to the right, or otherwise described as a lower case b with the vertical line extended below the loop. Is there a reason for that and how can it be corrected? Thank you.
Thanks for reporting this problem to us. Please attach the sample document to your post. I will check what the issue is and how it can be fixed or avoided.
I see. Apparently there is a rendering difference between Foxit PDF Reader and Adobe Reader in this case. Foxit does show other documents with checkboxes ok, but obviously Adobe is the reference renderer and since it works ok there I’ll accept that Foxit is doing something wrong. Thanks for the help.
Oh, Foxit PDF Reader. I have heard of it but have not tried it yet. I will inform Aspose.Pdf team of this issue. Maybe they will be able to fix it somehow.