Example usage for org.apache.pdfbox.contentstream.operator.state SetFlatness SetFlatness

List of usage examples for org.apache.pdfbox.contentstream.operator.state SetFlatness SetFlatness

Introduction

In this page you can find the example usage for org.apache.pdfbox.contentstream.operator.state SetFlatness SetFlatness.

Prototype

SetFlatness

Source Link

Usage

From source file:org.fit.pdfdom.PDFBoxTree.java

License:Open Source License

public PDFBoxTree() throws IOException {
    super();/*from   ww w. jav  a 2 s  .  c om*/
    super.setSortByPosition(true);
    super.setSuppressDuplicateOverlappingText(true);

    //add operators for tracking the graphic state
    addOperator(new SetStrokingColorSpace());
    addOperator(new SetNonStrokingColorSpace());
    addOperator(new SetLineDashPattern());
    addOperator(new SetStrokingDeviceGrayColor());
    addOperator(new SetNonStrokingDeviceGrayColor());
    addOperator(new SetFlatness());
    addOperator(new SetLineJoinStyle());
    addOperator(new SetLineCapStyle());
    addOperator(new SetStrokingDeviceCMYKColor());
    addOperator(new SetNonStrokingDeviceCMYKColor());
    addOperator(new SetLineMiterLimit());
    addOperator(new SetStrokingDeviceRGBColor());
    addOperator(new SetNonStrokingDeviceRGBColor());
    addOperator(new SetRenderingIntent());
    addOperator(new SetStrokingColor());
    addOperator(new SetNonStrokingColor());
    addOperator(new SetStrokingColorN());
    addOperator(new SetNonStrokingColorN());
    addOperator(new SetFontAndSize());
    addOperator(new SetLineWidth());

    init();
}