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

Free Support Forum - aspose.com

Error shipping data from Aspose.Words to Aspose.PDF

Hello,

I am trying to open a DOCX file with Aspose.Words and ship it to Aspose.PDF without writing to disk. I am then saving the PDF to disk from Aspose.PDF. The resulting PDF file prints with missing characters when I use Aspose.PDF.Kit’s PDF Viewer.

Dim oDocxWords As New Aspose.Words.Document(sDocXFile)
Dim oPDF As New Aspose.Pdf.Pdf
Dim strmPDF As IO.Stream = New IO.MemoryStream

oDocxWords.Save(strmPDF, Aspose.Words.SaveFormat.AsposePdf)
oPDF.BindXML(strmPDF, Nothing)



oPDF.Save(sPDFFile)



Dim oViewer As New Aspose.Pdf.Kit.PdfViewer
Dim oPrintersettings As New System.Drawing.Printing.PrinterSettings
Dim oPageSettings As System.Drawing.Printing.PageSettings = oPrintersettings.DefaultPageSettings

oViewer.AutoResize = True
oViewer.AutoRotate = True
oViewer.OpenPdfFile(sPDFFile)
oViewer.PrintDocumentWithSettings(oPageSettings, oPrintersettings)
oViewer.ClosePdfFile()


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

Thank you for your inquiry.

When I’m trying to open this document with Microsoft Word 2007 it crashes. Evidently that’s something wrong with the document itself. Can you open it with Microsoft Word on your computer?

Regards,

It opens fine on my machine with Word 2007.

Hi

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

Thanks for your inquiry. I managed to reproduce the problem on my side. Your request is linked to the appropriate issue and you will be notified as soon as the problem is resolved.

Best regards,

By any chance do you know the Bug Ticket number for this issue or have an estimated release date for this issue?

Sincerely,
Andrew Varnon

Hi

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

Thanks for your inquiry. The issue number is 10358. We will let you know once the problem is resolved.

Best regards.

My management would like to know the target date/release for this issue. Can you provide this?

Sincerely,

Hi

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

Thanks for your inquiry. Currently I cannot provide you any reliable estimate regarding this issue. You will be notified as soon as it is fixed.

Best regards,

Is there any word on when this bug will be fixed?

Sincerely,

Hi

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

Thanks for your request. It seems the problem was fixed. Could you please try using the latest version of Aspose.Words (9.0.0) and direct method of PDF conversion?

Please try using the following code to convert your document to PDF:

Document doc = new Document("Test.docx");

doc.SaveToPdf("out.pdf");

Best regards,

The new version of Aspose.Words (9.0.0) seems to have fixed the missing characters when saving as AsposePdf and then using the BindXML method on Aspose.Pdf.Pdf. I did notice that the horizontal line under the document header appears to be shifted upwards compared to the original DOCX file.

We have been using the SaveToPDF() method as a workaround but there are times when we need to export the data to Aspose.Pdf.Pdf instead of directly to a PDF file.

Hi

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

Thank you for additional information. Legacy method of PDF conversion (Aspose.Words+Aspose.Pdf) is old method, you can use it, but you should note that we will exclude legacy method in one of our future versions. Also no new issues will be fixed in the legacy method.

Best regards,

The issues you have found earlier (filed as 10358) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.