java.lang.Object | |
↳ | com.pspdfkit.document.processor.PageCanvas |
Represents a canvas drawing to be merged onto another PDF page.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PageCanvas(Size pageSize, NewPage.OnDrawCanvasCallback callback)
PDF page created from a
Canvas holding all the draw calls. | |||||||||||
PageCanvas(Size pageSize, NewPage.OnDrawCanvasCallback callback, Matrix matrix)
PDF page created from a
Canvas holding all the draw calls. | |||||||||||
PageCanvas(Size pageSize, NewPage.OnDrawCanvasCallback callback, PagePosition position)
PDF page created from a
Canvas holding all the draw calls. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Matrix |
getMatrix()
Returns a custom transformation matrix for the content.
| ||||||||||
PagePosition |
getPosition()
Returns the alignment of drawn content on the target page.
| ||||||||||
PageZOrder |
getZOrder()
Returns the z-order of the content to be added to a page.
| ||||||||||
void |
setZOrder(PageZOrder zOrder)
Sets z-order of the content, foreground or background.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
PDF page created from a Canvas
holding all the draw calls.
pageSize | Canvas page size in PDF points. |
---|---|
callback | An NewPage.OnDrawCanvasCallback that should be called to perform the
drawing on the canvas.
|
PDF page created from a Canvas
holding all the draw calls.
pageSize | Canvas page size in PDF points. |
---|---|
callback | An NewPage.OnDrawCanvasCallback that should be called to perform the
drawing on the canvas. |
matrix | Custom transformation matrix for the drawn content, identity matrix means alignment on bottom left at coordinate (0,0). |
PDF page created from a Canvas
holding all the draw calls.
pageSize | Canvas page size in PDF points. |
---|---|
callback | An NewPage.OnDrawCanvasCallback that should be called to perform the
drawing on the canvas. |
position | Alignment of the drawn content on the target page. |
Returns a custom transformation matrix for the content.
Returns the alignment of drawn content on the target page.
Returns the z-order of the content to be added to a page.
BACKGROUND
or FOREGROUND
.
Sets z-order of the content, foreground or background. Defaults to foreground.
zOrder | z-odder of the content, BACKGROUND or FOREGROUND .
|
---|