To print 2 or more watermarks?

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
INAGAKI, Hiroshi
User
Posts: 10
Joined: Tue Jun 01, 2010 12:56 am

To print 2 or more watermarks?

Post by INAGAKI, Hiroshi » Tue Jun 01, 2010 2:18 am

Hi,
I want to print two or more watermarks in my application.
The following initialization code did not work properly.
(development environment: Delphi 7, & PDF X-Change ver.4.0 build 181)

Code: Select all

procedure TForm1.InitPDFPrinter;
begin
    pPrinter.Option['Watermarks.Enabled'] := True;

    pPrinter.AddTextWatermark(
        'WM1','AAAAAA', 'Arial', 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 50, 28, 0,  '' 
    );
    pPrinter.AddTextWatermark(
        'WM2','BBBBBB', 'Arial', 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 50, 28, 0,  ''
    );

    pPrinter.Option['Watermarks.Watermarks'] := 'WM1,WM2';

    pPrinter.ApplyOptions(0);
end;
"3.1.2.11 Section Watermarks" of "API Manual" said
"A comma to separate the list of watermark names should be added to the document."

Property of "Watermarks.Watermarks" What is wrong to set?

Thanks,

Ivan - Tracker Software
Site Admin
Posts: 3611
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: To print 2 or more watermarks?

Post by Ivan - Tracker Software » Tue Jun 01, 2010 6:25 pm

Please try to use ; as separator for names, i.e.:

Code: Select all

    pPrinter.Option['Watermarks.Watermarks'] := 'WM1;WM2';
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

INAGAKI, Hiroshi
User
Posts: 10
Joined: Tue Jun 01, 2010 12:56 am

Re: To print 2 or more watermarks?

Post by INAGAKI, Hiroshi » Mon Jun 14, 2010 2:54 am

Thank you.
Now my application works properly.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13596
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: To print 2 or more watermarks?

Post by Tracker Supp-Stefan » Mon Jun 14, 2010 12:18 pm

The pleasure is ours INAGAKI, Hiroshi :)

Regards,
Stefan

Post Reply