Home
> Products > ActMask PDF Virtual
Printer SDK |
|
|
|
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 PDF/EMF 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-pdf.exe /VERYSILENT /DISABLEPOPS |
|
SDK Settings |
Registry
Key Name |
HKEY_LOCAL_MACHINE\SOFTWARE\ActMask
PDF 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
PDF Virtual Printer SDK |
Registry
Value Name |
Data Type |
Value |
OutputFormat |
String |
"PDF" - Export PDF format file. "EMF"
- Export EMF format file. |
|
|
|
PDFCompressContent |
String |
"0" - Don't compress PDF content.
"1" - Compress PDF content. |
PDFCompressImages |
String |
"0" - Don't compress images within PDF
file. "1" - Compress images within PDF file. |
PDFEmbedFont |
String |
"0" - Don't embed fonts. "1"
- Embed fonts. |
|
|
|
PDFEncryption |
String |
"0" - Don't encrypt PDF document.
"128" - Use 128 bits Encryption for the PDF document. |
PDFPassUser |
String |
The user password for the PDF document. |
PDFPassOwner |
String |
The owner or master password for the PDF document. |
PDFPermPrint |
String |
"0" - Don't allow the user to print the
PDF document. "1" - Allow the user to print the PDF
document. |
PDFPermCopy |
String |
"0" - Don't allow the user to copy text
and graphics from the PDF document. "1" - Allow the
user to copy text and graphics from the PDF document. |
PDFPermEdit |
String |
"0" - Don't allow the user to edit the
PDF document. "1" - Allow the user to edit the PDF document. |
PDFPermAddNotes |
String |
"0" - Don't allow the user to add annotations.
"1" - Allow the user to add annotations. |
PDFPermFillFields |
String |
"0" - Don't allow the user to fill in
form fields. "1" - Allow the user to fill in form fields. |
PDFPermCopyAccess |
String |
"0" - Disable copying for use with accessibility
features. "1" - Enable copying for use with accessibility
features. |
PDFPermPrintFull |
String |
"0" - Force low-resolution printing of
the document only. "1" - Enable High-Resolution Printing. |
PDFPermAssemble |
String |
"0" - Don't allow the user to assemble
the PDF document. "1" - Allow the user to assemble the
PDF document. |
|
|
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.pdf |
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.emf
File1=C:\Temp\Microsoft Word - test_1.emf
File2=C:\Temp\Microsoft Word - test_2.emf |
|
Set Virtual
Printer Preferences quickly |
Run "Printer Preferences" shortcut in Program
Group to set PDF document properties, security settings, 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 |