Example usage for org.apache.pdfbox.contentstream.operator OperatorProcessor setContext

List of usage examples for org.apache.pdfbox.contentstream.operator OperatorProcessor setContext

Introduction

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

Prototype

public void setContext(PDFStreamEngine context) 

Source Link

Document

Sets the processing context.

Usage

From source file:at.knowcenter.wag.egov.egiz.pdfbox2.pdf.PDFPage.java

License:EUPL

/**
 * Constructor.//  w  ww.j a va 2s. c  o  m
 * 
 * @param effectivePageHeight
 *            The height of the page to be evaluated. PDF elements outside
 *            this height will not be considered.
 * 
 * @throws java.io.IOException
 */
public PDFPage(float effectivePageHeight, boolean legacy32, boolean legacy40) throws IOException {
    super();

    this.legacy40 = legacy40;

    this.effectivePageHeight = effectivePageHeight;

    OperatorProcessor newInvoke = new MyInvoke(this);
    newInvoke.setContext(this);
    this.registerOperatorProcessor("Do", newInvoke);

    if (!legacy32) {
        registerCustomPathOperators();
    }
}