Hide PDF Converter Printer after run of install.exe

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
Untoter
Posts: 22
Joined: Tue Nov 04 2014

Hide PDF Converter Printer after run of install.exe

Post by Untoter »

Hi,

we are implementing PDF Converter in our Installshield Setup. We expected that the printer will be installed hidden and is only accessable with our program. First we added a Customscript to Installshield which will run

Install.exe -s "Companyname PDF Export" -N "Lic" -c "longLicCode"

after Installation we have a "Companyname PDF Export" in Windows-"Printer and Devices". After i run our program first time it will be removed from the "Printer and Devices" with::DriverEnd().

how can we hide the PDF Converter Printer in Windows and for other programs?
Untoter
Posts: 22
Joined: Tue Nov 04 2014

Re: Hide PDF Converter Printer after run of install.exe

Post by Untoter »

to be more specific.

We have a Program with PDF Export. We wish, we run PDF Export and the Amyuni PDF Converter Printer will be enabled and unlocked with our license. After we created the PDF File this PDF Converter Printer should be not accessable from other Programs and not seeable from users.

Is this possible? Do this user need special Windows rights to access this "hidden" PDF Converter Printer?
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: Hide PDF Converter Printer after run of install.exe

Post by Jose »

Hi,

At the time of printing the Amyuni PDF Converter needs to be installed on the system and it will be visible in the control panel.

You can use to PDFDriverInit() function to dynamically install the Amyuni PDF Converter at each print job but recommend against that because of permissions and performance issues

The PDFDriverInit() function will install the Amyuni PDF Converter printer on a user’s system and this printer will be removed at the end of your application when calling DriverEnd. The PDFDriverInit() function needs to be called at the beginning of your application (and not each time you print) and DriverEnd should be called at the end of your application (and not when printing ends).

If users doesn't have administrative or power rights to add and remove a printer from their system PDFDriverInit() will fail.

In this case you can install the printer on your system using Install.exe (Install.exe should be run by an administrator) and inside your application you replace PDFDriverInit by DriverInit (the printer will remain on the system even when the application ends).

The DriverInit() function will take as parameter a string containing the printer name as it appears in your printers' folder.

For easier maintenance, it advisable to give to the printer a name related to your company.

Please note that:
Install "My Printer" : Will install a printer called "My Printer" on the system.
Install -s : Will install the printer in silent mode.

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite
Untoter
Posts: 22
Joined: Tue Nov 04 2014

Re: Hide PDF Converter Printer after run of install.exe

Post by Untoter »

Is there any of your products with the ability to serve a HDC ( GDI Device Context http://de.wikipedia.org/wiki/Graphics_Device_Interface ) and save everything drawn on this HDC to a PDF File, w/o need of a virutal PDF Printer?
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: Hide PDF Converter Printer after run of install.exe

Post by Jose »

Hello,

Unfortunately this is not possible with any of our products.

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite
Post Reply