Home > Products > ActMask EMF Virtual Printer SDK

Product / Output EMF SPL PDF TXT JPG PNG GIF BMP TIF TGA PCX  
ActMask Universe Virtual Printer SDK Yes Yes  Yes Yes  Yes  Yes  Yes  Yes  Yes  Yes  Yes   

Why ActMask
We provide low cost, easy to use, high performance and high reliability SDK products which are used by a number of companies. Our SDKs experienced rigorous testing on Win9X/2K/2003/XP/Vista32 and 64 bit operating system and obtained trust from customers such as Lexmark, ARTI(XEROR), Overnite Express Limited, Worthware Systems, Techleader Co., Ltd, Extract Systems, LLC, Neotechsoft Co. Ltd etc.

How it works
Print any file to ActMask Virtual Printer (you can request us to custom the printer name) simply, then EMF file(s) and a ini file will be created automatically. Your application can receive fullname of file(s) exported, Job Title and page size from the ini file.

How to embed SDK to product
You'll get full version after purchasing, no limitation, no message box about our company, and you can request us add custom notice message (OPTIONAL).

1. Embed SDK to your installation packet.
2. Simply extract the SDK exe while installing, save to temporary folder and execute the exe with below command line while installing.
x:\temp folder\virtual-printer-sdk-emf.exe /VERYSILENT /DISABLEPOPS

SDK Settings
Registry Key Name
HKEY_LOCAL_MACHINE\SOFTWARE\ActMask EMF Virtual Printer SDK

Registry Value Name Data Type Default Value

AppFileName

String


"{sys}\PrtClient.exe"

You can use constants below or exe fullname:
{sys} - Windows system folder
{pf} - Windows Program Files folder


TransMode

DWORD


0

Constants:
0 - CommandLine mode
1 - WM_COPYDATA Message mode
2 - Clipboard mode

TagWndMsgID DWORD 32768
TagWndClass String ""
TagWndTitle String "Your Virtual Printer Example Title"
ClipboardFormat String "Your Virtual Printer Example Clipboard Format"

TransMode Setting
Run "Configure driver" shortcut in Program Group to choose TransMode type. Your application will receive all information about EMF file(s) created and the document you printed.

TransMode Action
CommandLine mode


ActMask SDK will call command line below.
YourAppFileName.exe szIniFileName


WM_COPYDATA Message mode


ActMask SDK will call Windows API FindWindow(TagWndClass, TagWndTitle) to get HWND of YourAppFileName.exe first, fill out COPYDATASTRUCT Structure, then send WM_COPYDATA message to your application.

typedef struct tagCOPYDATASTRUCT {
ULONG_PTR dwData;
DWORD cbData;
PVOID lpData;
} COPYDATASTRUCT, *PCOPYDATASTRUCT;

COPYDATASTRUCT stCopyData;

//Get HWND of YourAppFileName.exe

stCopyData.dwData = iTagWndMsgID; //TagWndMsgID setting in Registry
stCopyData.lpData = szIniFileName; //Includes terminating null ansi characters
stCopyData.cbData = strlen(szIniFileName) + 1; //Size of ini filename + 1

//Send WM_COPYDATA Message to YourAppFileName.exe


Clipboard mode

ActMask SDK calls Windows API FindWindow(TagWndClass, TagWndTitle) to get HWND of YourAppFileName.exe first, Registers your Clipboard format, copies ini filename (ansi characters, includes terminating null) to Clipboard, then sends message to notice YourAppFileName.exe .


Ini File Example
[Info]
DocumentName=Microsoft Word - test.doc
PageWidth_Mm=216
PageHeight_Mm=279
PageWidth_Pixel=3060
PageHeight_Pixel=3960

[Output]
FileCount=4
File0=C:\Temp\Microsoft Word - test.emf
File1=C:\Temp\Microsoft Word - test_1.emf
File2=C:\Temp\Microsoft Word - test_2.emf
File3=C:\Temp\Microsoft Word - test_3.emf

Set Virtual Printer Preferences quickly
Run "Printer Preferences" shortcut in Program Group to set printer orientation or printer paper size.

Develop your software with ActMask PDF Virtual Printer SDK
Please see sample projects (VB6, VB.Net, C#, MFC) in Program group

Home | Products | Download | Buy Online | Partners | Contact | SiteMap

ActMask Co.,Ltd © 1998-2007 All rights reserved