Hello everyone,
I would like to use PDFcreator for a program I am building, I manage to open and print a document using PDFcreator, but, I also want to add some watermark/stamps is it possible? how?
Thank you.
PS : any piece of information would be gladly apreciated, no matter if it is in VB, delphi, paradox, I will try to adjust anything to what I need
You should use the com interface of PDFCreator (help file -> COM Interface). And you can use actions. Like RunProgramBeforeSaving and RunProgramAfterSaving. There are some samples for actions and the com interface coming with the setup. -> AddWatermarkToPDF.vbs
thank you for your answer,
Yes, I know I should use the COM interface, and that is what I am doing. my question was perhaps not well asked (sorry for my bad english) it should have stated, using the COM interface, how can i add a watermark to a PDF that I am creating usin PDFcreator.
Weird, I don't see the AddWaterMarkToPDF.vbs file in the sample that I have.
>Weird, I don't see the "AddWaterMarkToPDF.vbs" file in the sample that I have.
You can find the script in the folder "PDFCreator\Scripts\RunProgramAfterSaving".
Use the options RunProgramAfterSaving, RunProgramAfterSavingProgramParameters, RunProgramAfterSavingProgramname etc..
Btw: You need pdftk for the script "AddWaterMarkToPDF".
So, basically, you are telling me that there is no way to do this VIA the COM interface directly? I thought I could do it when I saw the StampString, StampFontName and all those other parameter for stamps... can you explain to me what is the use of those parameter in that case?
My problem is that using the pdftk, I need to have a second file that contain the waterMark, I cannot create a waterMark on the fly and just tell PDFcreator where I want it to be put on my pdf.
Thank you for taking the time to answer me.
> StampString, StampFontName ...
These settings are very experimental. These is the reason why these settings are "hidden".
The best way to do it is via the script "AddWatermarkToPDF".
>I cannot create a waterMark on the fly ...
Why must you create such watermark files on the fly?
fly2pdf is another tool which can create pdfs direct without any thirdparty tool like ghostscript. But it is not converter and there is no official release.
Frank
>Why must you create such watermark files on the fly?
To be able to havle multiple possibilities of watermark, without the need for a file for each of them.
So, with the RunProgramAfterSaving and RunProgramAfterSavingProgramParameters, how do I pass the parameter? how do I know wich parameter to pass for each programs? could you perhaps give me a sample code that use these things?
cheers
Today I have improved the StampString setting. So I think it is ready to release as official setting in the options dialog. I will do some tests and I think we can release it in version 0.9.3.
These are good news, any idea when this version is going to be released?
I am sorry to ask again, but, is there any way you could show me a bit of code using the pdftk thingy with all the RunProgramAfterSaving properties?
Thanks
>These are good news, any idea when this version is going to be released?
No.
>I am sorry to ask again, ...
The name of the script is AddWatermarkToPDF.vbs. Take a look at it and in the help file. If you need more help I can make you an offer.
Best regards,
Frank