[]
Draws the page on a GcGraphics.
public void Draw(GcGraphics graphics, RectangleF bounds, bool drawAnnotations = true, bool drawFormFields = true, RenderingCache renderingCache = null, bool print = false, bool ignoreErrors = true)
Public Sub Draw(graphics As GcGraphics, bounds As RectangleF, Optional drawAnnotations As Boolean = True, Optional drawFormFields As Boolean = True, Optional renderingCache As RenderingCache = Nothing, Optional print As Boolean = False, Optional ignoreErrors As Boolean = True)
Type | Name | Description |
---|---|---|
GcGraphics | graphics | The GcGraphics on which to draw the page. |
RectangleF | bounds | The draw bounds. |
bool | drawAnnotations | Indicates whether to draw the annotations. |
bool | drawFormFields | Indicates whether to draw the form fields. |
RenderingCache | renderingCache | The RenderingCache object used to cache objects created during rendering. |
bool | Indicates whether the image is generated for printing. |
|
bool | ignoreErrors | Indicates whether to ignore errors in PDF content stream during rendering. |
Draws the page on a GcGraphics.
public void Draw(GcGraphics graphics, RectangleF bounds, ViewState viewState, bool drawAnnotations = true, bool drawFormFields = true, RenderingCache renderingCache = null, bool ignoreErrors = true, SaveAsImageOptions.DrawAnnotationFilterCallback drawAnnotationFilter = null)
Public Sub Draw(graphics As GcGraphics, bounds As RectangleF, viewState As ViewState, Optional drawAnnotations As Boolean = True, Optional drawFormFields As Boolean = True, Optional renderingCache As RenderingCache = Nothing, Optional ignoreErrors As Boolean = True, Optional drawAnnotationFilter As SaveAsImageOptions.DrawAnnotationFilterCallback = Nothing)
Type | Name | Description |
---|---|---|
GcGraphics | graphics | The GcGraphics on which to draw the page. |
RectangleF | bounds | The draw bounds. |
ViewState | viewState | The ViewState used to determine what document content would be considered. |
bool | drawAnnotations | Indicates whether to draw the annotations. |
bool | drawFormFields | Indicates whether to draw the form fields. |
RenderingCache | renderingCache | The RenderingCache object used to cache objects created during rendering. |
bool | ignoreErrors | Indicates whether to ignore errors in PDF content stream during rendering. |
SaveAsImageOptions.DrawAnnotationFilterCallback | drawAnnotationFilter | Used to check should be annotation rendered or not. |