Convert a simple word file to PDF

Last post 10-21-2008, 8:32 AM by alexey.noskov. 5 replies.
Sort Posts: Previous Next
  •  10-21-2008, 5:16 AM 148741

    Convert a simple word file to PDF

    Hi,

    I  am using the Demo version of Aspose.Words and Aspose.pdf.

    I want to convert a word file to PDF file without any changes in it.

    Can anybody please send me the code for same.

     

     
  •  10-21-2008, 5:40 AM 148744 in reply to 148741

    Re: Convert a simple word file to PDF

    Hi

     

    Thanks for your inquiry. Please find code example here:

    http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/saving-documents.html   (See Converting to PDF).

     

    We cannot guarantee 100% exact conversion from DOC to PDF and don’t promise this. You are free to evaluate this feature yourself. Please let me know in case of any issue.

     

    Nest regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  10-21-2008, 6:52 AM 148755 in reply to 148744

    Re: Convert a simple word file to PDF

    Attachment: Present (inaccessible)

    Hi,

     

    Thanks for replying.

    That really helped. I got my file converted to PDF. But still I am having a problem. Some portion of the file gets distorted, I mean it is not being converted as same as the .doc file. I am attaching both the file for your reference.

    It would be great if you can resolve this problem.

     
  •  10-21-2008, 7:49 AM 148762 in reply to 148755

    Re: Convert a simple word file to PDF

    Hi

     

    Thank you for additional information. Please try using inline shapes instead floating. Also I think that you should use “real” document for testing instead this one.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  10-21-2008, 8:16 AM 148767 in reply to 148762

    Re: Convert a simple word file to PDF

    Thanks,

    Are you talking about the shapes in the word file or I need to do something with the code for using floating or inline shapes.

    I am using this file coz I need to get a result upto this much accuracy.

     
  •  10-21-2008, 8:32 AM 148772 in reply to 148767

    Re: Convert a simple word file to PDF

    Attachment: Present (inaccessible)

    Hi

     

    Thanks for your inquiry. I mean exactly what I wrote :). There are problems with floating shapes (textbox in your case) during converting DOC to PDF. So as a workaround you should use inline shapes. I refactored your document and now output looks much better. Please see the attached documents.

     

    Best regards.


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