Trouble with VBScript

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Keith.Bradshaw
Posts: 2
Joined: Wed Feb 12 2003

Trouble with VBScript

Post by Keith.Bradshaw »

I am evaluating PDF Converter Pro for use with Windows Scripting Host and VBScript and am having trouble with fhe following simple test case:

Code: Select all

Set pdfDoc = CreateObject("CDIntf.Document")
pdfDoc.Open ("c:\scripts\test.pdf")
pdfDoc.Linearized = True
pdfDoc.Title = "Some Title"
pdfDoc.Author = "Some Author"
pdfDoc.Creator = "Some Creator"
pdfDoc.Subject = "Some Subject"
pdfDoc.Keywords = "Some Keywords"
pdfDoc.Save ("c:\scripts\test_new.pdf")
The document "test_new.pdf" is created but the pages are corrupt. "There was a problem reading this document (14)." is but one of the errors I've encountered. I must be doing something wrong. Any ideas?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Which version of the PDF Converter are you checking?
Our latest version of the PDF Converter is 2.08c, please feel free to download a demo from: http://www.amyuni.com/en/products/pdf_c ... /demo.html

Is the pdf file test.pdf generated by our driver?

Joan
Keith.Bradshaw
Posts: 2
Joined: Wed Feb 12 2003

Post by Keith.Bradshaw »

Joan wrote:
Which version of the PDF Converter are you checking?

Is the pdf file test.pdf generated by our driver?

Joan
I'm using version 2.08c

No, the test.pdf was not generated by your driver. My primary intent is to use your tool to modify the PDF properties and linearize our in-house PDF archive.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

Our CDIntf can open all pdf files generated by our driver and most pdf files generated by other drivers. But the current version of CDintf may not open all files generated by other drivers.

The new versions of CDIntf are able to open a wider range of pdf files.

A workaround to this issue is to print the pdf file to the PDF Converter printer while checking the FontEmbedding options (partial and standard). And then to open and linearize the generated pdf file.

Hope this helps, if not please send a sample of the files you are trying to open to support@amyuni.com so they can check this more closely.

Have a nice weekend.
Post Reply