Home > Products > ActMask Image 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 JPG/PNG/BMP/TIFF/PCX/TGA 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-image.exe /VERYSILENT /DISABLEPOPS


SDK Settings
Registry Key Name
HKEY_LOCAL_MACHINE\SOFTWARE\ActMask Image 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"



Registry Key Name
HKEY_CURRENT_USER\SOFTWARE\ActMask Image Virtual Printer SDK

Registry Value Name Data Type Value

OutputFormat

String

"JPG" - Export JPG format file.
"BMP" - Export BMP format file.
"PNG" - Export PNG format file.
"TIF" - Export Multi-Page TIFF format file.
"TGA" - Export TGA format file.
"PCX" - Export PCX format file.

     

ResizingRate

String

Output Resizing Rate

Constants:
"0" ~ "100"

"0" - Custom size, please set ResizingWidth and ResizingHeight
"27" - 27%, 96 DPI
"33" - 33%, 120 DPI

ResizingWidth DWORD The specified width of output image, in pixels.
ResizingHeight DWORD The specified height of output image, in pixels.
     

ResizingMode

DWORD

0 - Playback simply, fastest speed, low quality.
1 - Nearest Neighbour, medium quality.
2 - Bilinear, better quality.

If document printed contains line or grid, Nearest Neighbour or Bilinear mode is commended.


TransMode Setting
Run "Configure driver" shortcut in Program Group to choose TransMode type. Your application will receive all information about PDF 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 Example1
[Info]
DocumentName=Microsoft Word - test.doc
PageWidth_Mm=216
PageHeight_Mm=279
PageWidth_Pixel=3060
PageHeight_Pixel=3960

[Output]
FileCount=1
File0=C:\Temp\Microsoft Word - test.tif

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

[Output]
FileCount=3
File0=C:\Temp\Microsoft Word - test.jpg
File1=C:\Temp\Microsoft Word - test_1.jpg
File2=C:\Temp\Microsoft Word - test_2.jpg

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

Develop your software with ActMask Image 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