User login

Languages

Donate

Donate for a MSI Installer Package [more]

Target:
$ 1200
Achieved:
$ 1746.88
Fees:
$ 82.2
100 %
Donate
SourceForge.net Logo

can we use watermarks with PDF creator? Please

5 replies [Last post]
utahherb
User offline. Last seen 27 weeks 6 days ago. Offline
Joined: 09/03/2009

I really need to add watermarks using PDF creator.  any help would be greatly appreciated

 

unbob
unbob's picture
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 08/26/2009

Hi,

have a look at the "Scripts" folder in you PDFCreator installation. (haven't tried it myself)

bb_dn
User offline. Last seen 3 days 12 hours ago. Offline
Joined: 06/02/2007

Hi,

if you want a watermark to every pdf you create, you can mark the action "after saving"-box and select the "addwatermarktopdf.vbs"-script.(pdfcreator ->-settings ->action -> action after saveing)

But attention, take a look at the script. You have to install pdftk-1.12. In  "addwatermarktopdf.vbs" is the path to pdftk defined as well as the name of your watermark-file.

You can also run the script from commandline ""addwatermarktopdf.vbs file.pdf". The script is found in C:\program files\PDFCreator\scripts\RunProgramAfterSaving.

Good luck

bb_dn

frasmus
frasmus's picture
User offline. Last seen 14 weeks 5 days ago. Offline
Joined: 11/30/2009

I cannot solve a problem I am having with this watermark script.

tfname = fso.GetTempName yields a temp file name

but this line

WshShell.Run PathToPdftk & " """ & fname & """ background """ & WatermarkPDF & """ output """ & tfname & """",0,true

does not see the temp file. It gives me an error: "The system cannot find the file specified." Source: (null)

and when I put this line ahead of the shell command...

If Not fso.FileExists(tfname)

it equates to TRUE.

So my temp file does not exist. Please let me know if there's anything else I can do.
 

Ivar van Doorn
User offline. Last seen 12 weeks 45 min ago. Offline
Joined: 12/10/2009

Hello,

The WshShell line must look like this:

WshShell.Run """"&PathToPdftk&"""" & " """ & fname & """ background " & " """ & WatermarkPDF & """ output """ & tfname & """",0,true

Good luck!

Standa
User offline. Last seen 13 weeks 1 day ago. Offline
Joined: 10/08/2009

© pdfforge.org :: Contact us :: Sitemap :: Design by Daniela Martin

Validate XHTML or CSS.