Class: Typst::Png

Inherits:
Base
  • Object
show all
Defined in:
lib/formats/png.rb

Instance Attribute Summary

Attributes inherited from Base

#compiled, #options

Instance Method Summary collapse

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(*options)
  super(*options)
  @compiled = PngDocument.new(Typst::_to_png(*self.typst_args))
end