path on the server to target
Resource type as a mime type
resource type as a mime type
This Resource object as a dict object for use as a secondary file (prepend, append, insert,as subtemplate)
this Resource object as a dict object for use as a secondary file (prepend, append, insert, as subtemplate)
This Resource object as a dict object for use as a template
dict representation of this resource as a template
Create a Base64Resource from a base64 string and a file type (extension)
base64 encoded representation of a file
file type (extension)
the created Resource
Create an HTMLResource with html data in plain text. Landscape is not supported for prepend/append sources, only for template resources.
html content
Whether or not the orientation needs to be landscape. Defaults to false.
the created Resource
Create a Base64Resource with the contents of a local file. The filetype is determined by the extension of the file.
path to local file
the created Resource
Create a RawResource from raw file data and a file type (extension)
raw data as a Buffer object
file type (extension)
the created Resource
Create a ServerPathResource targeting a file on the server. The filetype is determined by the extension of the file.
location of target file on the server
the created Resource
Create a URLResource targeting the file at url with given filetype (extension).
file url
file type (extension)
the created Resource
Generated using TypeDoc
A Resource targeting a file on the server