Class: Typst::Pdf
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*options) ⇒ Pdf
constructor
A new instance of Pdf.
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) ⇒ Pdf
Returns a new instance of Pdf.
3 4 5 6 |
# File 'lib/formats/pdf.rb', line 3 def initialize(*) super(*) @compiled = PdfDocument.new(Typst::_to_pdf(*self.typst_args)) end |