Hi,
We are seeing multiple formatting issues when converting Word to pdf using ASPOSE Word and Aspose pdf. We are using Visual studio 2008, .Net fwk version 3.5, ASOPOSE.Word 11.3.0 and ASPOSE.PDF 6.9.0 versions. Please let me know if there is any solution available for these issues..
The issue detail and the sample document and converted pdf is attached for your reference..
1) Line numbering are getting changed in the converted pdf - page #4
Source Doc:Commitment Doc-Numbering issue.docx
PDF: Commitment Doc-Numbering Issue.pdf
2) Signature block formatting changed in converted pdf:- page#1
Source Doc: Power Attorney - Signature Issue.docx
PDF: Power Attorney - Signature Issue.pdf
3) Line Formatting/length is changed and checboxes became radio button: Page# 1,
Source: 1099 Cert-Formatting Issue.docx
PDF: 1099 Cert-Formatting Issue.pdf
The sampe code used to convert to PDF is given below..
MemoryStream mStream = new MemoryStream();
Aspose.Words.Document doc = new Aspose.Words.Document(inputFileName);
doc.Save(mStream, Aspose.Words.SaveFormat.Pdf);
//Seek to the beginning so it can be read by XmlDocument.
mStream.Seek(0, SeekOrigin.Begin);
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(mStream);
PdfPageEditor p = new PdfPageEditor();
p.BindPdf(mStream);
//p.PageSize = Aspose.Pdf.Kit.PageSize.LEGAL;
p.Save(mStream);
//Now produce the PDF file.
//pdfDoc.Save(@"D:\Projects\Doc for DD Size\Converted Docs\Test.pdf");
mStream.WriteTo(new FileStream(@"C:\Projects\TestApp\ConvertedPDF\Test.pdf",
FileMode.Create, FileAccess.ReadWrite, FileShare.None));