Go to the source code of this file.
Defines | |
| #define | RPT_VERSION_MAJOR 1 |
| major version number | |
| #define | RPT_VERSION_MINOR 0 |
| minor version number | |
Typedefs | |
| typedef rpt_data_struct | rpt_data |
| rpt_data is the type to be used by applications | |
Enumerations | |
| enum | rpt_status_t { RPT_STATUS_OK = 0, RPT_NO_MEM_ERROR, RPT_CFG_ERROR, RPT_INVALID_INPUT, RPT_SYSTEM_ERROR, RPT_PDFTEX_ERROR } |
| rpt_status_t is the type to indicate errors that can occur with runpdftex. More... | |
Functions | |
| rpt_data * | rpt_create (void) |
| creates a rpt_data object to be passed to other runpdftex functions. | |
| rpt_status_t | rpt_set_tex_file (rpt_data *data, const char *tex_file) |
| set the tex file to be compiled by pdftex. | |
| rpt_status_t | rpt_set_working_dir (rpt_data *data, const char *working_dir) |
| set the working dir where compilation by pdftex will take place. | |
| rpt_status_t | rpt_add_option (rpt_data *data, const char *opt) |
| add options that will be passed to pdftex. | |
| rpt_status_t | rpt_run (rpt_data *data) |
| execute pdftex with the parameters stored in the rpt_data object. | |
| rpt_status_t | rpt_get_status (rpt_data *data) |
| get the error status of a rpt_data object. | |
| const char * | rpt_get_status_str (rpt_data *data) |
| get the error string of a rpt_data object. | |
| void | rpt_destroy (rpt_data *data) |
| destroys the rpt_data object created by rpt_create(). | |
Definition in file runpdftex.h.
|
|
rpt_status_t is the type to indicate errors that can occur with runpdftex. In most cases it is returned by a function, and also stored within the rpt_data object that was passed to the function. The error of an object can be retrieved using rpt_get_status(), and a more descriptive error string is available via rpt_get_status_str(). When an error occurs with a rpt_data object, further manipulation on this object won't have any effect: most functions simply return the error code stored within the object and do nothing else.
Definition at line 23 of file runpdftex.h. 00023 {
00024 RPT_STATUS_OK = 0,
00025 RPT_NO_MEM_ERROR,
00026 RPT_CFG_ERROR,
00027 RPT_INVALID_INPUT,
00028 RPT_SYSTEM_ERROR,
00029 RPT_PDFTEX_ERROR
00030 } rpt_status_t;
|
|
||||||||||||
|
add options that will be passed to pdftex.
|
|
|
creates a rpt_data object to be passed to other runpdftex functions.
|
|
|
destroys the rpt_data object created by rpt_create().
|
|
|
get the error status of a rpt_data object.
|
|
|
get the error string of a rpt_data object.
|
|
|
execute pdftex with the parameters stored in the rpt_data object.
|
|
||||||||||||
|
set the tex file to be compiled by pdftex.
|
|
||||||||||||
|
set the working dir where compilation by pdftex will take place.
|
1.4.2