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

Version Path
acts_as_flying_saucer-1.0.4 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-1.0.3 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-1.0.2 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-1.0.1 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-1.0.0 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.9 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.8 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.7 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.6 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.5 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.4 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.3 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.2 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java
acts_as_flying_saucer-0.0.1 lib/acts_as_flying_saucer/java/src/Xhtml2Pdf.java