Canvas
[Raku PDF Project] / [PDF-Content Module] / PDF::Content :: Canvas
A graphical content container such as a page, xobject form, or pattern
this role is applied to PDF::Content::Page and PDF::Content::XObject['Form'].
method gfx
method gfx(
*%o
) returns PDF::Contentappended graphics return appended PDF content stream
method pre-gfx
method pre-gfx() returns PDF::Contentreturn prepended graphics
method next-mcid
method next-mcid() returns UInt:DAllocate the next MCID (Marked Content Identifier)
method contents
method contents() returns Strreturn contents
method contents-parse
method contents-parse() returns Listreparse contents
method render
method render(
Bool :$tidy = Bool::True,
*%o
) returns PDF::Contentrender graphics
method finish
method finish() returns Mufinish for serialization purposes
method xobject-form
method xobject-form(
:$group = Bool::True,
*%dict
) returns PDF::Content::XObjectcreate a child XObject Form
method tiling-pattern
method tiling-pattern(
List :$BBox!,
Numeric :$XStep = Code.new,
Numeric :$YStep = Code.new,
Int :$PaintType = 1,
Int :$TilingType = 1,
Hash :$Resources = Code.new,
*%dict
) returns PDF::Content::XObjectcreate a new Type 1 (Tiling) Pattern
method save-as-image
method save-as-image(
Str $outfile where { ... },
|c
) returns Mudraft rendering via Cairo (experimental)
The PDF::To::Cairo module must be installed to use this method
has PDF::Content::Canvas::TagSetBuilder $.tags
snapshot of previous, and currently open tags