5 #ifndef PDFTRON_H_CPPPDFRasterizer
6 #define PDFTRON_H_CPPPDFRasterizer
9 #include <C/PDF/TRN_PDFRasterizer.h>
14 #include <C/Common/TRN_Types.h>
63 std::vector<unsigned char>
GetData()
const;
181 int width,
int height,
int stride,
182 int num_comps,
bool demult,
184 const Rect* clip = 0,
185 const Rect* scrl_clip_regions = 0,
189 int width,
int height,
int stride,
190 int num_comps,
bool demult,
192 const Rect* clip = 0,
193 const Rect* scrl_clip_regions = 0,
204 const Rect* clip = 0,
205 const Rect* scrl_clip_regions = 0
231 volatile bool* cancel
266 const Rect* clip = 0,
361 void SetImageSmoothing(
bool smoothing_enabled =
true,
bool hq_image_resampling =
false);
499 TRN_PDFRasterizer mp_rast;
509 #include <Impl/PDFRasterizer.inl>
515 #endif // PDFTRON_H_CPPPDFRasterizer
void SetCaching(bool enabled=true)
UString GetSeparationName() const
void SetImageSmoothing(bool smoothing_enabled=true, bool hq_image_resampling=false)
UInt32 GetDataSize() const
void SetThinLineAdjustment(bool pixel_grid_fit, bool stroke_adjust)
void SetErrorReportProc(ErrorReportProc error_proc, void *data)
void SetOverprint(OverprintPreviewMode op)
void SetGamma(double expgamma)
std::vector< unsigned char > Rasterize(Page &page, int width, int height, int stride, int num_comps, bool demult, const Common::Matrix2D &device_mtx, const Rect *clip=0, const Rect *scrl_clip_regions=0, bool *cancel=0)
void SetRasterizerType(Type type)
const UChar * GetData() const
ColorPostProcessMode GetColorPostProcessMode() const
void SetPathHinting(bool enable_hinting)
void(* ErrorReportProc)(const char *message, void *data)
Separation & operator=(const Separation &)
void SetAntiAliasing(bool enable_aa)
UString m_separation_name
GDI+ based rasterizer. (Deprecated)
std::vector< Separation > RasterizeSeparations(Page &page, int width, int height, const Common::Matrix2D &mtx, const Rect *clip, volatile bool *cancel)
void SetColorPostProcessMode(ColorPostProcessMode mode)
void(* DownloadReportHandler)(DownloadedType type, PDFDoc *doc, int page_num, int obj_num, const char *message, void *data)
void SetNightModeTuning(double contrast, double saturation, double flipness)
void SetHighlightFields(bool highlight_fields)
void SetDrawUIElements(bool draw_ui_elements)
high-quality, platform independent rasterizer.
void SetThinLineScaling(double scaling)
void SetDrawAnnotations(bool render_annots)
void SetOCGContext(OCG::Context *ctx)
PDFRasterizer(Type type=e_BuiltIn)
void SetPrintMode(bool is_printing)