convert HTML/DOC,XLS.. to PDF

convert HTML/DOC,XLS.. to PDF - Java - Programmation

Marsh Posté le 23-01-2009 à 10:39:02    

Mon Francais n'est pas tree bonne, mais:
 
I've found a good resource to convert HTML to PDF:  
 
import java.io.*;
import officetools.OfficeFile; // this is my tools package
...
FileInputStream fis = new FileInputStream(new File("c:/test.html" ));
FileOutputStream fos = new FileOutputStream(new File("c:/test.pdf" ));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf" );
 
Besides HTML to PDF, there are also possible other convertions:
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
From:  dancrintea.ro/html-to-pdf/
 
Any other resource on file conveters would help, let me know what you are using.

Reply

Marsh Posté le 23-01-2009 à 10:39:02   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed