2019.2

Table Of Contents
IPDF.MergeWith() by first inserting the pages from an external file, merging them and then
deleting them, but with more flexibility.
Syntax
VOID Merge2 (
IPage srcPage,
FLOAT left,
FLOAT top,
FLOAT rotateAngle,
FLOAT scaleFactor
)
srcPage
IPage object to overlay 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
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
Page 278