Lasso Soft Inc. > Home

[PDF_Doc->Add]

Adds a PDF content object to a document. This can be used to add [PDF_Text], [PDF_List], [PDF_Image], [PDF_Table], [PDF_List], or [PDF_Barcode] objects.

The object is added to the flow of the page by default. Positioning information may be supplied for [PDF_Image] and [PDF_Barcode] objects via -Top and -Left parameters. See [PDF_Doc->DrawText] for positioning text on a page.

  • Syntax
  • Parameters
[$PDF_Doc->(Add: PDF_Text Variable)]
[$PDF_Doc->(Add: PDF_Table Variable)]
[$PDF_Doc->(Add: PDF_List Variable)]
[$PDF_Doc->(Add: PDF_Image Variable, -Top=Integer, -Left=Integer)]
[$PDF_Doc->(Add: PDF_Barcode Variable, -Top=Integer, -Left=Integer)]
Required Parameters
[PDF_...] Variable The [PDF_Text], [PDF_List], [PDF_Image], [PDF_Table], or [PDF_BarCode] object to be added to the PDF file.
Optional Parameters
-Align Sets the alignment of the object in the page ('Left', 'Center', or 'Right'). Defaults to 'Left'. Works only for [PDF_Image] and [PDF_BarCode] objects (text alignment is achieved via [PDF_Text] object parameters).
-Wrap Keyword parameter specifies that text should flow around the embedded object. Relevant for image, table, and barcode objects. Optional.
-Left Specifies the placement of a [PDF_Image] or [PDF_Barcode] object relative to the left side of the document. Requires a decimal value, which is the placement offset in points. Optional.
-Top Specifies the placement of a [PDF_Image] or [PDF_Barcode] object relative to the top of the document. Requires a decimal value, which is the placement offset in points. Optional.
-Height Scales the object to the specified height. Requires a decimal value which is the desired object height in points. Works only for [PDF_Image] and [PDF_BarCode] objects.
-Width Scales the object to the specified width. Requires a decimal value which is the desired object width in points. Works only for [PDF_Image] and [PDF _BarCode] objects.
Examples

See the PDF chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the PDF examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide. This tag is documented on page 565.

Tag Link [PDF_Doc->Add] Category PDF
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security None
Implementation Sets Lasso 7.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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft