Aspose.Words.Document.Save as pdf gives XML

Last post 01-29-2008, 9:39 AM by alexey.noskov. 1 replies.
Sort Posts: Previous Next
  •  01-29-2008, 9:12 AM 110923

    Aspose.Words.Document.Save as pdf gives XML

    Hi,

    I am trying to save a Document as a PDF (I have Aspose.Pdf).  When I call the Save method of the Aspose.Words.Documet object, the result is XML, not a PDF, i.e.,

    myDoc.Save(aBytes, Aspose.Words.SaveFormat.AsposePdf);

    results in:

    <?xml version="1.0" encoding="UTF-8"?>
    <Pdf xml:space="preserve" TabStopPosition="36" IsCoreFontUsed="false" IsPageNumberForDocument="true" xmlns="Aspose.Pdf">
    .......

    What's going on?  How can I get it to generate an actual PDF?

    Thanks,

    Craig

    Filed under: document.save;pdf;xml
     
  •  01-29-2008, 9:39 AM 110930 in reply to 110923

    Re: Aspose.Words.Document.Save as pdf gives XML

    Hi

     

    Thanks for your inquiry. Aspospose.Pdf is Aspose.Pdf.Xml format that can be read by Aspose.Pdf to produce a PDF file. To learn more about converting to PDF see the following link.
    http://www.aspose.com/Products/Aspose.Words/Api/Converting_to_PDF.html

     

    I hope this could help.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML