Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Convert DOC,XLS to PDF with Java

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Convert DOC,XLS to PDF with Java

    My team came across a new solution which allow conversion of ms office formats, especially doc and xls to pdf. Solution is provided by this guy: DOC to PDF with Java

    How it works:

    import officetools.OfficeFile; // from officetools.jar
     
    FileInputStream fis = new FileInputStream(new File("test.doc")); 
    FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
     
    OfficeFile f = new OfficeFile(fis,"localhost","8100", false);
     
    f.convert(fos,"pdf");


    Are you using a similar solution in Java or PHP?

    I am currently trying to find more solutions and to compare them for quality and speed.

    Thanks.


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Convert DOC and XLS to PDF

    Hello comm, welcome to the Java Programming Forums

    Thank you very much for this. Its very interesting.

    +Rep.

    The only experience I have writing/converting to PDF is with iText:

    iText, a Free Java-PDF Library: Home Page
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Convert DOC,XLS to PDF with Java

    You can convert your Excel document to Pdf in java using Aspose.Cells for Java here is the link of the API: **** Link removed ****

    It is one of many important products from Aspose which uses cloud technology that allow you to create(if you dont have MS office installed), read and convert your MS office document to any other format online.
    Last edited by Norm; July 2nd, 2013 at 07:28 AM. Reason: Removed link

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Convert DOC,XLS to PDF with Java

    Man, this thread is a rotting zombie from 2009

Similar Threads

  1. Typecasting of double variable to integer
    By JavaPF in forum Java Programming Tutorials
    Replies: 2
    Last Post: December 5th, 2010, 03:41 AM
  2. Conversion of string into integer in Java
    By JavaPF in forum Java Programming Tutorials
    Replies: 17
    Last Post: January 23rd, 2010, 09:33 AM
  3. convert arraylist to a hash map
    By nadman123 in forum Collections and Generics
    Replies: 1
    Last Post: July 29th, 2009, 04:24 AM