DjVuToPS::Options Class Reference
DjVuToPS options.
More...
#include <DjVuToPS.h>
List of all members.
|
Public Types |
enum | BookletMode { OFF,
RECTO,
VERSO,
RECTOVERSO
} |
enum | Format { PS,
EPS
} |
enum | Mode { COLOR,
FORE,
BACK,
BW
} |
enum | Orientation { PORTRAIT,
LANDSCAPE,
AUTO
} |
Public Member Functions |
int | get_bookletalign (void) |
int | get_bookletfold (int n=0) |
int | get_bookletmax (void) |
BookletMode | get_bookletmode (void) const |
bool | get_color (void) const |
int | get_copies (void) const |
bool | get_cropmarks (void) const |
Format | get_format (void) const |
bool | get_frame (void) const |
double | get_gamma (void) const |
int | get_level (void) const |
Mode | get_mode (void) const |
Orientation | get_orientation (void) const |
bool | get_sRGB (void) const |
bool | get_text (void) const |
int | get_zoom (void) const |
| Options (void) |
void | set_bookletalign (int m) |
void | set_bookletfold (int fold, int xfold=0) |
void | set_bookletmax (int m) |
void | set_bookletmode (BookletMode m) |
void | set_color (bool color) |
void | set_copies (int copies) |
void | set_cropmarks (bool on) |
void | set_format (Format format) |
void | set_frame (bool on) |
void | set_gamma (double gamma) |
void | set_level (int level) |
void | set_mode (Mode mode) |
void | set_orientation (Orientation orientation) |
void | set_sRGB (bool calibrate) |
void | set_text (bool on) |
void | set_zoom (int zoom) |
Detailed Description
DjVuToPS options.
Use this class to customize the way in which DjVu to PS conversion will be done. You can adjust the following things: {description} [Format] ({EPS} or {PS}). Use the {EPS} format if you plan to embed the output image into another document. Print {PS} otherwise. [Language level] ({1} or {2}). Any PostScript printer or interpreter should understand PostScript Level 1 files. Unfortunately we cannot efficiently compress and encode data when generating Level 1 files. PostScript Level 2 allows to employ an RLE compression and ASCII85 encoding scheme, which makes output files significantly smaller. Most of the printers and word processors nowadays support PostScript Level 2. [Orientation] ({PORTRAIT} or {LANDSCAPE}) [Zoom factor] ({FIT_PAGE} or {ONE_TO_ONE}). {ONE_TO_ONE} mode is useful, if you want the output to be of the same size as the original image (before compression). This requires that the dpi# setting inside the {DjVuImage} is correct. In most of the cases the {FIT_PAGE} zoom is would be your best choice. [Mode] ({COLOR}, {FORE}, {BACK}, or {BW}) Specifies how the {DjVuImage}s will be rendered (all layers, foreground layer, background layer, and the mask respectively) [Color] ({TRUE} or {FALSE}). Choosing {FALSE} converts color images to gray scale. [Gamma] Printer color correction. This parameter ranges from #0.3# to #5.0#. [sRGB] ({TRUE} or {FALSE}). Choosing {TRUE} enables accurate sRGB color calibration. This option only works with language level 2. When this is set, gamma correction is clamped to #2.2#. [Number of copies] Specifies how many copies should be printed. This does { not} affect the size of the output file. {description}
Definition at line 137 of file DjVuToPS.h.
Member Enumeration Documentation
Specifies the booklet mode.
- Enumerator:
-
OFF |
|
RECTO |
|
VERSO |
|
RECTOVERSO |
|
Definition at line 147 of file DjVuToPS.h.
Selects the output format.
- Enumerator:
-
Definition at line 143 of file DjVuToPS.h.
Specifies the rendering mode.
- Enumerator:
-
Definition at line 141 of file DjVuToPS.h.
Specifies the orientation of the output image.
- Enumerator:
-
Definition at line 145 of file DjVuToPS.h.
Constructor & Destructor Documentation
DjVuToPS::Options::Options |
( |
void |
|
) |
|
Member Function Documentation
int DjVuToPS::Options::get_bookletalign |
( |
void |
|
) |
[inline] |
Returns the booklet recto/verso offset.
Definition at line 248 of file DjVuToPS.h.
int DjVuToPS::Options::get_bookletfold |
( |
int |
n = 0 |
) |
[inline] |
Returns the folding margin for sheet number n#.
Definition at line 251 of file DjVuToPS.h.
int DjVuToPS::Options::get_bookletmax |
( |
void |
|
) |
[inline] |
Returns the booklet max size.
Definition at line 245 of file DjVuToPS.h.
BookletMode DjVuToPS::Options::get_bookletmode |
( |
void |
|
) |
const [inline] |
Returns the booklet mode.
Definition at line 242 of file DjVuToPS.h.
bool DjVuToPS::Options::get_color |
( |
void |
|
) |
const [inline] |
Returns color printing flag.
Definition at line 220 of file DjVuToPS.h.
int DjVuToPS::Options::get_copies |
( |
void |
|
) |
const [inline] |
Returns the number of copies, which will be printed by printer This parameter does { not} affect the size of output file.
Definition at line 230 of file DjVuToPS.h.
bool DjVuToPS::Options::get_cropmarks |
( |
void |
|
) |
const [inline] |
Returns TRUE# if there will be a gray frame.
Definition at line 236 of file DjVuToPS.h.
Format DjVuToPS::Options::get_format |
( |
void |
|
) |
const [inline] |
bool DjVuToPS::Options::get_frame |
( |
void |
|
) |
const [inline] |
Returns TRUE# if there will be a gray frame.
Definition at line 233 of file DjVuToPS.h.
double DjVuToPS::Options::get_gamma |
( |
void |
|
) |
const [inline] |
Returns printer gamma correction factor.
Definition at line 226 of file DjVuToPS.h.
int DjVuToPS::Options::get_level |
( |
void |
|
) |
const [inline] |
Returns PostScript level (#1# or #2#).
Definition at line 207 of file DjVuToPS.h.
Mode DjVuToPS::Options::get_mode |
( |
void |
|
) |
const [inline] |
Orientation DjVuToPS::Options::get_orientation |
( |
void |
|
) |
const [inline] |
bool DjVuToPS::Options::get_sRGB |
( |
void |
|
) |
const [inline] |
Returns sRGB color calibration flag.
Definition at line 223 of file DjVuToPS.h.
bool DjVuToPS::Options::get_text |
( |
void |
|
) |
const [inline] |
Returns TRUE# if there will be a shadow text printed.
Definition at line 239 of file DjVuToPS.h.
int DjVuToPS::Options::get_zoom |
( |
void |
|
) |
const [inline] |
Returns output zoom factor (FIT_PAGE# or ONE_TO_ONE#).
Definition at line 217 of file DjVuToPS.h.
void DjVuToPS::Options::set_bookletalign |
( |
int |
m |
) |
|
Specifies an offset (points) between booklet recto(s) and verso(s).
Definition at line 242 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_bookletfold |
( |
int |
fold, |
|
|
int |
xfold = 0 | |
|
) |
| | |
Specifies the margin (points) required to fold the booklet (fold# in points) and the margin increase required for each sheet (xfold# in millipoints).
Definition at line 249 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_bookletmax |
( |
int |
m |
) |
|
Specifies the maximal number of pages in a booklet.
Definition at line 232 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_bookletmode |
( |
BookletMode |
m |
) |
|
void DjVuToPS::Options::set_color |
( |
bool |
color |
) |
|
Affects automatic conversion to GreyScale mode.
Definition at line 172 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_copies |
( |
int |
copies |
) |
|
Specifies the number of copies to be printed.
Definition at line 195 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_cropmarks |
( |
bool |
on |
) |
|
Specifies if crop marks should be printed.
Definition at line 211 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_format |
( |
Format |
format |
) |
|
void DjVuToPS::Options::set_frame |
( |
bool |
on |
) |
|
Specifies if a gray frame around the image should be printed.
Definition at line 204 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_gamma |
( |
double |
gamma |
) |
|
Sets gamma correction factor.
Ranges from #0.3# to #5.0#.
Definition at line 186 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_level |
( |
int |
level |
) |
|
Sets PostScript level (#1#, #2#, or #3#).
Definition at line 133 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_mode |
( |
Mode |
mode |
) |
|
void DjVuToPS::Options::set_orientation |
( |
Orientation |
orientation |
) |
|
void DjVuToPS::Options::set_sRGB |
( |
bool |
calibrate |
) |
|
Sets sRGB color calibration flag.
Definition at line 179 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_text |
( |
bool |
on |
) |
|
Specifies if a shadow text should be printed.
Definition at line 218 of file DjVuToPS.cpp.
void DjVuToPS::Options::set_zoom |
( |
int |
zoom |
) |
|
The documentation for this class was generated from the following files: