Example usage for com.lowagie.tools Executable openDocument

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

Introduction

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

Prototype

public static final Process openDocument(File file) throws IOException 

Source Link

Document

Opens a PDF document.

Usage

From source file:radpharmadose.RadPharmaDoseMainWindow.java

public void PrintPDF(String fileName) {
    try {/*from   w w  w .ja  va  2 s . c om*/
        Executable ex = new Executable();
        ex.openDocument(fileName);
        ex.printDocument(fileName);
    } catch (IOException e) {
        e.printStackTrace();
    }
}