Initializes and creates a PDF document. Uses optional parameters to set the basic specifications of the file to be created. Data is added to the variable using [PDF_Doc] member tags, most notably the [PDF_Doc->Add] tag.
[Var_Set:'MyFile'=(PDF_Doc: -File='MyFile.pdf',
-Size='A4',
-Color='#000000',
-UseDate,
-NoCompress,
-PageNo=1,
'Author'='John Doe',
'Title'='My PDF File')]
PDF files are created by setting a variable as a [PDF_Doc] type, and using various member tags and other [PDF_...] tags to add data to the variable. The PDF is then written to file when the format file containing all code is served by the Web server
[Var:'MyFile'=(PDF_Doc:
-File='MyFile.pdf',
-Size='A4',
-Margins=(Array: 144, 144, 72, 72))]
[Var: 'MyFont'=(PDF_Font: -Face='Helvetica', -Color='#00FF00', -Size=24)]
[Var:'Text'=(PDF_Text:'Hello, World\nI am a PDF document', -Font=$MyFont)]
[$MyFile->(Add: $Text)]
[$MyFile->(Close)]
Tag Link | [PDF_Doc] | Category | |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | PDF File | Security | File |
Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft