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)
Response.End()
What can be done to get the resulting PDF to fit into the width of a normal PDF.