Lasso Soft Inc. > Home

[PDF_Image]

Casts an image file as an LDML object so it can be placed in a PDF file. Requires either a -File, -URL, or -Raw parameter, as described below. Only images in JPEG, GIF, PNG, and WMF formats may be used.

  • Syntax
  • Parameters
[Var:'Image' = (PDF_Image: -File='/images/image.jpg')]

[Var:'Image' = (PDF_Image: -URL='http://www.example.com/images/image.jpg')]

[Var:'Image' = (PDF_Image: -File='/images/image.jpg', -Height=Integer, -Width=Integer)]

[Var:'Image' = (PDF_Image: -File='/images/image.jpg', -Rotate=Integer)]
Optional Parameters
-File Specifies the local path to an image file. Required if the -URL or -Raw parameters are not used.
-URL Specifies a URL to an image file. Required if the -File or -Raw parameters are not used.
-Raw Inputs a raw string of bits representing the image. Required if the -URL or -File parameters are not used.
-Height Scales the image to the specified height. Requires a decimal value which is the desired image height in points. Optional.
-Width Scales the image to the specified width. Requires a decimal value which is the desired image width in points. Optional.
-Proportional Keyword parameter specifying that all scaling should preserve the aspect ratio of the inserted page. Optional.
-Rotate Rotates the image by the specified degrees clockwise. Optional.
Examples

To add an image file to a [PDF_Doc] variable:

Use the [PDF_Image] tag. The following example adds a file named Image.jpg in a /Documents/Images/ folder to a [PDF_Doc] variable named MyFile.

[Var:'Image'=(PDF_Image: -File='/Documents/Images/Image.jpg')]
[$MyFile->(Add: $Image, -Left=144.0, -Top=300.0)]
Tag Link [PDF_Image] Category PDF
Type Substitution Data Source Any
Support Preferred Version 7.0
Output Type PDF_Image Security Tag
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