PCL To PS SDK

long MBegin()
long MSetParam(long id, long itype, char *sparam, long iparam, long iparam2)
long MConvert(long id, char *infile, char *outfile)
long MEnd(long id)


Detailed Description


  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 *infile,
char *outfile)
  Convert to ps file.
  Parameters:  
  id A handle to the file.
  infile A string that is path to the input PCL file.
  outfile A string that is path to the output PS file.
  Return Value:  
  Returns 1 if successfully, otherwise 0.
   
   
  long MSetParam (long id,
long itype,
char *sparam,
long iparam,
long iparam2 )
  Set a 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 pcl file.
  Parameters:  
  id A handle to the file.
  Return Value:  
  Returns 1 if successfully, otherwise 0.




ENUM_PS_PARAM

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.

PS_LEVEL

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)



Technical Support

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.


Copyright © 2017 Mgosoft.com, Inc