module PDF::Renderable
Overview
This module means some Type that can be rendered into an io ,and therefore can be formatted to a string
We'll overload IO#<<
for classes including this module
To include this module,a class must have a #render_to_pdf
method, which seems like
def render_to_pdf(io : IO) : IO
it means putting all the required data into an io. unless explicitly required, the output does contains a newline
Direct including types
- PDF::Date
- PDF::Document::CrossRef::Entry
- PDF::Document::Header
- PDF::Document::Trailer
- PDF::Name
- PDF::NameTree
- PDF::NumberTree
- PDF::Rectangle
- PDF::Stream
Defined in:
pdf/obj/renderable.crInstance Method Summary
-
#render_to_pdf(io : IO) : IO
render your data into a pdf file , and return the rendered IO
Instance Method Detail
render your data into a pdf file , and return the rendered IO