Class: Typst::Png
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*options) ⇒ Png
constructor
A new instance of Png.
Methods inherited from Base
#bytes, #compile, #document, from_s, from_zip, #pages, #typst_args, #with_dependencies, #with_font_paths, #with_fonts, #with_inputs, #with_root, #write
Constructor Details
#initialize(*options) ⇒ Png
Returns a new instance of Png.
3 4 5 6 |
# File 'lib/formats/png.rb', line 3 def initialize(*) super(*) @compiled = PngDocument.new(Typst::_to_png(*self.typst_args)) end |