Go to the documentation of this file.
20 #ifndef __EMSCRIPTEN_RENDER__
26 #endif // #ifndef _FX_NO_XFA_
30 #include <CoreGraphics/CoreGraphics.h>
45 #if defined(__linux__) && !defined(__ANDROID__)
52 class PostScriptDeviceSettingData FS_FINAL :
public Object{
59 typedef enum _OrientationFlag {
78 explicit PostScriptDeviceSettingData(
int device_width,
int device_height,
RectF device_margin, OrientationFlag orientation ,
int resolution,
uint32 copies)
79 : device_width(device_width)
80 , device_height(device_height)
81 , device_margin(device_margin)
82 , orientation(orientation)
83 , resolution(resolution)
92 PostScriptDeviceSettingData()
95 , orientation(e_Portrait)
104 PostScriptDeviceSettingData(
const PostScriptDeviceSettingData& settings)
105 : device_width(settings.device_width)
106 , device_height(settings.device_height)
107 , device_margin(settings.device_margin)
108 , orientation(settings.orientation)
109 , resolution(settings.resolution)
110 , copies(settings.copies) {}
119 PostScriptDeviceSettingData& operator = (
const PostScriptDeviceSettingData& settings) {
120 device_width = settings.device_width;
121 device_height = settings.device_height;
122 device_margin = settings.device_margin;
123 orientation = settings.orientation;
124 resolution = settings.resolution;
125 copies = settings.copies;
143 void Set(
int device_width,
int device_height,
RectF device_margin, OrientationFlag orientation,
int resolution,
uint32 copies ) {
144 this->device_width = device_width;
145 this->device_height = device_height;
146 this->device_margin = device_margin;
147 this->orientation = orientation;
148 this->resolution = resolution;
149 this->copies = copies;
166 OrientationFlag orientation;
207 typedef enum _ColorMode {
221 typedef enum _ContentFlag {
234 typedef enum _DeviceType {
257 #if (defined(_WIN32) || defined(_WIN64)) && (!defined(SWIG) || defined(_SWIG_DOTNET_) || defined(_SWIG_PYTHON_))
276 Renderer(HDC dc,
const wchar_t* printer_driver_name);
293 #if defined(__linux__) && !defined(__ANDROID__)
302 Renderer(
const PostScriptDeviceSettingData& print_param,
const wchar_t* dest_psfile_path);
404 #ifndef __EMSCRIPTEN_RENDER__
449 #endif // #ifndef _FX_NO_XFA_
479 #ifndef __EMSCRIPTEN_RENDER__
518 #ifndef __EMSCRIPTEN_RENDER__
621 #ifndef __EMSCRIPTEN_RENDER__
862 #endif // FS_RENDER_H_
void EnableForPrint(bool is_render_for_print)
Set the flag to decide whether to do rendering in print mode.
void SetMappingModeColors(ARGB background_color, ARGB foreground_color)
Set background color and foreground color when color mode is Renderer::e_ColorModeMappingGray or Rend...
Progressive StartRenderReflowPage(const pdf::ReflowPage &reflow_page, const Matrix &matrix, PauseCallback *pause=0)
Start to render a reflow page.
void SetRenderFormField(bool is_render_formfield)
Set the flag to decide whether to render form fields (except signature fields).
void SetClearType(bool is_clear_type)
Set the flag to decide whether to use ClearType-like anti-aliasing to render text objects.
Header file for PDF reflow page related definitions and classes.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
void SetForceDownSample(bool is_to_force_down_sample)
Set the flag to decide whether to use down-sampling for image stretching.
Progressive StartRender(const pdf::PDFPage &page, const Matrix &matrix, PauseCallback *pause=0)
Start to render a PDF page.
void SetPrintTextAsImage(bool is_to_print_text_image)
Set the flag to decide whether to print text as image.
bool RenderFormControls(const pdf::PDFPage &page, const Matrix &matrix)
Render form controls.
Definition: fs_annot.h:996
void SetRenderSignatureState(bool is_render_signature_state)
Set the flag to decide whether to draw the signature state on the signature.
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
Definition: fs_common.h:972
void SetRenderPathThinLine(bool is_render_path_thin_line)
Set the flag to decide whether to draw path as thin line.
Definition: fs_common.h:346
ContentFlag
Enumeration for rendering content flags.
Definition: fs_render.h:221
void SetRenderContentFlags(uint32 render_content_flags)
Set rendering flag to decide what content will be rendered.
Header file for common definitions and classes.
uint32 ARGB
ARGB color type, 32 bits, ((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_basictypes.h:210
Definition: fs_common.h:2005
bool RenderGraphicsObject(const pdf::graphics::GraphicsObject *graphics_object, const pdf::PDFPage &page, const Matrix &matrix)
Render a graphics object.
void SetLayerContext(const pdf::LayerContext &layer_context)
Set layer context to render context handle.
Device type: printer.
Definition: fs_render.h:238
Header file for PDF layer related definitions and classes.
Header file for XFA related definitions and functions.
void SetRenderSignature(bool is_render_signature)
Set the flag to decide whether to render signatures or not.
void SetClipPathStroke(const Path &clip_path, const Matrix &matrix, const GraphState *graph_state=0)
Set clipping path using stroked region.
Definition: fs_pdflayer.h:323
AppearanceType
Enumeration for the type of annotation's appearance.
Definition: fs_annot.h:1280
DeviceType
Enumeration for rendering device type.
Definition: fs_render.h:234
Progressive StartQuickRender(const pdf::PDFPage &page, const Matrix &matrix, PauseCallback *pause=0)
Start to quickly render a PDF page, mainly for thumbnail purpose.
Definition: fs_pdfgraphicsobject.h:241
bool IsEmpty() const
Check whether current object is empty or not.
If set, page content will be rendered.
Definition: fs_render.h:223
bool RenderAnnot(const pdf::annots::Annot &annot, const Matrix &matrix)
Render a specified annotation.
FillMode
Enumeration for filling mode type, mainly for path graphics object.
Definition: fs_common.h:89
void SetClipRect(const RectI *clip_rect)
Set the clipping rectangle which will be used in following rendering progress.
Definition: fs_reflowpage.h:62
void SetRenderImageAntiAliasing(bool is_render_image_antialiasing)
Set the flag to decide whether to draw image anti-aliasing.
Progressive StartRenderBitmap(const Bitmap &bitmap, const Matrix &matrix, const RectI *clip_rect=0, uint32 interpolation=0, PauseCallback *pause=0)
Start to render a bitmap.
void SetClipPathFill(const Path &clip_path, const Matrix &matrix, foxit::common::FillMode fill_mode)
Set clipping path using filled region.
Foxit namespace.
Definition: fs_taggedpdf.h:27
void SetRenderEnhanceThinLines(bool is_render_enhance_thin_lines)
Set the flag to decide whether to enhance thin lines.
ColorMode
Enumeration for rendering color mode.
Definition: fs_render.h:207
void SetRenderAnnotsForThumbnail(bool is_render_annots_for_thumbnail)
Set rendering flag to decide whether to render annotations in thumbnail mode or not.
Map gray/white/black color value to background/foreground; for other colors, no change.
Definition: fs_render.h:211
If set, annotations will be rendered.
Definition: fs_render.h:225
Definition: fx_basic.h:3761
Header file for image and bitmap related definitions and classes.
void SetRenderTextAntiAliasing(bool is_render_text_antialiasing)
Set the flag to decide whether to draw text anti-aliasing.
void SetColorMode(ColorMode color_mode)
Set color mode.
void SetForceHalftone(bool is_to_force_halftone)
Set the flag to decide whether to use halftone for image stretching.
Renderer & operator=(const Renderer &other)
Assign operator.
bool operator==(const Renderer &other) const
Equal operator.
#define NULL
The null-pointer value.
Definition: fx_system.h:780
Definition: fs_pdfpage.h:412
void SetPrintTextAsGraphic(bool is_to_print_text_graphic)
Set the flag to decide whether to print text as path or bitmap.
bool operator!=(const Renderer &other) const
Not equal operator.
Definition: fs_xfa.h:1237
Normal color mode.
Definition: fs_render.h:209
void SetRenderAnnotAppearanceType(foxit::pdf::annots::Annot::AppearanceType ap_type)
Set the annotation's appearance type for rendering.
Map a color value to the color range defined by a background color and a foreground color.
Definition: fs_render.h:213
Definition: fx_coordinates.h:596
Definition: fx_coordinates.h:1076
Header file for annotation related definitions and classes.
Device type: display device.
Definition: fs_render.h:236
void SetRenderPathAntiAliasing(bool is_render_path_antialiasing)
Set the flag to decide whether to draw path anti-aliasing.
Definition: fs_image.h:36
Progressive StartRenderXFAPage(const addon::xfa::XFAPage &xfa_page_view, const Matrix &matrix, bool is_highlight, PauseCallback *pause=0)
Start to render an XFA page.
CFX_FloatRect RectF
Rectangle, in float.
Definition: fs_basictypes.h:451
void SetJPXDownSample(bool is_jpx_down_sample)
Set the flag to decide whether to use down-sampling for jpx image.
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:196
Definition: fs_render.h:200
Renderer(const Bitmap &bitmap, bool is_rgb_order)
Constructor, with bitmap.
Definition: fs_basictypes.h:427
void SetJPEGDownSample(bool is_jepg_down_sample)
Set the flag to decide whether to use down-sampling for jpeg image.
void SetRenderPathFullCovered(bool is_render_path_full_covered)
A special flag that can be applied to fill mode.
@2024 Foxit Software Incorporated. All rights reserved.