iText 8.0.2 API
iText.Kernel.Pdf.Canvas.Parser.PdfDocumentContentParser Class Reference

A utility class that makes it cleaner to process content from pages of a iText.Kernel.Pdf.PdfDocument through a specified RenderListener. More...

Public Member Functions

  PdfDocumentContentParser (PdfDocument pdfDocument)
 
virtual E  ProcessContent< E > (int pageNumber, E renderListener, IDictionary< String, IContentOperator > additionalContentOperators)
  Processes content from the specified page number using the specified listener. More...
 
virtual E  ProcessContent< E > (int pageNumber, E renderListener)
  Processes content from the specified page number using the specified listener More...
 

Detailed Description

A utility class that makes it cleaner to process content from pages of a iText.Kernel.Pdf.PdfDocument through a specified RenderListener.

Member Function Documentation

◆ ProcessContent< E >() [1/2]

virtual E iText.Kernel.Pdf.Canvas.Parser.PdfDocumentContentParser.ProcessContent< E > ( int  pageNumber,
renderListener 
)
inlinevirtual

Processes content from the specified page number using the specified listener

Template Parameters
E the type of the renderListener - this makes it easy to chain calls
Parameters
pageNumber the page number to process
renderListener the listener that will receive render callbacks
Returns
the provided renderListener
Type Constraints
E  : IEventListener  

◆ ProcessContent< E >() [2/2]

virtual E iText.Kernel.Pdf.Canvas.Parser.PdfDocumentContentParser.ProcessContent< E > ( int  pageNumber,
renderListener,
IDictionary< String, IContentOperator additionalContentOperators 
)
inlinevirtual

Processes content from the specified page number using the specified listener.

Processes content from the specified page number using the specified listener. Also allows registration of custom IContentOperators that can influence how (and whether or not) the PDF instructions will be parsed.

Template Parameters
E the type of the renderListener - this makes it easy to chain calls
Parameters
pageNumber the page number to process
renderListener the listener that will receive render callbacks
additionalContentOperators an optional map of custom ContentOperators for rendering instructions
Returns
the provided renderListener
Type Constraints
E  : IEventListener