Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PDFOptions options
of pdf conversion

Remarks

Header and footer html parameters specifies the single page and may contain following parameters:

Example

Sample header html

Code Block
languagets
<table style="border-bottom: 1px solid black; width: 100%;">
  <tr>
    <td style="width:20%;text-align:center;">[logo]</td>
    <td style="width:50%;text-align:center;font-size:1.3em;">[documentTitle]</td>
    <td style="width:30%">
      Document Number : [documentNumber]<br />
      Page : [page]/[topage]
    </td>
  </tr>
</table>

Example

Usage

Code Block
languagets
`
var html = '<html><body>Hello!</body></html>';
var pdfFile = $Files.AddPDF(html, 'sample.pdf');
return pdfFile.Id;

...