Specifying the full filename and path

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
malay
Posts: 2
Joined: Sat Mar 08 2003

Specifying the full filename and path

Post by malay »

I'm using the developer trial and calling SetFilenameOptions(hPrinter, NoPrompt) to disable the UI. So this means that the filename set will be determined by the default directory, the document title and the pdf extension. This means that I can only specify the filename through the document title.

Is there a way that I can specify the full filename and path through the document title?

This evidently does not work if I call SetDefaultDirectory(hPrinter, "") and pass "c:\\temp\\out.pdf" in the document title (the print job succeeds but there is no file named c:\temp\out.pdf). Am I doing something wrong?

Thanks in advance.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

In fact, the UI is already enabled in the developer version of the PDF Converter this is why you need to use NoPrompt.

If you want to give to the output pdf file a specific name than you can use SetDefaultFileName(hPrinter,"c:\Temp\out.pdf")
and you need to add 'UseFileName' (=2) to your call of FileNameOptions.

Hope this helps.
malay
Posts: 2
Joined: Sat Mar 08 2003

Post by malay »

I was hoping to avoid using the SetDefaultFileName and use the document name to specify the full path of the filename, or some mechanism that is not specific to the amyuni API that has to be done before each print job. My application has plenty of printing infrastructure and it would be nice to utilize that without building another code path to set the default file name. Is there any way to do this?

Thanks!
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

I advise you to send an e-mail to our support@amyuni.com with some more information about your application so they can check this and try to help you.

Have a nice day !
Post Reply