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

Free Support Forum - aspose.com

Convert Document to XML to PDF

1.
using Aspose.Words in v8.2.0.0
Convert Document to XML to PDF is OK (test.pdf)
but using Aspose.Words not OK in v9.3.0.0 (myXml.pdf)
Why??

Document doc = new Document(strFolder + strFileName);
//doc.Save(strTempfolder + "test.xml", SaveFormat.AsposePdf); //in v8.2.0.0
doc.Save(strTempfolder + "test.xml", SaveFormat.WordML); //in v9.3.0.0
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(strTempfolder + "test.xml", null);
pdf.Save(strTempfolder + "myXml.pdf");

2.
Convert Document to XML to PDF is OK (test.pdf)
but convert document to PDF have font issue (font.pdf)

Document doc = new Document(strFolder + strFileName);
doc.Save(strTempfolder + "test.pdf");

Hello

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

Thanks for your inquiry. I cannot reproduce the problem on my side using the latest version of Aspose.Words. Also you should note, old legacy method of PDF conversion was excluded from the latest version of Aspose.Words 9.3.0.

Please try using the following code:

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

doc.Save("out.pdf");

Please make sure that the DFKai-SB font is installed on your PC. If so please attach this font here for testing. I will investigate the problem and provide you more information.

I have sent the document produced on my side to your e-mail.

Best regards,

Thanks for your reply.


1.
Because I have other needs, it must first convert to XML, and then convert to PDF.
XML format is converted to the old method (test.xml)

2.
I use the font from you send, is OK.
but use my OS default font, not OK.
Why??
I send my OS default font. (kaiu.ttf)
My OS is Windows Server 2003 SP2 of Chinese Traditional.

Hello

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

Thank you for additional information. During converting to PDF Aspose.Words should read all fonts used in the original document to create font subset, which will be stored in the output PDF file. As I can see you are using DFKai-SB font in your document, so this font should be installed on your PC.

Please let me know in case of any issue I will be glad to help you.

Best regards,

Thanks for your reply.

Are there other ways to Document convert to XML, then convert to PDF?? (use latest version of Aspose.Words 9.3.0.0)

Hello

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

Thanks for your request. It was possible just in case of using legacy method of PDF conversion. But as I mentioned earlier this method was excluded. So there is no way to convert a document to intermediate XML.

Best regards,