long | MBegin() |
long | MSetParam(long id, long itype, char *sparam, long iparam) |
long | MConvert(long id, char *inpdf, char *password, char *outswf) |
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 *outswf) |
|
Convert pdf to flash 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. | |
outswf | A string that is path to the output Flash file. | |
Return Value: | ||
1 if convert is successfully, -1 if input pdf path error, -2 if password incorrect, -3 if couldn't open file, -4 if conversion error, otherwise 0. |
||
long MSetParam | (long id, long itype, char *sparam, long iparam) |
|
Set a swf encoder specific parameter | ||
Parameters: | ||
id | A handle to the file. | |
itype | Set generated flash format. see ENUM_FLASH_PARAM. | |
sparam | A String value of the parameter. | |
iparam | 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_PAGE_RANGE | 100 | string | Set page range to convert. e.g. " 2,5-15,20- " Extract page 2,page 5 through 15, page 20 through end. |
M_VERSION | 101 | int | Set the Flash fileversion, 6-9, (default:9) |
M_PAGE_ZOOM | 102 | int | Set the Flash resultion, 72-1200, (default: 72) |
M_FRAMERATE | 103 | string | Set the Flash framerate (default: 0.5) |
M_JPEG_QUALITY | 104 | int | Set quality of embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big). (default:85) |
M_ARROW | 105 | int | Add next/previous buttons to the SWF |
M_BITMAPS | 106 | int | 1 is convert graphics to bitmaps. 2 is convert everything to bitmaps. |
M_DISABLELINKS | 107 | int | Disable links. |
M_INSERTSTOP | 108 | int | Insert a stop() command in each page. |
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.