Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Member
Posts: 2
Registered: ‎03-06-2013
My Device: Bold
My Carrier: Peruz

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);

Are you using a similar solution ?

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

Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Convert DOC,XLS to PDF with Java

bb java is not J2SE, but based on J2ME. This tool will not work on the platform.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Member
Posts: 1
Registered: ‎07-03-2013
My Device: BlackBerry 3
My Carrier: Al Hafeez

Re: Convert DOC,XLS to PDF with Java

If you want to convert your Doc, Docx or xls document (also large documents) to pdf in java then i would recommend you to use these Converters:


Aspose.Cells for Java - for excel documents


Aspose.Words for Java - for Word documents