We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Docx to PDF the PDF result doesn't match Docx

We are attempting to convert a Docx file to a PDF.

We open a Docx document and save to PDF (via saving to file as well as to response) and the resulting PDF doesn’t match the input Docx document. The subject matter is the same however the content doesn’t fit into the width of the PDF document.

I have attached a sample of our input document and here is an example of our code:

Saving to file:

Dim pdf As New Document(“C:\Temp\InputForPDF.docx”)
pdf.Save(“C:\Temp\OutputPDF.pdf”, SaveFormat.Pdf)

Saving to Response

Dim pdf As New Document(“C:\Temp\InputForPDF.docx”)
Dim options As New Saving.PdfSaveOptions()
options.SaveFormat = SaveFormat.Pdf
pdf.Save(Response, “OutputPDF.pdf”, ContentDisposition.Attachment, options)

What can be done to get the resulting PDF to fit into the width of a normal PDF.


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I managed to reproduce this problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.

As a workaround you can open/save your document using MS Word and then convert to PDF using Aspose.Words.

Best regards,