Hello,
I'm trying to convert a HTML file to PDF via VBScript and the PDFCreator. There is already a COM interface provided and a sample script "Convert2PDF.vbs" which I wanted to use.
I did hit several issues, one that I need help with.
First issue was that Convert2PDF.vbs aborts with the message that the file is not printable, while it works well with .txt or .doc files. I finally had to comment the IF checking on the printability of the file.
Afterwards I was able to proceed with my tests but noticed that when trying to print HTMLs I still receive a Printer Dialog from the Internet Explorer, although the VBS sets the default printer to PDFCreator and Autosave properties are set. I've read some other posts in this message board and found a suggestion to use "cPrintURL" instead of "cPrintFile".
've done so and hit another issue. The PDFCreator creates a job in my printer queue with a increasing file size up to the point the whole system gets unstable. I have no idea why it does this. The HTML is about 100kByte big, I don't understand how the spool is going to get >500MByte. Here a screenshot of the issue http://imageshack.us/photo/my-images/402/pdfcreatorhtmlspoolissu.jpg/Anybody seen this issue before or suggestions?
Other ideas how I can get a HTML to PDF conversion going with PDFCreator and VBScript running silent?
Thank you and best regards,
Tille