Here, we read a TIFF file and present the data to the Image
object. We then read a mask image and assign that to our Image.
Finally, we add the image to our document and then save the
PDF.
Set theDoc = Server.CreateObject("ABCpdf11.Doc")
Set theImg = Server.CreateObject("ABCpdf11.Image")
Set theMsk = Server.CreateObject("ABCpdf11.Image")
theImg.SetFile "c:\mypics\mypic.tif"
theMsk.SetFile "c:\mypics\mymask.jpg"
theImg.SetMask theMsk, True
theMsk.Clear
theDoc.Color = "0 0 0"
theDoc.FillRect
theDoc.Rect.Inset 20, 20
theDoc.AddImageObject theImg, True
theDoc.Save "c:\mypdfs\imagesetmask.pdf"
Given the following input images.

mypic.tif |

mymask.jpg |
This is the kind of output you might expect.

imagesetmask.pdf
|