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

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

Introduction

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

Prototype

public void writePDF(OutputStream output) throws IOException 

Source Link

Document

This will output this string as a PDF object.

Usage

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

License:Apache License

/**
 * visitFromFloat method comment.//from  ww  w . j  av a2  s .  c  om
 *
 * @param obj The object that is being visited.
 *
 * @throws COSVisitorException If there is an exception while visiting this
 * object.
 *
 * @return null
 */
public Object visitFromFloat(COSFloat obj) throws COSVisitorException {

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