GraffitiSuite Docs
Docs
Document
Loading document parsing libraries...
# Document Class ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Android | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | Formats | A0 <br> A1 <br> A2 <br> A3 <br> A4 <br> A5 <br> A6 <br> A7 <br> A8 <br> A9 <br> A10 <br> B0 <br> B1 <br> B2 <br> B3 <br> B4 <br> B5 <br> B6 <br> B7 <br> B8 <br> B9 <br> B10 <br> C0 <br> C1 <br> C2 <br> C3 <br> C4 <br> C5 <br> C6 <br> C7 <br> C8 <br> C9 <br> C10 <br> Executive <br> Folio <br> Legal <br> Letter <br> Tabloid <br> RA0 <br> RA1 <br> RA2 <br> RA3 <br> RA4 <br> SRA0 <br> SRA1 <br> SRA2 <br> SRA3 <br> SRA4 | | | Orientations | Portrait <br> Landscape | | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | AddCSS | css as String | (None) | | | AddFont | font as GraffitiHTMLtoPDF.Font | (None) | | | Constructor | content as String | (None) | | | fontsToJavaScript | (None) | String | | | fontsToJSON | (None) | String | | | formatToString | format as Formats | String | | | orientationToString | orientation as Orientations | String | | | Attributes | Hidden = True | toJavaScriptBuild | | | Attributes | Hidden = True | toJavaScriptPrep | | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Compressed | Boolean | True | | | Content | String | Nil | | | Format | Formats | Nil | | | Metadata | GraffitiHTMLtoPDF.Metadata | Nil | | | Orientation | Orientations | Nil | | | Protection | GraffitiHTMLtoPDF.Protection | Nil | | | Template | GraffitiHTMLtoPDF.Template | Nil | | | Watermark | GraffitiHTMLtoPDF.Watermark | Nil | | ## Examples ### Explicit Page Breaks To add explicit page breaks, insert the following HTML at the break point: ``` <div class='page-break'> </div> ``` This is also available a Constant called `PageBreak` on the GraffitiHTMLtoPDF.Builder class. ### Removing Table Borders If you wish to have tables without borders, your table's HTML tag must contain the following property: ``` data-pdfmake="{"layout":"noBorders"} ``` The resulting table tag should look something like this: ``` <table data-pdfmake="{"layout":"noBorders"}"> ... </table> ```