PeachDrawing.PDF.PdfPageSource
PdfPageSource.Paint Method
| Overloads | |
|---|---|
| Paint(int, Canvas) | Paints a page onto canvas, whose origin is the top-left of the area the page is to occupy and whose units are points. The page is clipped to its own box, so content never spills beyond it. |
| Paint(int, Canvas, PdfAnnotationPaint, PdfTagSession) | Paints a page like Paint(int, Canvas) and then the appearance of its annotations, as a viewer shows them (a highlight, a stamp, a note, a drawing, a filled-in field). |
PdfPageSource.Paint(int, Canvas) Method
Paints a page onto canvas, whose origin is the top-left of the area the page is to occupy and whose units are points. The page is clipped to its own box, so content never spills beyond it.
public System.Collections.Generic.IReadOnlyCollection<string> Paint(int pageIndex, PeachDrawing.Core.Canvas canvas);
Parameters
pageIndex System.Int32
the zero-based page number
canvas Canvas
the canvas to draw on
Returns
System.Collections.Generic.IReadOnlyCollection<System.String>
the features of the page that could not be drawn, each named once; empty when all of it was
PdfPageSource.Paint(int, Canvas, PdfAnnotationPaint, PdfTagSession) Method
Paints a page like Paint(int, Canvas) and then the appearance of its annotations, as a viewer shows them (a highlight, a stamp, a note, a drawing, a filled-in field).
public System.Collections.Generic.IReadOnlyCollection<string> Paint(int pageIndex, PeachDrawing.Core.Canvas canvas, PeachDrawing.PDF.PdfAnnotationPaint annotations, PeachDrawing.PDF.PdfTagSession? tags=null);
Parameters
pageIndex System.Int32
the zero-based page number
canvas Canvas
the canvas to draw on
annotations PdfAnnotationPaint
which annotations to draw
tags PdfTagSession
the tagging of a document being tagged (from CreateTagSession(PdfTagRecorder)), or null. With one, the logical structure the file gave the page’s content (headings, paragraphs, lists, tables, figures with their alternative text, languages and attributes) is recorded under the recorder’s current parent in the order of the file’s structure tree, and everything else that is drawn is marked as an artifact, so the page adds no untagged content to a tagged document. The recorder must have had BeginPage(PdfComposerPage) called for the page being drawn on.
Returns
System.Collections.Generic.IReadOnlyCollection<System.String>
the features of the page that could not be drawn, each named once; empty when all of it was