Hello,
i have a problem with "Program parameters" of "action after saving" menu.
Program parameters are : "" "" "\\\\\\server\\folder\\.pdf"
* what i want to do :
add a background to a PDF created by users, with PDFTK.
i have created a little .BAT file here is :
rem "" "" "\\\\\\server\\folder\\.pdf"
rem %1 : where the user want its file output.
rem %2 : need for no confusing for file temp.
rem %3 : computer user have two printer with the name of file to use for watermark
rem user want a pdf with watermark to outputfile. so first, move the output file for watermark
move %1 %2
rem add background to file moved, output to , where user want it.
"\\\\server\\pdftk\\pdftk.exe" %2 background %3 output %1" dont_ask
rem cleaning the first file, without the watermark. no more need
del %2
rem echo command for test
echo %1 %2 %3
pause
now, i have a simple notepad file. i print it with pdfcreator.
i have the GUI for change "document title", "creation date", ... , buttons Cancel, Wait... and Save.
now, some cases, with i change something in "document title" (1) or filename when I click save button (2).
** (1) : no change and (2) no change
pdf is created with correct background
echo %1 %2 %3 command of .BAT file is correct with all three parameters : "c:\\a\
otepad.pdf" "13" "\\\\server\\folder\\background.pdf"
** (1) : i change title and (2) show the new title name. i keep it.
pdf is created with correct background
echo %1 %2 %3 command of .BAT file is correct with all three parameters : "c:\\a\\myfile.pdf" "13" "\\\\server\\folder\\background.pdf"
** (1) : i don't change title and (2) i change the namefile.
that don't work, because "Program parameters" output aren't correct :
echo %1 %2 %3 show "c:\\a\\myfile.pdf
that it : %1 haven't got the last " and %2 %3 are empty.
so, what should i do to have correct %1 %2 %3 value when i change (2) ?
or maybe another solution ?
thank you for your answer