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 
26 namespace foxit {
30 namespace pdf {
36 class OutputPreview FS_FINAL : public Base{
37  public:
43  typedef enum _ShowType {
45  e_ShowAll = 0,
63  e_ShowRGB = 9,
69  e_ShowGray = 12,
77  e_ShowLab = 16,
89  e_ShowText = 22,
92  } ShowType;
93 
99  typedef enum _ColorantType {
104  } ColorantType;
105 
106 
112  OutputPreview(const PDFDoc& pdf_doc);
118  OutputPreview(const OutputPreview& other);
126  OutputPreview& operator = (const OutputPreview& other);
127 
135  bool operator == (const OutputPreview& other) const;
143  bool operator != (const OutputPreview& other) const;
144 
152  bool IsEmpty() const;
153 
155  ~OutputPreview();
156 
167  void SetSimulationProfile(const WString& icc_profile_path);
168 
179  void SetShowType(ShowType show_type);
180 
191  StringArray GetPlates(ColorantType colorant_type);
200  void SetCheckStatus(const String& plate_name, bool to_check);
210  bool IsChecked(const String& plate_name) const;
211 
225  common::Bitmap GeneratePreviewBitmap(const PDFPage& page, const Matrix& matrix, const common::Renderer& renderer);
226 
227  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
228  explicit OutputPreview(FS_HANDLE handle = NULL);
229 
230 };
231 } // namespace pdf
232 } // namespace foxit
233 #endif // FS_OUTPUTPREVIEW_H_
234 
Colorant type: process.
Definition: fs_outputpreview.h:101
If set, only show with Calibrated.
Definition: fs_outputpreview.h:75
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:36
If set, only show with CalGray.
Definition: fs_outputpreview.h:73
Header file for PDF document related definitions and classes.
If set, only show with DeviceCMYK.
Definition: fs_outputpreview.h:47
If set, only show with DeviceRGB.
Definition: fs_outputpreview.h:65
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:59
If set, show all.
Definition: fs_outputpreview.h:45
WIDE STRING CLASS.
Definition: fx_string.h:1452
bool operator==(const OutputPreview &other) const
Equal operator.
Definition: fs_pdfdoc.h:389
If set, only show registration color.
Definition: fs_outputpreview.h:87
OutputPreview & operator=(const OutputPreview &other)
Assign operator.
ShowType
Enumeration for show type.
Definition: fs_outputpreview.h:43
If set, only show with Device.
Definition: fs_outputpreview.h:79
Definition: fs_render.h:70
If set, only show text.
Definition: fs_outputpreview.h:89
If set, only show with RGB.
Definition: fs_outputpreview.h:63
If set, only show with CMYK.
Definition: fs_outputpreview.h:61
StringArray GetPlates(ColorantType colorant_type)
Get Separations plates.
If set, only show with Lab.
Definition: fs_outputpreview.h:77
Colorant type: spot.
Definition: fs_outputpreview.h:103
If set, only show with DeviceCMYK or spot.
Definition: fs_outputpreview.h:57
OutputPreview(const PDFDoc &pdf_doc)
Constructor, with parameters.
If set, only show smooth shades.
Definition: fs_outputpreview.h:85
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:55
Definition: fs_pdfpage.h:367
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
Definition: fs_basictypes.h:397
Definition: fs_basictypes.h:226
If set, only show solid color.
Definition: fs_outputpreview.h:83
If set, only show images.
Definition: fs_outputpreview.h:81
If set, only show with ICCBased CMYK.
Definition: fs_outputpreview.h:51
If set, only show with DeviceGray.
Definition: fs_outputpreview.h:71
If set, only show with ICCBased RGB.
Definition: fs_outputpreview.h:67
Foxit namespace.
Definition: fs_compare.h:27
BYTE STRING CLASS.
Definition: fx_string.h:317
If set, only show line art.
Definition: fs_outputpreview.h:91
If set, only show with spot color.
Definition: fs_outputpreview.h:53
#define NULL
The null-pointer value.
Definition: fx_system.h:767
Definition: fx_coordinates.h:1076
ColorantType
Enumeration for colorant type.
Definition: fs_outputpreview.h:99
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:69
If set, only show without DeviceCMYK.
Definition: fs_outputpreview.h:49