Example usage for com.lowagie.tools Executable printDocument

List of usage examples for com.lowagie.tools Executable printDocument

Introduction

In this page you can find the example usage for com.lowagie.tools Executable printDocument.

Prototype

public static final Process printDocument(File file) throws IOException 

Source Link

Document

Prints a PDF document.

Usage

From source file:radpharmadose.RadPharmaDoseMainWindow.java

public void PrintPDF(String fileName) {
    try {// w w  w.  j  a  v  a2  s.c o  m
        Executable ex = new Executable();
        ex.openDocument(fileName);
        ex.printDocument(fileName);
    } catch (IOException e) {
        e.printStackTrace();
    }
}