Example usage for org.apache.pdfbox.cos COSBoolean writePDF

List of usage examples for org.apache.pdfbox.cos COSBoolean writePDF

Introduction

In this page you can find the example usage for org.apache.pdfbox.cos COSBoolean writePDF.

Prototype

public void writePDF(OutputStream output) throws IOException 

Source Link

Document

This will write this object out to a PDF stream.

Usage

From source file:com.aaasec.sigserv.csspsupport.pdfbox.modifications.CsCOSWriter.java

License:Apache License

/**
 * visitFromBoolean method comment./*from   w w  w .j  a va2 s .c o  m*/
 *
 * @param obj The object that is being visited.
 *
 * @throws COSVisitorException If there is an exception while visiting this
 * object.
 *
 * @return null
 */
public Object visitFromBoolean(COSBoolean obj) throws COSVisitorException {

    try {
        obj.writePDF(getStandardOutput());
        return null;
    } catch (IOException e) {
        throw new COSVisitorException(e);
    }
}