long | MBegin() |
long | MSetParam(long id, long itype, char *sparam, long iparam, long iparam2) |
long | MConvert(long id, char *inpdf, char *password, char *outps) |
long | MEnd(long id) |
long MBegin | () | |
Create a handle for convert. | ||
Parameters: | ||
NULL | ||
Return Value: | ||
Return a handle if the create was successful, otherwise 0. | ||
long MConvert | (long id, char *inpdf, char *password, char *outps) |
|
Convert pdf to ps file. | ||
Parameters: | ||
id | A handle to the file. | |
inpdf | A string that is path to the input PDF file. | |
password | A string that is the password to open pdf file if pdf is restricted. | |
outps | A string that is path to the output PS file. | |
Return Value: | ||
1 if convert is succeed, 0 if conversion failed, -1 if input pdf file error, -2 if password incorrect, -3 if can't open file. |
||
long MSetParam | (long id, long itype, char *sparam, long iparam, long iparam2 ) |
|
Set a swf encoder specific parameter | ||
Parameters: | ||
id | A handle to the file. | |
itype | Set generated ps format. see ENUM_PS_PARAM. | |
sparam | A String value of the parameter. | |
iparam | A integer value of the parameter. | |
iparam2 | A integer value of the parameter. | |
Return Value: | ||
Returns 1 if 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. |
Param | Value | |
M_PS_LEVEL | 100 | Set postscript level. see PS_LEVEL. |
M_PAPER_SIZE | 101 | Set paper size. Support: "original, A0, A1, A2, A3, A4, A5, A6, B5, Letter, Legal, Ledger, P11x17", or "custom". |
M_EXPAND | 102 | Expand pages smaller than the paper size. |
M_SHRINK | 103 | Shrink pages larger than the paper size, |
M_CENTER | 104 | Center pages smaller than the paper size, |
M_DUPLEX | 105 | Enable duplex printing. |
Param | Value | |
M_LEVEL1 | 1 | Level 1 PostScript |
M_LEVEL1S | 2 | Level 1 Separable PostScript |
M_LEVEL2 | 3 | Level 2 PostScript (default) |
M_LEVEL2S | 4 | Level 2 Separable PostScript |
M_LEVEL3 | 5 | Level 3 PostScript |
M_LEVEL3S | 6 | Level 3 Separable PostScript |
M_LEVEL_EPS | 7 | Encapsulated PostScript (EPS) |
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.