How can I control the PDF file name without prompting?

Top  Previous  Next

There are three options:

 

If the output PDF file can always have the same name, you can create a Windows port that specifies the name.  To create a file name port:

 

1.  Open the printers folder under Start>Settings>Printers.

 

2.  Right click on Win2PDF and select "Properties".

 

3.  Select the "Ports" tab.

 

4.  Click on the "Add Port..." button.

 

5.  Under "Available Printer Ports" select "Local Port" and then click the "New Port" button.

 

6.  Under "Enter a port name:" type in the full path name to the PDF file that you would like to be created.  For example, you could type "c:\my.pdf"  Click OK.

 

7.  You should be back at the "Ports" tab of the "Properties" dialog.  The file name that you entered in step 6 should display under "port."  Click the check box for the port filename, and then click "OK" or "Apply".

 

Printing to Win2PDF will now create a PDF file using the name that you picked without prompting.

 

You can use the registry as documented in the "Developer Information" section under "Specifying an output file name".

 

You can use the Win32 API as documented in the "Developer Information section under "Windows Printer Interface".