long |
MBegin() |
long |
MInputFiles(long id,char *infile) |
long |
MPdfSecurity(long id,char *openpassword,char *perpassword,long level,long permission) |
long |
MPdfInfo(long id,char *title,char *subject,char *author,char *keywords,char *creator) |
long |
MConvert(long id,long mode,char *output) |
long |
MEnd(long id) |
long |
MRegCode(long id,char *regcode) |
long MBegin |
() |
Create a pdf file for convert. |
Parameters: |
|
|
NULL |
|
Return Value: |
|
|
Return a handle if the create was successful, otherwise 0. |
|
|
|
|
long MInputFiles |
(long id,
char *infile) |
Add xps file. |
Parameters: |
|
|
id |
A handle to the file. |
|
infile |
A string that is the path to the desired xps file. |
Return Value: |
|
|
Returns 1 if successfully, otherwise 0. |
|
|
|
|
long MPdfSecurity |
(long id,
char *openpassword,
char *perpassword,
long level,
long permission) |
Add pdf Security. |
Parameters: |
|
|
id |
A handle to the file. |
|
openpassword |
Document Open password. |
|
perpassword |
Permissions password. |
|
level |
Encryption Level. 128-bit, 40-bit. |
|
permission |
Permissions,
0 = all allowed.
4 = Deny printing.
8 = Deny modification of contents.
16 = Deny copying of contents.
32 = No commenting.
60 = all disallowed.
|
Return Value: |
|
|
Returns 1 if successfully, otherwise 0. |
|
|
|
|
long MPdfInfo |
(long id,
char *title,
char *subject,
char *author,
char *keywords,
char *creator) |
Add pdf info. |
Parameters: |
|
|
id |
A handle to the file. |
|
title |
Add title. |
|
subject |
Add subject. |
|
author |
Add author. |
|
keywords |
Add keywords. |
|
creator |
Add creator. |
Return Value: |
|
|
Returns 1 if successfully, otherwise 0. |
|
|
|
|
long MConvert |
(long id,
long mode,
char *outfile) |
Merge pdf. |
Parameters: |
|
|
id |
A handle to the file. |
|
mode |
Set out mode, mode=1, Combine all files into one pdf file, mode=2,Convert one file to one pdf file. |
|
outfile |
A string that is the path to the pdf file. |
Return Value: |
|
|
Returns 1 if convert is successfully, otherwise 0. |
|
|
|
|
long MEnd |
(long id) |
Close the pdf file. |
Parameters: |
|
|
id |
A handle to the file. |
Return Value: |
|
|
Returns 1 if successfully, otherwise 0. |
|
|
|
|
long MRegCode |
( long id,
char *regcode
) |
Register your SDK by the given Registration Key. |
Parameters: |
|
|
id |
A handle to the file. |
|
regcode |
Registration Key. |
Return Value: |
|
|
Returns 1 if the register was successful; otherwise 0. |
Any time that you need help while using products, please contact our support team at support@mgosoft.com.
We promise to our customers that we will deal with emails within 24 hours after receiving them.