48
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 50 of 553
AddLogo
Description
APDF Logo is a full size image of a PDF page, used as a watermark. AddLogo instructs Toolkit to add
an existing PDF as watermark in the foreground or background of all pages affected by subsequent to
CopyForm and MergeFile. You can call AddLogo prior to PrintLogo to place the logo on a new page.
Return type
Long
Return Value
Description
-1
Unable to add logo.
>0
Logo added successfully. This is the logo index number.
Syntax
object.
AddLogo
LogoFileName, Background
The AddLogo method has these required parts:
Part
Value Type
Description
Object
An expression of the Toolkit object.
LogoFileName
String
The full path to the PDF file of which Toolkit creates a PDF
Logo.
Background
Short
1= Add PDF Logo in background.
0=Add PDF Logo in foreground. (Default.)
NOTE:
If the pages merged from an existing PDF are not
transparent, the merged page covers a PDF Logo placed in
the background. Similarly, if the source page for the PDF
Logo is not transparent, the PDF Logo placed in the
foreground covers the page underneath.
Remarks
Toolkit aligns the lower-left corner (0,0) of the PDF Logo to the lower-left corner (0,0) of the new or
existing page. If the new or existing page is smaller than the PDF Logo, the image will bleed past the
top and right edges.
Toolkit uses a predefined identifier, /Xqx,for the corresponding XObject inside the PDF file. As a result,
you can apply the same PDF Logo to multiple PDF documents, but you cannot apply a PDF Logo to a
PDF that already contains a PDF Logo.