2022.2

Table Of Contents
top
Coordinate at which to place the top edge of the image from the top of the page, in points.
rotateAngle
Angle at which to rotate counter-clockwise the inserted image, in degrees. The rotation is done after
the image is placed at (left, top) and centered around that point.
scaleFactor
Scale at which to display the image. For bitmaps, this is based on a 72 dpi resolution. Use 1.0 for the
nominal size.
MergeToLayer(imageFile, left, top, rotateAngle, scaleFactor, layerName)
This method behaves the same as Merge() but allows to insert the image as a layer (aka an Optional
Content Group).
Supported image types are JPG and PNG. If the input file is a PNG with an alpha channel, the PNG is
alpha blended with the page underneath. Monochrome PNG files are drawn transparently, with the
white used as the transparent color.
Syntax
VOID MergeToLayer (
STRING imageFile,
FLOAT left,
FLOAT top,
FLOAT rotateAngle,
FLOAT scaleFactor,
STRING layerName
)
imageFile
Full name of the image to insert on the current page.
left
Coordinate at which to place the left edge of the image from the left edge of the page, in points.
top
Coordinate at which to place the top edge of the image from the top of the page, in points.
rotateAngle
Angle at which to rotate counter-clockwise the inserted image, in degrees. The rotation is done after
the image is placed at (left, top) and centered around that point.
scaleFactor
Page 214