stamp a watermark with pdftk
Posted: 28 Feb 2011 16:15
Hi
I need some help for a big batch operation on 1300 separate pdfs
the project is to stamp a watermark on each of the selected pdf files, then save it with the same name with a postfix in a sub-folder.
for this I want to use PDF-Tool Kit (pdftk) http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
the user manual is here http://www.pdflabs.com/docs/pdftk-man-page/
and examples here:http://www.pdflabs.com/docs/pdftk-cli-examples/
the command line syntax for this is:
I have already some UDC that works in the OPEN category the following works as expected but only on one file at a time
as a script the same code works too
I tried to transform my working code to udc "openwith" which allows multiple instances but with my limited understanding of all this and the syntax being a little different I'm looking for a hand.
either a "openwith" codeline or a script that could talk to pdftk
thanks a lot
Claude
I need some help for a big batch operation on 1300 separate pdfs
the project is to stamp a watermark on each of the selected pdf files, then save it with the same name with a postfix in a sub-folder.
for this I want to use PDF-Tool Kit (pdftk) http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
the user manual is here http://www.pdflabs.com/docs/pdftk-man-page/
and examples here:http://www.pdflabs.com/docs/pdftk-cli-examples/
the command line syntax for this is:
Code: Select all
pdftk orig.pdf stamp watermark.pdf output result.pdfCode: Select all
"C:\Windows\System32\pdftk.exe" <curitem> stamp "D:\CV_mes_documents\wm\WM1.pdf" output "D:\CV_mes_documents\wm\WM_output\<curbase>_wm.<curext>"Code: Select all
open "C:\Windows\System32\pdftk.exe" <curitem> stamp "D:\CV_mes_documents\wm\WM1.pdf" output "D:\CV_mes_documents\wm\WM_output\<curbase>_wm.<curext>"either a "openwith" codeline or a script that could talk to pdftk
thanks a lot
Claude