convert HTML/DOC,XLS.. to PDF - Java - Programmation
MarshPosté 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("ctest.html" )); FileOutputStream fos = new FileOutputStream(new File("ctest.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.
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("ctest.html" ));
FileOutputStream fos = new FileOutputStream(new File("ctest.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.