Something has changed in the save to PDF

Hi

I am using Aspose.Cells (4.5.1.1) and Aspose.PDF (3.8.0.3) 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.Dispose()

ms = Nothing

Hi,

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.

Hi,

Please try this fix.

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

Hi

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