iText 8.0.5 API
iText.Layout.Renderer.DrawContext Class Reference

This class holds instances which required for drawing on pdf document. More...

Public Member Functions

  DrawContext (PdfDocument document, PdfCanvas canvas)
  Create drawing context by setting document and pdf canvas on which drawing will be performed. More...
 
  DrawContext (PdfDocument document, PdfCanvas canvas, bool enableTagging)
  Create drawing context by setting document and pdf canvas on which drawing will be performed. More...
 
virtual PdfDocument  GetDocument ()
  Get pdf document. More...
 
virtual PdfCanvas  GetCanvas ()
  Get pdf canvas. More...
 
virtual bool  IsTaggingEnabled ()
  Get document tagging property. More...
 
virtual void  SetTaggingEnabled (bool taggingEnabled)
  Set document tagging property. More...
 

Detailed Description

This class holds instances which required for drawing on pdf document.

Constructor & Destructor Documentation

◆ DrawContext() [1/2]

iText.Layout.Renderer.DrawContext.DrawContext ( PdfDocument  document,
PdfCanvas  canvas 
)
inline

Create drawing context by setting document and pdf canvas on which drawing will be performed.

Parameters
document pdf document
canvas canvas to draw on

◆ DrawContext() [2/2]

iText.Layout.Renderer.DrawContext.DrawContext ( PdfDocument  document,
PdfCanvas  canvas,
bool  enableTagging 
)
inline

Create drawing context by setting document and pdf canvas on which drawing will be performed.

Parameters
document pdf document
canvas canvas to draw on
enableTagging if true document drawing operations will be appropriately tagged

Member Function Documentation

◆ GetCanvas()

virtual PdfCanvas iText.Layout.Renderer.DrawContext.GetCanvas ( )
inlinevirtual

Get pdf canvas.

Returns

PdfCanvas instance

◆ GetDocument()

virtual PdfDocument iText.Layout.Renderer.DrawContext.GetDocument ( )
inlinevirtual

Get pdf document.

Returns

PdfDocument instance

◆ IsTaggingEnabled()

virtual bool iText.Layout.Renderer.DrawContext.IsTaggingEnabled ( )
inlinevirtual

Get document tagging property.

Returns
true if tagging is enabled, false otherwise

◆ SetTaggingEnabled()

virtual void iText.Layout.Renderer.DrawContext.SetTaggingEnabled ( bool  taggingEnabled )
inlinevirtual

Set document tagging property.

Parameters
taggingEnabled true if to enable tagging, false to disable it