Foxit PDF SDK
fs_outputpreview.h
Go to the documentation of this file.
1 
15 #ifndef FS_OUTPUTPREVIEW_H_
16 #define FS_OUTPUTPREVIEW_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 #include "common/fs_render.h"
21 
27 namespace foxit {
31 namespace pdf {
38 class OutputPreview FS_FINAL : public Base{
39  public:
45  typedef enum _ShowType {
47  e_ShowAll = 0,
65  e_ShowRGB = 9,
71  e_ShowGray = 12,
79  e_ShowLab = 16,
91  e_ShowText = 22,
94  } ShowType;
95 
101  typedef enum _ColorantType {
106  } ColorantType;
107 
108 
114  OutputPreview(const PDFDoc& pdf_doc);
120  OutputPreview(const OutputPreview& other);
128  OutputPreview& operator = (const OutputPreview& other);
129 
137  bool operator == (const OutputPreview& other) const;
145  bool operator != (const OutputPreview& other) const;
146 
154  bool IsEmpty() const;
155 
157  ~OutputPreview();
158 
169  void SetSimulationProfile(const WString& icc_profile_path);
170 
181  void SetShowType(ShowType show_type);
182 
193  StringArray GetPlates(ColorantType colorant_type);
194 
204  RGB GetSpotPlateColor(const char* plate_name);
205 
214  void SetCheckStatus(const String& plate_name, bool to_check);
215 
225  bool IsChecked(const String& plate_name) const;
226 
237  void EnableSimulateOverprint(bool is_to_simulate_overprint);
238 
252  common::Bitmap GeneratePreviewBitmap(const PDFPage& page, const Matrix& matrix, const common::Renderer& renderer);
253 
254  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
255  explicit OutputPreview(FS_HANDLE handle = NULL);
256 
257 };
258 } // namespace pdf
259 } // namespace foxit
260 #endif // FS_OUTPUTPREVIEW_H_
261 
Colorant type: process.
Definition: fs_outputpreview.h:103
If set, only show with Calibrated.
Definition: fs_outputpreview.h:77
Definition: fs_image.h:36
common::Bitmap GeneratePreviewBitmap(const PDFPage &page, const Matrix &matrix, const common::Renderer &renderer)
Generate the output preview bitmap for a PDF page.
bool operator !=(const OutputPreview &other) const
Not equal operator.
void SetShowType(ShowType show_type)
Set show type.
Definition: fs_outputpreview.h:38
If set, only show with CalGray.
Definition: fs_outputpreview.h:75
Header file for PDF document related definitions and classes.
If set, only show with DeviceCMYK.
Definition: fs_outputpreview.h:49
If set, only show with DeviceRGB.
Definition: fs_outputpreview.h:67
uint32 RGB
RGB color type, 24 bits, ((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:212
bool IsEmpty() const
Check whether current object is empty or not.
void SetCheckStatus(const String &plate_name, bool to_check)
Set the check status for a plate.
If set, only show with DeviceN.
Definition: fs_outputpreview.h:61
If set, show all.
Definition: fs_outputpreview.h:47
WIDE STRING CLASS.
Definition: fx_string.h:1452
bool operator==(const OutputPreview &other) const
Equal operator.
Definition: fs_pdfdoc.h:508
void EnableSimulateOverprint(bool is_to_simulate_overprint)
Set the flag to decide whether to enable simulate overprint.
If set, only show registration color.
Definition: fs_outputpreview.h:89
OutputPreview & operator=(const OutputPreview &other)
Assign operator.
ShowType
Enumeration for show type.
Definition: fs_outputpreview.h:45
If set, only show with Device.
Definition: fs_outputpreview.h:81
Definition: fs_render.h:70
If set, only show text.
Definition: fs_outputpreview.h:91
If set, only show with RGB.
Definition: fs_outputpreview.h:65
If set, only show with CMYK.
Definition: fs_outputpreview.h:63
StringArray GetPlates(ColorantType colorant_type)
Get Separations plates.
If set, only show with Lab.
Definition: fs_outputpreview.h:79
Colorant type: spot.
Definition: fs_outputpreview.h:105
If set, only show with DeviceCMYK or spot.
Definition: fs_outputpreview.h:59
OutputPreview(const PDFDoc &pdf_doc)
Constructor, with parameters.
If set, only show smooth shades.
Definition: fs_outputpreview.h:87
void SetSimulationProfile(const WString &icc_profile_path)
Set simulation ICC profile file path.
If set, only show with DeviceCMYK and spot.
Definition: fs_outputpreview.h:57
Definition: fs_pdfpage.h:411
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
Definition: fs_basictypes.h:407
Definition: fs_basictypes.h:226
If set, only show solid color.
Definition: fs_outputpreview.h:85
RGB GetSpotPlateColor(const char *plate_name)
Get the color value of a plate.
If set, only show images.
Definition: fs_outputpreview.h:83
If set, only show with ICCBased CMYK.
Definition: fs_outputpreview.h:53
If set, only show with DeviceGray.
Definition: fs_outputpreview.h:73
If set, only show with ICCBased RGB.
Definition: fs_outputpreview.h:69
Foxit namespace.
Definition: fs_taggedpdf.h:27
BYTE STRING CLASS.
Definition: fx_string.h:317
If set, only show line art.
Definition: fs_outputpreview.h:93
If set, only show with spot color.
Definition: fs_outputpreview.h:55
#define NULL
The null-pointer value.
Definition: fx_system.h:780
Definition: fx_coordinates.h:1076
Header file for rendering related definitions and classes.
ColorantType
Enumeration for colorant type.
Definition: fs_outputpreview.h:101
bool IsChecked(const String &plate_name) const
Check whether a plate is checked or not.
If set, only show with Gray.
Definition: fs_outputpreview.h:71
If set, only show without DeviceCMYK.
Definition: fs_outputpreview.h:51