My Project
fs_common.h
Go to the documentation of this file.
1 
15 #ifndef FS_COMMON_H_
16 #define FS_COMMON_H_
17 
18 #include "common/fs_basictypes.h"
19 
25 namespace foxit {
26 class ActionCallback;
27 namespace common {
28 class DocEventCallback;
29 } // namespace common
30 namespace pdf {
31 namespace annots {
33 } // namespace annots
34 class PDFDoc;
35 class SignatureCallback;
36 class SecurityCallback;
37 } // namespace pdf
38 namespace addon {
39 namespace xfa {
40 class AppProviderCallback;
41 } // namespace xfa
42 } // namespace addon
43 
47 namespace common {
48 #if defined(_SWIG_ANDROID_) || defined(_SWIG_JAVA_)
49 
50 class Constants {
51  public:
57  typedef enum _Rotation {
59  e_Rotation0 = 0,
61  e_Rotation90 = 1,
63  e_Rotation180 = 2,
65  e_Rotation270 = 3,
68  } Rotation;
69 
75  typedef enum _Alignment {
77  e_AlignmentLeft = 0,
82  } Alignment;
83 
89  typedef enum _FillMode {
91  e_FillModeNone = 0,
102  } FillMode;
103 
109  typedef enum _Position {
111  e_PosTopLeft = 0,
113  e_PosTopCenter = 1,
115  e_PosTopRight = 2,
117  e_PosCenterLeft = 3,
119  e_PosCenter = 4,
121  e_PosCenterRight = 5,
123  e_PosBottomLeft = 6,
125  e_PosBottomCenter = 7,
127  e_PosBottomRight = 8
128  } Position;
129 
130 };
131 #else
132 #if defined(__ANDROID__) || defined(_JAVA_)
133 
134 class Constants {
135  public:
141  typedef enum _Rotation {
143  e_Rotation0 = 0,
145  e_Rotation90 = 1,
147  e_Rotation180 = 2,
149  e_Rotation270 = 3,
152  } Rotation;
153 
159  typedef enum _Alignment {
161  e_AlignmentLeft = 0,
163  e_AlignmentCenter = 1,
165  e_AlignmentRight = 2
166  } Alignment;
167 
173  typedef enum _FillMode {
175  e_FillModeNone = 0,
186  } FillMode;
187 
193  typedef enum _Position {
195  e_PosTopLeft = 0,
197  e_PosTopCenter = 1,
199  e_PosTopRight = 2,
201  e_PosCenterLeft = 3,
203  e_PosCenter = 4,
205  e_PosCenterRight = 5,
207  e_PosBottomLeft = 6,
209  e_PosBottomCenter = 7,
211  e_PosBottomRight = 8
212  } Position;
213 
214 };
215 #endif
216 
221 typedef enum _Rotation {
232 } Rotation;
233 
239 typedef enum _Alignment {
246 } Alignment;
247 
253 typedef enum _FillMode {
266 } FillMode;
267 
273 typedef enum _Position {
292 } Position;
293 
294 #endif
295 
296 #define CommonDefines foxit::common
297 
303 class Codec FS_FINAL : public Base {
304  public:
313  static String Base64Encode(const void* data_buffer, size_t length);
314 
323  static String Base64Decode(const void* encoded_data_buffer, size_t length);
324 
333  static String FlateCompress(const void* data_buffer, size_t length);
334 
343  static String FlateDecompress(const void* compressed_data_buffer, size_t length);
344 };
345 
355  public:
361  virtual void Release() = 0;
362 
375  virtual void OnOutOfMemory() = 0;
376 
377  protected:
378  ~NotifierCallback() {}
379 };
380 
385 class Progressive FS_FINAL : public Base {
386  public:
392  typedef enum _State {
394  e_Error = 0,
399  } State;
400 
406  Progressive(const Progressive& other);
408  ~Progressive();
409 
417  Progressive& operator = (const Progressive& other);
418 
427  State Continue();
428 
435  int GetRateOfProgress();
436 
437  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
438  explicit Progressive(FS_HANDLE handle = NULL);
439 };
440 
451 class Library FS_FINAL : public Object {
452  public:
466  static ErrorCode Initialize(const char* sn, const char* key);
467 
476  static ErrorCode Reinitialize();
477 
487  static void Release();
488 
494  static String GetVersion();
495 
507  static bool SetCacheSize(uint32 size);
508 
520  static bool EnableJavaScript(bool enable_javascript);
521 
544  static bool SetAnnotIconProviderCallback(pdf::annots::IconProviderCallback* annot_icon_provider);
545 
557  static bool SetNotifierCallback(NotifierCallback* notifier);
558 
573  static bool SetActionCallback(ActionCallback* action_callback);
574 
583  static bool SetDocEventCallback(DocEventCallback* callback);
584 
615  static bool RegisterSignatureCallback(const char* filter, const char* sub_filter,
616  pdf::SignatureCallback* signature_callback);
617 
652  static bool RegisterSecurityCallback(const char* filter, pdf::SecurityCallback* callback);
653 
672  static bool UnregisterSecurityCallback(const char* filter);
673 
674  #ifndef _FX_NO_XFA_
675 
693  #endif
694 
704  static void SetRenderTextGamma(float gamma);
705 
716  static void* Alloc(size_t size);
717 
725  static void Free(void* ptr);
726 
738  static void* Realloc(void* ptr, size_t new_size);
739 
750  static void SetLogFile(const char* log_file_path);
751 
762  static void SetLogFile(const wchar_t* log_file_path);
763 
764  private:
765  Library(const Library&);
766  Library& operator = (const Library&);
767 };
769 class GraphState FS_FINAL : public Object {
770  public:
777  typedef enum _LineCapStyle {
793  } LineCapStyle;
794 
801  typedef enum _LineJoinStyle {
819  } LineJoinStyle;
820 
821 
837  this->line_width = line_width;
838  this->line_join = line_join;
839  this->miter_limit = miter_limit;
840  this->line_cap = line_cap;
841  this->dash_phase = dash_phase;
842  this->dashes = dashes;
843  }
844 
847  : line_width(1.0f)
849  , miter_limit(10*1.0f)
851  , dash_phase(0) {}
852 
855 
861  GraphState(const GraphState& state) {
862  this->line_width = state.line_width;
863  this->line_join = state.line_join;
864  this->miter_limit = state.miter_limit;
865  this->line_cap = state.line_cap;
866  this->dash_phase = state.dash_phase;
867  this->dashes = state.dashes;
868  }
869 
878  this->line_width = state.line_width;
879  this->line_join = state.line_join;
880  this->miter_limit = state.miter_limit;
881  this->line_cap = state.line_cap;
882  this->dash_phase = state.dash_phase;
883  this->dashes = state.dashes;
884  return *this;
885  }
886 
903  const FloatArray& dashes) {
904  this->line_width = line_width;
905  this->line_join = line_join;
906  this->miter_limit = miter_limit;
907  this->line_cap = line_cap;
908  this->dash_phase = dash_phase;
909  this->dashes = dashes;
910  }
911 
918  float line_width;
936  float miter_limit;
945 
947  float dash_phase;
948 
953 };
954 
961 
968  public:
974  virtual void Release() = 0;
975 
981  virtual void OnDocWillOpen() {}
982 
993  virtual void OnDocOpened(const pdf::PDFDoc& document, ErrorCode error_code) {}
994 
1002  virtual void OnDocWillDestroy(const pdf::PDFDoc& document) {}
1003 
1011  virtual void OnDocWillSave(const pdf::PDFDoc& document) {}
1012 
1023  virtual void OnDocSaved(const pdf::PDFDoc& document, ErrorCode error_code) {}
1024 
1025  protected:
1026  ~DocEventCallback() {}
1027 };
1028 
1033 class Range FS_FINAL : public Base {
1034  public:
1040  typedef enum _Filter {
1042  e_All = 0,
1044  e_Even = 1,
1046  e_Odd = 2
1047  } Filter;
1048 
1050  Range();
1051 
1057  explicit Range(int index);
1058 
1071  explicit Range(int start_index, int end_index, Filter filter = e_All);
1072 
1078  Range(const Range& other);
1079 
1081  ~Range();
1082 
1090  Range& operator = (const Range& other);
1091 
1099  bool operator == (const Range& other) const;
1100 
1108  bool operator != (const Range& other) const;
1109 
1117  bool IsEmpty() const;
1118 
1124  void AddSingle( int index );
1125 
1140  void AddSegment( int start_index, int end_index, Filter filter = e_All );
1141 
1147  int GetSegmentCount() const;
1148 
1157  int GetSegmentStart(int segment_index) const;
1158 
1167  int GetSegmentEnd(int segment_index) const;
1168 
1174  void RemoveAll();
1175 
1176  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1177  explicit Range(FS_HANDLE handle);
1178 };
1179 
1188 class Font FS_FINAL : public Base {
1189  public:
1195  typedef enum _Styles {
1199  e_StyleSerif = 0x0002,
1203  e_StyleScript = 0x0008,
1207  e_StyleItalic = 0x0040,
1209  e_StyleAllCap = 0x10000,
1211  e_StylesSmallCap = 0x20000,
1213  e_StylesBold = 0x40000
1214  } Styles;
1215 
1221  typedef enum _Charset {
1252  } Charset;
1253 
1259  typedef enum _StandardID {
1288  } StandardID;
1289 
1302  Font(const wchar_t* name, uint32 styles, Charset charset, int weight = 0);
1303 
1310  explicit Font(StandardID font_id);
1311 
1321  Font(const char* font_file_path, int face_index, Charset charset);
1322 
1332  Font(const wchar_t* font_file_path, int face_index, Charset charset);
1333 
1334  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1335  explicit Font(FS_HANDLE handle = NULL);
1336 
1342  Font(const Font& other);
1343 
1351  Font& operator = (const Font& other);
1352 
1360  bool operator == (const Font& other) const;
1361 
1369  bool operator != (const Font& other) const;
1370 
1378  bool IsEmpty() const;
1379 
1381  ~Font();
1382 
1388  WString GetName();
1389 
1395  bool IsBold() const;
1396 
1402  bool IsItalic() const;
1403 
1411  bool IsEmbedded(const pdf::PDFDoc& document);
1412 
1421  bool IsSupportEmbedded(const pdf::PDFDoc& document);
1422 
1430  Font Embed(pdf::PDFDoc document);
1431 
1437  int GetAscent() const;
1438 
1444  int GetDescent() const;
1445 
1453  RectI GetCharBBox(uint32 unicode) const;
1454 
1462  float GetCharWidth(uint32 unicode) const;
1463 
1464 };
1465 
1467 class Path FS_FINAL : public Base {
1468  public:
1474  typedef enum _PointType {
1493  } PointType;
1494 
1496  Path();
1498  ~Path();
1504  Path(const Path& other);
1512  Path& operator=(const Path& other);
1520  bool operator ==(const Path& other) const;
1528  bool operator != (const Path& other) const;
1529 
1537  bool IsEmpty() const;
1538 
1544  int GetPointCount();
1545 
1554  PointF GetPoint(int index);
1555 
1565  PointType GetPointType(int index);
1566 
1578  bool SetPoint(int index, const PointF& point, PointType type);
1579 
1590  bool MoveTo(const PointF& point);
1591 
1601  bool LineTo(const PointF& point);
1602 
1615  bool CubicBezierTo(const PointF& point1, const PointF& point2, const PointF& point3);
1616 
1636  bool CloseFigure();
1637 
1646  bool RemovePoint(int index);
1647 
1655  bool AppendRect(const RectF& rect);
1656 
1664  bool AppendEllipse(const RectF& rect);
1665 
1673  void Transform(const Matrix& matrix);
1679  void Clear();
1680 
1681  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1682  explicit Path(FS_HANDLE handle);
1683 };
1684 } // namespace common
1685 } // namespace foxit
1686 
1687 #endif // FS_COMMON_H_
1688 
Font charset: ANSI (United States, Western Europe).
Definition: fs_common.h:1223
LineCapStyle
Enumeration for line cap style.
Definition: fs_common.h:777
Standard font: Times-BoldItalic.
Definition: fs_common.h:1281
void Transform(const Matrix &matrix)
Transform all points in current path with a given matrix.
bool AppendRect(const RectF &rect)
Add a rectangle figure to the end of current path.
Position center left.
Definition: fs_common.h:281
Winding fill mode, in which the system uses a direction in which a figure is drawn to determine wheth...
Definition: fs_common.h:265
PointType GetPointType(int index)
Get the type of a point specified by index.
bool LineTo(const PointF &point)
Add a point to the end of current figure, and a line is to be drawn from current point to the new poi...
Font & operator=(const Font &other)
Assign operator.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
bool CubicBezierTo(const PointF &point1, const PointF &point2, const PointF &point3)
Add a cubic bezier spline to the end of current figure, by three points: two control points and one t...
int GetAscent() const
Get the ascent value, in 1/1000 of em size (PDF units).
Font charset: Turkish.
Definition: fs_common.h:1245
Definition: fs_actioncallback.h:142
Font charset: Eastern European.
Definition: fs_common.h:1239
LineJoinStyle
Enumeration for line join style.
Definition: fs_common.h:801
static bool RegisterSecurityCallback(const char *filter, pdf::SecurityCallback *callback)
Register a pdf::SecurityCallback object to Foxit PDF SDK for decryption of the PDFs with special encr...
bool operator !=(const Path &other) const
Not equal operator.
bool IsEmbedded(const pdf::PDFDoc &document)
Judge whether current font is embedded in a specified PDF document or not.
StandardID
Enumeration for standard font ID.
Definition: fs_common.h:1259
Fill mode: none.
Definition: fs_common.h:255
Font charset: Arabic.
Definition: fs_common.h:1249
Definition: fs_common.h:967
Font charset: Russian.
Definition: fs_common.h:1241
LineCapStyle line_cap
Line cap style.
Definition: fs_common.h:944
void AddSegment(int start_index, int end_index, Filter filter=e_All)
Add a new range segment. (Reverse ordering is legal.)
~Range()
Destructor.
Position
Enumeration for watermark position in a PDF page.
Definition: fs_common.h:273
Font charset: Traditional Chinese.
Definition: fs_common.h:1235
bool IsEmpty() const
Check whether current object is empty or not.
static bool SetDocEventCallback(DocEventCallback *callback)
Set a DocEventCallback object to Foxit PDF SDK.
Rotate 90 degrees in clockwise direction.
Definition: fs_common.h:225
CFX_Object Object
Object type.
Definition: fs_basictypes.h:219
Definition: fs_common.h:769
Standard font: Courier-Bold.
Definition: fs_common.h:1263
No rotation.
Definition: fs_common.h:223
Definition: fs_common.h:385
Font style: small cap.
Definition: fs_common.h:1211
Position: bottom left.
Definition: fs_common.h:287
static void * Alloc(size_t size)
Allocate a memory block.
PointType
Enumeration for point type in path.
Definition: fs_common.h:1474
Standard font: Times-Italic.
Definition: fs_common.h:1283
bool CloseFigure()
Close current figure (which is also the last figure in current path).
GraphState & operator=(const GraphState &state)
Assign operator.
Definition: fs_common.h:877
Font style: all cap.
Definition: fs_common.h:1209
Range()
Constructor.
virtual void OnOutOfMemory()=0
A callback function used to notify application when Foxit PDF SDK runs out of memory.
int GetRateOfProgress()
Get the rate of current progress.
Standard font: Courier-Oblique, Italic.
Definition: fs_common.h:1267
Definition: fs_common.h:451
Definition: fs_common.h:354
bool IsItalic() const
Judge whether current font object is italic or not.
bool operator !=(const Range &other) const
Not equal operator.
Right alignment.
Definition: fs_common.h:245
PointF GetPoint(int index)
Get a point specified by index.
void AddSingle(int index)
Add an index as a new range segment.
static String FlateDecompress(const void *compressed_data_buffer, size_t length)
Decompress the compressed data buffer by DEFLATE algorithm.
WString GetName()
Retrieve the face name.
virtual void OnDocOpened(const pdf::PDFDoc &document, ErrorCode error_code)
Triggered when a PDF document is opened.
Definition: fs_common.h:993
static String Base64Encode(const void *data_buffer, size_t length)
Encode the source data buffer by Base64 algorithm.
Standard font: Helvetica-Oblique, Italic.
Definition: fs_common.h:1275
void RemoveAll()
Remove all range segments.
float miter_limit
The miter limit for line join.
Definition: fs_common.h:936
bool IsEmpty() const
Check whether current object is empty or not.
Alignment
Enumeration for alignment (horizontal).
Definition: fs_common.h:239
GraphState(float line_width, LineJoinStyle line_join, float miter_limit, LineCapStyle line_cap, float dash_phase, const FloatArray &dashes)
Constructor, with parameters.
Definition: fs_common.h:835
Font style: force bold.
Definition: fs_common.h:1213
Font charset: Korean (Wansung).
Definition: fs_common.h:1231
static bool RegisterSignatureCallback(const char *filter, const char *sub_filter, pdf::SignatureCallback *signature_callback)
Register a third-party pdf::SignatureCallback object to Foxit PDF SDK for signing and verifying signa...
Font Embed(pdf::PDFDoc document)
Embed current font to the specified PDF document.
static ErrorCode Initialize(const char *sn, const char *key)
Initialize Foxit PDF SDK Library, with valid license information.
Rotate 270 degrees in clockwise direction.
Definition: fs_common.h:229
Font charset: Japanese (Shift-JIS).
Definition: fs_common.h:1229
Font charset: Simplified Chinese.
Definition: fs_common.h:1233
Font style: symbolic.
Definition: fs_common.h:1201
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:236
Header file for basic types definitions.
bool operator==(const Path &other) const
Equal operator.
static void SetLogFile(const char *log_file_path)
Set the log file path.
Definition: fs_common.h:303
float dash_phase
Dash phase for dash pattern.
Definition: fs_common.h:947
Left alignment.
Definition: fs_common.h:241
Progressive & operator=(const Progressive &other)
Assign operator.
bool IsSupportEmbedded(const pdf::PDFDoc &document)
Check whether current font is supported to be embedded to the specified PDF document or not.
static void SetRenderTextGamma(float gamma)
Set gamma value for text rendering.
Definition: fs_common.h:1467
Round line join type.
Definition: fs_common.h:812
Center alignment.
Definition: fs_common.h:243
static bool SetCacheSize(uint32 size)
Set the upper limit of PDF library cache size.
virtual void Release()=0
A callback function used to release current callback object itself.
Font style: italic.
Definition: fs_common.h:1207
float GetCharWidth(uint32 unicode) const
Get the width (in 1/1000 of em size (PDF units)) of a character specified by unicode.
int GetSegmentStart(int segment_index) const
Get the start index of a specified range segment.
RectI GetCharBBox(uint32 unicode) const
Get the bounding box of a character specified by unicode.
Position: bottom right.
Definition: fs_common.h:291
virtual void OnDocWillDestroy(const pdf::PDFDoc &document)
Triggered when a PDF document will be destroyed.
Definition: fs_common.h:1002
int GetSegmentEnd(int segment_index) const
Get the end index of a specified range segment.
Standard font: Times-Roman.
Definition: fs_common.h:1277
Position: center.
Definition: fs_common.h:283
bool operator==(const Range &other) const
Equal operator.
Position: top left.
Definition: fs_common.h:275
bool SetPoint(int index, const PointF &point, PointType type)
Change the value and type of a point specified by index.
Only odd numbers in a range will be used (discards even numbers).
Definition: fs_common.h:1046
bool AppendEllipse(const RectF &rect)
Add an ellipse figure to the end of current path.
void Set(float line_width, LineJoinStyle line_join, float miter_limit, LineCapStyle line_cap, float dash_phase, const FloatArray &dashes)
Set value.
Definition: fs_common.h:902
virtual void OnDocWillSave(const pdf::PDFDoc &document)
Triggered when a PDF document will be saved.
Definition: fs_common.h:1011
Definition: fs_security.h:1190
Round cap. A semicircular arc with a diameter equal to the line width is drawn around the endpoint an...
Definition: fs_common.h:787
Charset
Enumeration for font charset.
Definition: fs_common.h:1221
Position: top center.
Definition: fs_common.h:277
BYTE STRING CLASS.
Definition: fx_string.h:317
void Clear()
Clear all points.
Indicates that this point is a control point or ending point for a Bezier spline.
Definition: fs_common.h:1486
Font style: script.
Definition: fs_common.h:1203
Standard font: Helvetica.
Definition: fs_common.h:1269
Font(const wchar_t *name, uint32 styles, Charset charset, int weight=0)
Constructor, with given attribute.
Indicates that a line is drawn from the previous point to this point, and this point will also be con...
Definition: fs_common.h:1484
Definition: fx_coordinates.h:30
static void Release()
Release all resource allocated by Foxit PDF SDK Library.
Alternate fill mode, in which the system fills this area between odd-numbered and even-numbered polyg...
Definition: fs_common.h:260
bool operator !=(const Font &other) const
Not equal operator.
Path & operator=(const Path &other)
Assign operator.
Rotation
Enumeration for rotation.
Definition: fs_common.h:221
static String Base64Decode(const void *encoded_data_buffer, size_t length)
Decode the encoded data buffer by Base64 algorithm.
Unknown rotation.
Definition: fs_common.h:231
int GetPointCount()
Get the count of points.
Indicates that a line is drawn from the previous point to this point.
Definition: fs_common.h:1478
Font style: fixed pitch.
Definition: fs_common.h:1197
FillMode
Enumeration for filling mode type, mainly for path graphics object.
Definition: fs_common.h:253
static void RegisterXFAAppProviderCallback(addon::xfa::AppProviderCallback *callback)
Register an addon::xfa::AppProviderCallback object to Foxit PDF SDK.
static bool EnableJavaScript(bool enable_javascript)
Enable or disable javascript for PDF.
Styles
Enumeration for font styles.
Definition: fs_common.h:1195
Font charset: Hebrew.
Definition: fs_common.h:1247
FloatArray dashes
A dash array that represents the dash patterns. Value of each element in this array should not be neg...
Definition: fs_common.h:952
Foxit namespace.
Definition: fs_connectedpdf.h:26
~GraphState()
Destructor.
Definition: fs_common.h:854
Range & operator=(const Range &other)
Assign operator.
Font style: serif.
Definition: fs_common.h:1199
Progress state: any error occurs.
Definition: fs_common.h:394
Font charset: Baltic.
Definition: fs_common.h:1251
Font charset: Greek.
Definition: fs_common.h:1243
Standard font: Courier.
Definition: fs_common.h:1261
float line_width
Line width.
Definition: fs_common.h:918
Definition: fx_basic.h:3690
Font style: non-symbolic.
Definition: fs_common.h:1205
Bevel line join type.
Definition: fs_common.h:818
Standard font: Helvetica-Bold.
Definition: fs_common.h:1271
Progressive(const Progressive &other)
Constructor, with another progressive object.
Standard font: ZapfDingbats.
Definition: fs_common.h:1287
static String FlateCompress(const void *data_buffer, size_t length)
Compress the source data buffer by DEFLATE algorithm.
static bool SetActionCallback(ActionCallback *action_callback)
Set a foxit::ActionCallback object to Foxit PDF SDK, in aid of performing PDF actions.
virtual void Release()=0
A callback function used to release current callback object itself.
GraphState()
Constructor.
Definition: fs_common.h:846
All the indexes within a range will be used.
Definition: fs_common.h:1042
#define NULL
The null-pointer value.
Definition: fx_system.h:773
Position: bottom center.
Definition: fs_common.h:289
Butt cap. The stroke is squared off at the endpoint of a path. There is no projection beyond the end ...
Definition: fs_common.h:782
Definition: fx_coordinates.h:763
Font charset: Thai.
Definition: fs_common.h:1237
static String GetVersion()
Get the version of current Foxit PDF SDK library.
Definition: fs_pdfdoc.h:338
Projecting square cap. The stroke continues beyond the endpoint of the path for a distance equal to h...
Definition: fs_common.h:792
static bool UnregisterSecurityCallback(const char *filter)
Unregister a pdf::SecurityCallback object from Foxit PDF SDK.
Definition: fs_annot.h:1421
Indicates that this point is the ending point for a Bezier spline, and this point will also be connec...
Definition: fs_common.h:1492
State
Enumeration for progress state.
Definition: fs_common.h:392
Position: top right.
Definition: fs_common.h:279
Miter line join type.
Definition: fs_common.h:806
bool MoveTo(const PointF &point)
Add a point to the end of current path, to start a new figure.
Only even numbers in a range will be used (discards odd numbers).
Definition: fs_common.h:1044
Standard font: Symbol.
Definition: fs_common.h:1285
Rotate 180 degrees in clockwise direction.
Definition: fs_common.h:227
State Continue()
Continue the progressive process.
Font charset: Standard symbols.
Definition: fs_common.h:1227
Progress state: progress needs to be continued.
Definition: fs_common.h:396
Definition: fx_coordinates.h:594
~Path()
Destructor.
int GetDescent() const
Get the descent value, in 1/1000 of em size (PDF units).
Definition: fs_common.h:1188
static void * Realloc(void *ptr, size_t new_size)
Reallocate a memory block.
static bool SetNotifierCallback(NotifierCallback *notifier)
Set a NotifierCallback object to Foxit PDF SDK.
Definition: fx_coordinates.h:1053
static void Free(void *ptr)
Free a memory block.
int GetSegmentCount() const
Get the count of range segments.
bool RemovePoint(int index)
Remove a point specified by index.
bool IsBold() const
Judge whether current font is bold or not.
static bool SetAnnotIconProviderCallback(pdf::annots::IconProviderCallback *annot_icon_provider)
Set a customized pdf::annots::IconProviderCallback object to Foxit PDF SDK.
Progress state: progress is finished.
Definition: fs_common.h:398
Font charset: System default, for unknown or mapping purpose.
Definition: fs_common.h:1225
static ErrorCode Reinitialize()
Reinitialize Foxit PDF SDK Library.
Definition: fs_signature.h:782
WIDE STRING CLASS.
Definition: fx_string.h:1470
Position: center right.
Definition: fs_common.h:285
Definition: fs_common.h:1033
Filter
Enumeration for range filter.
Definition: fs_common.h:1040
virtual void OnDocSaved(const pdf::PDFDoc &document, ErrorCode error_code)
Triggered when a PDF document is saved.
Definition: fs_common.h:1023
bool IsEmpty() const
Check whether current object is empty or not.
GraphState(const GraphState &state)
Constructor, with another graph state object.
Definition: fs_common.h:861
Standard font: Times-Bold.
Definition: fs_common.h:1279
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:198
~Font()
Destructor.
Standard font: Courier-BoldOblique, Bold italic.
Definition: fs_common.h:1265
Definition: fs_basictypes.h:342
Standard font: Helvetica-BoldOblique, Bold italic.
Definition: fs_common.h:1273
bool operator==(const Font &other) const
Equal operator.
IFX_Pause PauseCallback
Definition: fs_common.h:960
LineJoinStyle line_join
Line join style.
Definition: fs_common.h:926
Path()
Constructor.
Indicates that the point is the first point of a figure.
Definition: fs_common.h:1476
virtual void OnDocWillOpen()
Triggered when the document will be opened.
Definition: fs_common.h:981

Foxit Software Corporation Logo
@2019 Foxit Software Incorporated. All rights reserved.