Troubles with console printing, blank page and deleting input file

Hello!


I am trying to print using command line, and if i try to print this way:
D:\app\PDFCreator>PDFCreator.exe /PF"d:\pdf\test.docx" - the window opens and after i click save button result is ok, but i need full command line printing then i try do it this way:
D:\app\PDFCreator>PDFCreator.exe /IF"d:\pdf\test.docx" /OF"d:\pdf\test1.pdf" /Op
enOF - and input file just deleting, and output file is blank pdf. It looks strange…

I tried to save ini file of success printing and do it like this:
D:\app\PDFCreator>PDFCreator.exe /IF"d:\pdf\test.docx" /OF"d:\pdf\test.pdf" /Ope
nOFF /OptionsFile"d:\pdf\test.ini" but nothing changes. 

Can you help me, please! I am using 1.7.1 version on win7 x64.

Hi,

the /IF /OF method only works for .ps and bitmap files.
http://www.pdfforge.org/content/command-line-parameters

You probably need to setup autosave and use the /PF command.
You can specify options with an ini file and /OptionsFile.
Use /NoStart so the PDFCreator will close itself after completing the task.

regards,

Robin

Thanks, this works! 

If i try to run the program from php there is a process WinWord eating all my memory. I think i should create another question for this.

You probably need to setup autosave and use the /PF command.
You can specify options with an ini file and /OptionsFile.
Use /NoStart so the PDFCreator will close itself after completing the task.


Sorry, but I do not really understand what and how to do this.

PDFCreator works good, creating a pdf from a txt file; now the only thing I want is (from within an application) to automagically save the pdf in the same directory as the txt file, without prompts. Afterwards the pdf is opened in Foxit Reader. Can someone please help?

OK, I found out half of the answer; auto-save works. What I would want after all, is that the program PDFcreate closes down automagically after the pdf is created.

OK, now I have found the complete answer: I use these lines from within my application:


ExeProg$ = "C:\Program Files\PDFCreator\PDFCreator.exe"
comm$ = “/NoStart /PF” + CHR$(34) + “FA0000.txt”+ CHR$(34)

This might be helpfull for absolute beginners like me.

Regards, Ad