Class DrawContext
java.lang.Object
com.itextpdf.layout.renderer.DrawContext
This class holds instances which required for drawing on pdf document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDrawContext(PdfDocument document, PdfCanvas canvas) Create drawing context by setting document and pdf canvas on which drawing will be performed.DrawContext(PdfDocument document, PdfCanvas canvas, boolean enableTagging) Create drawing context by setting document and pdf canvas on which drawing will be performed. -
Method Summary
Modifier and TypeMethodDescriptionGet pdf canvas.Get pdf document.booleanGet document tagging property.voidsetTaggingEnabled(boolean taggingEnabled) Set document tagging property.
-
Field Details
-
document
-
canvas
-
taggingEnabled
private boolean taggingEnabled
-
-
Constructor Details
-
DrawContext
Create drawing context by setting document and pdf canvas on which drawing will be performed.- Parameters:
document- pdf documentcanvas- canvas to draw on
-
DrawContext
Create drawing context by setting document and pdf canvas on which drawing will be performed.- Parameters:
document- pdf documentcanvas- canvas to draw onenableTagging- if true document drawing operations will be appropriately tagged
-
-
Method Details
-
getDocument
-
getCanvas
-
isTaggingEnabled
public boolean isTaggingEnabled()Get document tagging property.- Returns:
- true if tagging is enabled, false otherwise
-
setTaggingEnabled
public void setTaggingEnabled(boolean taggingEnabled) Set document tagging property.- Parameters:
taggingEnabled- true if to enable tagging, false to disable it
-