Generates a PDF file from a given view source.
Generates a PDF file from a given view source.
the file to write to. throw an exception if it exists, unless you specify overwrite = true
the view to render
when true
, uses the view's preferred size for output, otherwise its current size
additional page margin around drawing
when true
, allows to write to an existing file which will then be overwritten