Hi,
With latest aspose version 17.8(Word and pdf), I have tried converting a word document(.Docx) to PDF format using ASPOSE.PDF and used temporary license.
using following code in converting documents.
string File = "D:\\Test-Word.Docx";
Aspose.Words.Document doc = new Aspose.Words.Document(File);
System.IO.MemoryStream pdfOoutStream = new System.IO.MemoryStream();
doc.Save(pdfOoutStream, Aspose.Words.SaveFormat.Pdf);
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(pdfOoutStream);
byte[] docBytes = null;
pdfOoutStream = new System.IO.MemoryStream();
pdfDocument.Save(pdfOoutStream);
docBytes = pdfOoutStream.ToArray();
FileStream output = new FileStream("D:\\Test-PDF.pdf", FileMode.Create,
FileAccess.Write);
// Write byte array contents in the output file stream<a class="attachment" href="/uploads/discourse_instance3/6141">Pdf-Doc Issue.zip</a> (132.2 KB)
output.Write(docBytes, 0, docBytes.Length);
// Close output file
output.Close();
I have compared the original word document and converted PDF document, we could see some alignment issue between the generated word document and pdf.
We are expecting both word and pdf should be equivelant but it is not.
I have attached the sample project with documents for your future reference.
Please provide us a solution asap.
Note: Please include the reference dll Aspose.Words.17.8.0 and Aspose.Pdf.17.2.0 for run the application.
Thanks in advance.