Sha256: f72a5e6068ff8ed02cc38b95cfd4b475343ae531a8a208ce27b000275be08219
Contents?: true
Size: 530 Bytes
Versions: 14
Compression:
Stored size: 530 Bytes
Contents
import java.io.*; import org.xhtmlrenderer.pdf.ITextRenderer; public class Xhtml2Pdf { public static void main(String[] args) throws Exception { String input = args[0]; String url = new File(input).toURI().toURL().toString(); String output = args[1]; OutputStream os = new FileOutputStream(output); ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); renderer.layout(); renderer.createPDF(os); os.close(); } }
Version data entries
14 entries across 14 versions & 1 rubygems