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

Free Support Forum - aspose.com

Something has changed in the save to PDF


I am using Aspose.Cells ( and Aspose.PDF ( to open a workbook, extract one of the worksheet and save it as a PDF file.

It was working correctly until I changed to the latest version.

The problem I have now is that the height of the lines in the PDF version are about twice as they should be. Any ideas on the cause of this? Do you have any fix that were released since then that I could test?

Code looks like this:

'Save to a stream

Dim ms As IO.MemoryStream = New IO.MemoryStream

objWorkbook.Save(ms, FileFormatType.AsposePdf)

Dim pdf1 As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf()

pdf1.IsTruetypeFontMapCached = True

pdf1.TruetypeFontMapPath = pOutputPath

pdf1.IsImagesInXmlDeleteNeeded = True

'Bind the XML file (containing spreadsheet data) with the Pdf object

pdf1.BindXML(ms, Nothing)

'Create the PDF document by calling its Save method

pdf1.Save(IO.Path.Combine(pOutputPath, pOutputFileName))

pdf1 = Nothing


ms = Nothing


Well, I am not sure if the issue is related to Aspose.Cells for .NET or Aspose.Pdf for .NET.

Anyways, could you post your template files(.xls, pdf, .xml) here, we will check your issue soon.

Thank you.


Please try this fix.

We have support to export line width of the shape to pdf.


Thanks for the fast reply. The new fix works like a charm.