PDFcreator through programation

2006-06-26 09:58:16 by anonymous

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


2006-06-26 10:23:02 by thesmilyface

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




2006-06-26 11:34:29 by anonymous

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.


2006-06-26 12:05:03 by thesmilyface

>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".


2006-06-26 13:43:04 by anonymous

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.


2006-06-26 16:56:32 by thesmilyface

> 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


2006-06-27 11:09:18 by anonymous

>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


2006-06-27 17:10:58 by thesmilyface

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.


2006-06-28 09:15:19 by anonymous

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


2006-06-28 20:49:50 by thesmilyface

>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


2006-07-15 07:27:47 by anonymous


2006-07-15 07:53:13 by anonymous