Anda di halaman 1dari 2

2PDFunny Printer Driver for Developer Update 2

Thanks to buy this product! As you know 2PDFunny is a printer driver that produces PDF and Postscript documents. Buying this give you the authorization to include this printer into your own application. This document teach you to package 2PDFunny into your installer. Prerequisites Before install 2PDFunny you must install Microsoft Framework.NET 2.0 or later. How to include 2PDFunny into your installer package. You find with this document a folder named 2PDFunnyDev2 that contains everything you need. Your installer must copy this folder (you can rename it if you wish) to the target machine, after that it must execute following steps. 1. Create registry entries Into the key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run you must add the following REG_SZ value: 2PDFunnyDev2={TARGET_DIR}\pdfsave.exe where {TARGET_DIR} is the folder containing 2PDFunny files. This is necessary to run in background at startup the process that will display the dialog. Add following entries: [HKEY_LOCAL_MACHINE\SOFTWARE\2PDFunnyDev2] "Executable"="C:\Program Files\My Program\MyFile.exe" If you wish that 2PDFunny pass the generated file to a your executable, insert here the full path of it, otherwise leave it blank . This executable will be launched only if you set PromptUser=NO (see later) "PrinterName"=MyPersonal Printer" Is the name of the virtual printer you install. "PromptUser"="YES" Display or not the save file dialog to user, admissible values are YES or NO. If you set this value to NO, the driver will run your personalized executable. "FolderInstall"="C:\Program Files\Rigorini.NET\2PDFunnyDev\" The full path of the folder in which files of 2PDFunny are stored. "ExecutableInUserContext"="YES" In case you want 2PDFunny pass pdf/ps file generated to a your executable you can decide if it have to run in user context or in SYSTEM environment. If you set this value to NO instead YES it will works in SYSTEM environment. "ExecutableWindowStyle"="MAXIMIZED" In case you want 2PDFunny pass pdf file generated to a your executable you can decide how window have to run. Admissible value are: "HIDDEN", "MAXIMIZED", "MINIMIZED", "NORMAL"

Rigorini Technologies Copyright 2010 All right reserved www.rigorini.net

"LastFolder"="" Leave it empty "ShowProgress"="YES" Admissible values are YES or NO. If you set YES, in case you set PromptUser=YES, will be displayed a progress bar that indicates that driver is writing file. "PassingPS"="YES" Admissible values are YES or NO. If you set YES, the output will not be a PDF file but a Postscript file with .ps extention.. Following keys must be used to translate some text from English to your language. [HKEY_LOCAL_MACHINE\SOFTWARE\2PDFunnyDev\Translations] "DialogAction"="Action" "DialogOpen"="Open after created" "DialogDoNothing"="Do nothing" "DialogTitle"="Save PDF" "ProgressTitle"="Writing PDF. Please wait..." Whit this document you find Entries.reg file as example. 2. Install driver To install driver you have simply to run Installer.exe in the 2PDFunny folder. This executable will create port and printer. After this action the TEMP folder will be automatically deleted. The default name of printer is 2PDFunny Printer for Developer. If you wish to give to printer a different name you can add a parameter to Installer.exe, for example Install.exe MyPersonal Printer will install a printer named MyPersonal Printer 3. Tune your output This printer convert postscript output in a PDF file using Ghostscript. If you need to tune conversion parameters you can do it acting on Conv.bat file. You can find all documentation on Ghostscript official website (http://pages.cs.wisc.edu/~ghost/) How to uninstall 2PDFunny Before remove files you must run Uninstaller.exe from the 2PDFunny folder. After that you can remove files and registry keys. We hope you appreciate our efforts to give you a powerful product really easy to use to make you saving you time. Good work from Rigorini.NET!

Rigorini Technologies Copyright 2010 All right reserved www.rigorini.net

Anda mungkin juga menyukai