Customized pdfMachine Toolbar Icons
Want to place your own buttons on the pdfMachine toolbar to do a specific job? Then read on. It involves creating a few registry entries and defining a COM object to be called when a button is clicked. This COM object could be developed in any Windows programming language or it may even be a script.
The following registry key:
A comma separated list of button names.
A comma separated list of image identifiers. An image identifier may be a file name or a index. If a file name the image file must be a 32x32 pixel BMP file.
The name of the COM object that will be created.
COM Interface - click handler
The com interface defined by extraButtonsComHandler must support the IDispatch interface and define a method called "clicked".
clicked (buttonText, pdfMachineviewer)
COM Interface - pdfMachine Viewer
This must be registered by executing the following command:
bgsview.exe is found in the printer driver directory, something like:
The pdfmachineViewer COM object implements an IDispatch interface that exposes the
The PDF file will be saved under the file name 'filename'.
The default MAPI mail client will open with the PDF file attached.
The pdfMachine viewer application will exit.
Example Click Handler
This click handler was created using the Microsoft "Windows Script Component Wizard".
Microsoft Windows Script Components provide you with an easy way to create COM
components using scripting languages such as Microsoft Visual Basic Scripting
Edition (VBScript) and Microsoft JScript. For more information on Script
Components go to :
A script component is an XML file that includes the java script code implementing the "clicked" method.
Click here to download the pdfMachineButtonHandler.WSC file
The click handler was saved to the file pdfMachineButtonHandler.WSC and registered with the command :
On x64 systems, run the regsvr32.exe program from the syswow64 directory.