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 class Constants {
50  public:
56  typedef enum _Rotation {
58  e_Rotation0 = 0,
60  e_Rotation90 = 1,
62  e_Rotation180 = 2,
64  e_Rotation270 = 3,
67  } Rotation;
68 
74  typedef enum _Alignment {
76  e_AlignmentLeft = 0,
81  } Alignment;
82 
88  typedef enum _FillMode {
90  e_FillModeNone = 0,
101  } FillMode;
102 
108  typedef enum _Position {
110  e_PosTopLeft = 0,
112  e_PosTopCenter = 1,
114  e_PosTopRight = 2,
116  e_PosCenterLeft = 3,
118  e_PosCenter = 4,
120  e_PosCenterRight = 5,
122  e_PosBottomLeft = 6,
124  e_PosBottomCenter = 7,
126  e_PosBottomRight = 8
127  } Position;
128 
129 };
130 #else
131 #if defined(__ANDROID__) || defined(_JAVA_)
132 class Constants {
133  public:
139  typedef enum _Rotation {
141  e_Rotation0 = 0,
143  e_Rotation90 = 1,
145  e_Rotation180 = 2,
147  e_Rotation270 = 3,
150  } Rotation;
151 
157  typedef enum _Alignment {
159  e_AlignmentLeft = 0,
161  e_AlignmentCenter = 1,
163  e_AlignmentRight = 2
164  } Alignment;
165 
171  typedef enum _FillMode {
173  e_FillModeNone = 0,
184  } FillMode;
185 
191  typedef enum _Position {
193  e_PosTopLeft = 0,
195  e_PosTopCenter = 1,
197  e_PosTopRight = 2,
199  e_PosCenterLeft = 3,
201  e_PosCenter = 4,
203  e_PosCenterRight = 5,
205  e_PosBottomLeft = 6,
207  e_PosBottomCenter = 7,
209  e_PosBottomRight = 8
210  } Position;
211 
212 };
213 #endif
214 
219 typedef enum _Rotation {
230 } Rotation;
231 
237 typedef enum _Alignment {
244 } Alignment;
245 
251 typedef enum _FillMode {
264 } FillMode;
265 
271 typedef enum _Position {
290 } Position;
291 
292 #endif
293 
294 #define CommonDefines foxit::common
295 
301 class Codec FS_FINAL : public Base {
302  public:
311  static String Base64Encode(const void* data_buffer, size_t length);
312 
321  static String Base64Decode(const void* encoded_data_buffer, size_t length);
322 
331  static String FlateCompress(const void* data_buffer, size_t length);
332 
341  static String FlateDecompress(const void* compressed_data_buffer, size_t length);
342 };
343 
352  public:
358  virtual void Release() = 0;
359 
372  virtual void OnOutOfMemory() = 0;
373 
374  protected:
375  ~NotifierCallback() {}
376 };
377 
382 class Progressive FS_FINAL : public Base {
383  public:
389  typedef enum _State {
391  e_Error = 0,
396  } State;
397 
399  Progressive(const Progressive&);
401  ~Progressive();
402 
410  Progressive& operator = (const Progressive& other);
411 
420  State Continue();
421 
428  int GetRateOfProgress();
429 
430  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
431  explicit Progressive(FS_HANDLE handle = NULL);
432 };
433 
444 class Library FS_FINAL : public Object {
445  public:
459  static ErrorCode Initialize(const char* sn, const char* key);
460 
469  static ErrorCode Reinitialize();
470 
480  static void Release();
481 
487  static String GetVersion();
488 
500  static bool SetCacheSize(uint32 size);
501 
513  static bool EnableJavaScript(bool enable_javascript);
514 
537  static bool SetAnnotIconProviderCallback(pdf::annots::IconProviderCallback* annot_icon_provider);
538 
550  static bool SetNotifierCallback(NotifierCallback* notifier);
551 
566  static bool SetActionCallback(ActionCallback* action_callback);
567 
576  static bool SetDocEventCallback(DocEventCallback* callback);
577 
608  static bool RegisterSignatureCallback(const char* filter, const char* sub_filter,
609  pdf::SignatureCallback* signature_callback);
610 
644  static bool RegisterSecurityCallback(const char* filter, pdf::SecurityCallback* callback);
645 
664  static bool UnregisterSecurityCallback(const char* filter);
665 
684 
694  static void SetRenderTextGamma(float gamma);
695 
706  static void* Alloc(size_t size);
707 
715  static void Free(void* ptr);
716 
728  static void* Realloc(void* ptr, size_t new_size);
729 
740  static void SetLogFile(const char* log_file_path);
741 
752  static void SetLogFile(const wchar_t* log_file_path);
753 
754  private:
755  Library(const Library&);
756  Library& operator = (const Library&);
757 };
759 class GraphState FS_FINAL : public Object {
760  public:
767  typedef enum _LineCapStyle {
783  } LineCapStyle;
784 
791  typedef enum _LineJoinStyle {
812  } LineJoinStyle;
813 
814 
830  this->line_width = line_width;
831  this->line_join = line_join;
832  this->miter_limit = miter_limit;
833  this->line_cap = line_cap;
834  this->dash_phase = dash_phase;
835  this->dashes = dashes;
836  }
837 
840  : line_width(1.0f)
842  , miter_limit(10*1.0f)
844  , dash_phase(0) {}
845 
848 
854  GraphState(const GraphState& state) {
855  this->line_width = state.line_width;
856  this->line_join = state.line_join;
857  this->miter_limit = state.miter_limit;
858  this->line_cap = state.line_cap;
859  this->dash_phase = state.dash_phase;
860  this->dashes = state.dashes;
861  }
862 
871  this->line_width = state.line_width;
872  this->line_join = state.line_join;
873  this->miter_limit = state.miter_limit;
874  this->line_cap = state.line_cap;
875  this->dash_phase = state.dash_phase;
876  this->dashes = state.dashes;
877  return *this;
878  }
879 
896  const FloatArray& dashes) {
897  this->line_width = line_width;
898  this->line_join = line_join;
899  this->miter_limit = miter_limit;
900  this->line_cap = line_cap;
901  this->dash_phase = dash_phase;
902  this->dashes = dashes;
903  }
904 
911  float line_width;
929  float miter_limit;
938 
940  float dash_phase;
941 
946 };
947 
954 
961  public:
967  virtual void Release() = 0;
968 
974  virtual void OnDocWillOpen() {}
975 
986  virtual void OnDocOpened(const pdf::PDFDoc& document, ErrorCode error_code) {}
987 
995  virtual void OnDocWillDestroy(const pdf::PDFDoc& document) {}
996 
1004  virtual void OnDocWillSave(const pdf::PDFDoc& document) {}
1005 
1016  virtual void OnDocSaved(const pdf::PDFDoc& document, ErrorCode error_code) {}
1017 
1018  protected:
1019  ~DocEventCallback() {}
1020 };
1021 
1026 class Range FS_FINAL : public Base {
1027  public:
1033  typedef enum _Filter {
1035  e_All = 0,
1037  e_Even = 1,
1039  e_Odd = 2
1040  }Filter;
1042  Range();
1043 
1049  explicit Range(int index);
1050 
1063  explicit Range(int start_index, int end_index, Filter filter = e_All);
1064 
1066  Range(const Range&);
1067 
1069  ~Range();
1070 
1078  Range& operator = (const Range& other);
1079 
1087  bool operator == (const Range& other) const;
1088 
1096  bool operator != (const Range& other) const;
1097 
1105  bool IsEmpty() const;
1106 
1112  void AddSingle( int index );
1113 
1128  void AddSegment( int start_index, int end_index, Filter filter = e_All );
1129 
1135  int GetSegmentCount() const;
1136 
1145  int GetSegmentStart(int segment_index) const;
1146 
1155  int GetSegmentEnd(int segment_index) const;
1156 
1162  void RemoveAll();
1163 
1164  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1165  explicit Range(FS_HANDLE handle);
1166 };
1167 
1176 class Font FS_FINAL : public Base {
1177  public:
1183  typedef enum _Styles {
1187  e_StyleSerif = 0x0002,
1191  e_StyleScript = 0x0008,
1195  e_StyleItalic = 0x0040,
1197  e_StyleAllCap = 0x10000,
1199  e_StylesSmallCap = 0x20000,
1201  e_StylesBold = 0x40000
1202  } Styles;
1203 
1209  typedef enum _Charset {
1240  } Charset;
1241 
1247  typedef enum _StandardID {
1276  } StandardID;
1277 
1290  Font(const wchar_t* name, uint32 styles, Charset charset, int weight = 0);
1291 
1298  explicit Font(StandardID font_id);
1299 
1309  Font(const char* font_file_path, int face_index, Charset charset);
1310 
1320  Font(const wchar_t* font_file_path, int face_index, Charset charset);
1321 
1322  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1323  explicit Font(FS_HANDLE handle = NULL);
1324 
1328  Font(const Font&);
1329 
1337  Font& operator = (const Font& other);
1338 
1346  bool operator == (const Font& other) const;
1347 
1355  bool operator != (const Font& other) const;
1356 
1364  bool IsEmpty() const;
1365 
1367  ~Font();
1368 
1374  WString GetName();
1375 
1381  bool IsBold() const;
1382 
1388  bool IsItalic() const;
1389 
1397  bool IsEmbedded(const pdf::PDFDoc& document);
1398 
1407  bool IsSupportEmbedded(const pdf::PDFDoc& document);
1408 
1416  Font Embed(pdf::PDFDoc document);
1417 
1423  int GetAscent() const;
1424 
1430  int GetDescent() const;
1431 
1439  RectI GetCharBBox(uint32 unicode) const;
1440 
1448  float GetCharWidth(uint32 unicode) const;
1449 
1450 };
1451 
1453 class Path FS_FINAL : public Base {
1454  public:
1460  typedef enum _PointType {
1479  } PointType;
1480 
1482  Path();
1484  ~Path();
1490  Path(const Path& other);
1498  Path& operator=(const Path& other);
1506  bool operator ==(const Path& other) const;
1514  bool operator != (const Path& other) const;
1515 
1523  bool IsEmpty() const;
1524 
1530  int GetPointCount();
1531 
1540  PointF GetPoint(int index);
1541 
1551  PointType GetPointType(int index);
1552 
1564  bool SetPoint(int index, const PointF& point, PointType type);
1565 
1576  bool MoveTo(const PointF& point);
1577 
1587  bool LineTo(const PointF& point);
1588 
1601  bool CubicBezierTo(const PointF& point1, const PointF& point2, const PointF& point3);
1602 
1622  bool CloseFigure();
1623 
1632  bool RemovePoint(int index);
1633 
1641  bool AppendRect(const RectF& rect);
1642 
1650  bool AppendEllipse(const RectF& rect);
1651 
1659  void Transform(const Matrix& matrix);
1665  void Clear();
1666 
1667  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
1668  explicit Path(FS_HANDLE handle);
1669 };
1670 } // namespace common
1671 } // namespace foxit
1672 
1673 #endif // FS_COMMON_H_
1674 
Definition: fs_annot.h:1455
Font style: non-symbolic.
Definition: fs_common.h:1193
Indicates that a line is drawn from the previous point to this point, and this point will also be con...
Definition: fs_common.h:1470
Miter line join type.
Definition: fs_common.h:797
Styles
Enumeration for font styles.
Definition: fs_common.h:1183
LineCapStyle line_cap
Line cap style.
Definition: fs_common.h:937
Standard font: Helvetica-Bold.
Definition: fs_common.h:1259
Font charset: Korean (Wansung).
Definition: fs_common.h:1219
Bevel line join type.
Definition: fs_common.h:811
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:945
Position: center.
Definition: fs_common.h:281
Font charset: Japanese (Shift-JIS).
Definition: fs_common.h:1217
Definition: fs_common.h:1026
bool AppendEllipse(const RectF &rect)
Add an ellipse figure to the end of current path.
Standard font: Times-Bold.
Definition: fs_common.h:1267
static void SetRenderTextGamma(float gamma)
Set gamma value for text rendering.
Alternate fill mode, in which the system fills this area between odd-numbered and even-numbered polyg...
Definition: fs_common.h:258
static void Release()
Release all resource allocated by Foxit PDF SDK Library.
int GetRateOfProgress()
Get the rate of current progress.
Position: bottom right.
Definition: fs_common.h:289
Definition: fs_common.h:301
Position
Enumeration for watermark position in a PDF page.
Definition: fs_common.h:271
Projecting square cap. The stroke continues beyond the endpoint of the path for a distance equal to h...
Definition: fs_common.h:782
PointType GetPointType(int index)
Get the type of a point specified by index.
CFX_Object Object
Object type.
Definition: fs_basictypes.h:216
IFX_Pause PauseCallback
Definition: fs_common.h:953
Definition: fs_common.h:444
Round line join type.
Definition: fs_common.h:804
bool operator!=(const Font &other) const
Not equal operator.
Standard font: Times-BoldItalic.
Definition: fs_common.h:1269
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:828
Unknown rotation.
Definition: fs_common.h:229
bool IsBold() const
Judge whether current font is bold or not.
bool operator!=(const Path &other) const
Not equal operator.
static String Base64Encode(const void *data_buffer, size_t length)
Encode the source data buffer by Base64 algorithm.
Only odd numbers in a range will be used (discards even numbers).
Definition: fs_common.h:1039
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:895
Range & operator=(const Range &other)
Assign operator.
PointF GetPoint(int index)
Get a point specified by index.
bool CloseFigure()
Close current figure (which is also the last figure in current path).
Round cap. A semicircular arc with a diameter equal to the line width is drawn around the endpoint an...
Definition: fs_common.h:777
static bool RegisterSignatureCallback(const char *filter, const char *sub_filter, pdf::SignatureCallback *signature_callback)
Register a third-party SignatureCallback object to Foxit PDF SDK for signing and verifying signature...
Rotate 180 degrees in clockwise direction.
Definition: fs_common.h:225
bool IsSupportEmbedded(const pdf::PDFDoc &document)
Check whether current font is supported to be embedded to the specified PDF document or not...
bool MoveTo(const PointF &point)
Add a point to the end of current path, to start a new figure.
Font style: all cap.
Definition: fs_common.h:1197
Filter
Enumeration for range filter.
Definition: fs_common.h:1033
~Font()
Destructor.
int GetSegmentCount() const
Get the count of range segments.
bool operator==(const Range &other) const
Equal operator.
void Clear()
Clear all points.
WIDE STRING CLASS.
Definition: fx_string.h:1463
GraphState(const GraphState &state)
Constructor, with another GraphState object.
Definition: fs_common.h:854
State
Enumeration for progress state.
Definition: fs_common.h:389
static void RegisterXFAAppProviderCallback(addon::xfa::AppProviderCallback *callback)
Register an xfa::AppProviderCallback object to Foxit PDF SDK.
Standard font: Helvetica.
Definition: fs_common.h:1257
Position: top right.
Definition: fs_common.h:277
Definition: fs_common.h:960
Indicates that the point is the first point of a figure.
Definition: fs_common.h:1462
LineCapStyle
Enumeration for line cap style.
Definition: fs_common.h:767
Font style: script.
Definition: fs_common.h:1191
static ErrorCode Reinitialize()
Reinitialize Foxit PDF SDK Library.
static bool RegisterSecurityCallback(const char *filter, pdf::SecurityCallback *callback)
Register a SecurityCallback object to Foxit PDF SDK for decryption of the PDFs with special encryptio...
Definition: fs_pdfdoc.h:338
static bool SetCacheSize(uint32 size)
Set the upper limit of PDF library cache size.
Progressive(const Progressive &)
Constructor, with another Progressive object.
bool IsEmpty() const
Check whether current object is empty or not.
static ErrorCode Initialize(const char *sn, const char *key)
Initialize Foxit PDF SDK Library, with valid license information.
Font style: italic.
Definition: fs_common.h:1195
static bool SetAnnotIconProviderCallback(pdf::annots::IconProviderCallback *annot_icon_provider)
Set a customized annots::IconProviderCallback object to Foxit PDF SDK.
Progress state: progress needs to be continued.
Definition: fs_common.h:393
GraphState()
Constructor.
Definition: fs_common.h:839
Position: bottom center.
Definition: fs_common.h:287
bool IsEmbedded(const pdf::PDFDoc &document)
Judge whether current font is embedded in a specified PDF document or not.
int GetSegmentEnd(int segment_index) const
Get the end index of a specified range segment.
Definition: fs_signature.h:781
void Transform(const Matrix &matrix)
Transform all points in current path with a given matrix.
Font style: serif.
Definition: fs_common.h:1187
Indicates that a line is drawn from the previous point to this point.
Definition: fs_common.h:1464
Header file for basic types definitions.
LineJoinStyle line_join
Line join style.
Definition: fs_common.h:919
Position center left.
Definition: fs_common.h:279
Definition: fs_actioncallback.h:142
static void SetLogFile(const char *log_file_path)
Set the log file path.
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:233
Only even numbers in a range will be used (discards odd numbers).
Definition: fs_common.h:1037
virtual void OnDocSaved(const pdf::PDFDoc &document, ErrorCode error_code)
Triggered when a PDF document is saved.
Definition: fs_common.h:1016
Font charset: Traditional Chinese.
Definition: fs_common.h:1223
Font(const wchar_t *name, uint32 styles, Charset charset, int weight=0)
Constructor, with given attribute.
Font charset: ANSI (United States, Western Europe).
Definition: fs_common.h:1211
static String FlateDecompress(const void *compressed_data_buffer, size_t length)
Decompress the compressed data buffer by DEFLATE algorithm.
Butt cap. The stroke is squared off at the endpoint of a path. There is no projection beyond the end ...
Definition: fs_common.h:772
Position: center right.
Definition: fs_common.h:283
virtual void Release()=0
A callback function used to release current NotifierCallback object itself.
int GetSegmentStart(int segment_index) const
Get the start index of a specified range segment.
Font charset: Standard symbols.
Definition: fs_common.h:1215
CFX_PointF PointF
Point information, in float.
Definition: fs_basictypes.h:353
Font style: force bold.
Definition: fs_common.h:1201
FillMode
Enumeration for filling mode type, mainly for path graphics object.
Definition: fs_common.h:251
static void * Realloc(void *ptr, size_t new_size)
Reallocate a memory block.
Font style: symbolic.
Definition: fs_common.h:1189
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fx_basic.h:3566
Definition: fs_common.h:759
int GetDescent() const
Get the descent value, in 1/1000 of em size (PDF units).
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...
Standard font: Courier-BoldOblique, Bold italic.
Definition: fs_common.h:1253
Definition: fs_common.h:1453
bool operator==(const Path &other) const
Equal operator.
Font charset: Arabic.
Definition: fs_common.h:1237
LineJoinStyle
Enumeration for line join style.
Definition: fs_common.h:791
Range()
Constructor.
static String FlateCompress(const void *data_buffer, size_t length)
Compress the source data buffer by DEFLATE algorithm.
Font charset: System default, for unknown or mapping purpose.
Definition: fs_common.h:1213
Definition: fs_common.h:382
float line_width
Line width.
Definition: fs_common.h:911
Winding fill mode, in which the system uses a direction in which a figure is drawn to determine wheth...
Definition: fs_common.h:263
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
virtual void OnDocOpened(const pdf::PDFDoc &document, ErrorCode error_code)
Triggered when a PDF document is opened.
Definition: fs_common.h:986
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
virtual void OnDocWillOpen()
Triggered when the document will be opened.
Definition: fs_common.h:974
static bool SetDocEventCallback(DocEventCallback *callback)
Set a DocEventCallback object to Foxit PDF SDK.
Font charset: Russian.
Definition: fs_common.h:1229
bool SetPoint(int index, const PointF &point, PointType type)
Change the value and type of a point specified by index.
static String Base64Decode(const void *encoded_data_buffer, size_t length)
Decode the encoded data buffer by Base64 algorithm.
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...
Progressive & operator=(const Progressive &other)
Assign operator.
bool operator!=(const Range &other) const
Not equal operator.
static bool UnregisterSecurityCallback(const char *filter)
Unregister a SecurityCallback object from Foxit PDF SDK.
~Path()
Destructor.
Definition: fx_coordinates.h:458
Alignment
Enumeration for alignment (horizontal).
Definition: fs_common.h:237
virtual void OnDocWillSave(const pdf::PDFDoc &document)
Triggered when a PDF document will be saved.
Definition: fs_common.h:1004
static bool SetActionCallback(ActionCallback *action_callback)
Set an ActionCallback object to Foxit PDF SDK, in aid of performing PDF actions.
static bool EnableJavaScript(bool enable_javascript)
Enable or disable javascript for PDF.
State Continue()
Continue the progressive process.
~Range()
Destructor.
Definition: fs_basictypes.h:333
bool operator==(const Font &other) const
Equal operator.
Standard font: ZapfDingbats.
Definition: fs_common.h:1275
Standard font: Helvetica-Oblique, Italic.
Definition: fs_common.h:1263
Definition: fs_security.h:1184
void RemoveAll()
Remove all range segments.
int GetPointCount()
Get the count of points.
static String GetVersion()
Get the version of current Foxit PDF SDK library.
Indicates that this point is the ending point for a Bezier spline, and this point will also be connec...
Definition: fs_common.h:1478
Standard font: Times-Roman.
Definition: fs_common.h:1265
Font Embed(pdf::PDFDoc document)
Embed current font to the specified PDF document.
WString GetName()
Retrieve the face name.
Standard font: Symbol.
Definition: fs_common.h:1273
Rotate 270 degrees in clockwise direction.
Definition: fs_common.h:227
Position: bottom left.
Definition: fs_common.h:285
Font style: fixed pitch.
Definition: fs_common.h:1185
Font charset: Simplified Chinese.
Definition: fs_common.h:1221
Standard font: Times-Italic.
Definition: fs_common.h:1271
Path()
Constructor.
Definition: fs_common.h:1176
Fill mode: none.
Definition: fs_common.h:253
Center alignment.
Definition: fs_common.h:241
No rotation.
Definition: fs_common.h:221
Rotation
Enumeration for rotation.
Definition: fs_common.h:219
Foxit namespace.
Definition: fs_connectedpdf.h:26
Left alignment.
Definition: fs_common.h:239
Definition: fs_common.h:351
void AddSingle(int index)
Add an index as a new range segment.
float dash_phase
Dash phase for dash pattern.
Definition: fs_common.h:940
StandardID
Enumeration for standard font ID.
Definition: fs_common.h:1247
All the indexes within a range will be used.
Definition: fs_common.h:1035
BYTE STRING CLASS.
Definition: fx_string.h:317
Progress state: progress is finished.
Definition: fs_common.h:395
Font charset: Hebrew.
Definition: fs_common.h:1235
Charset
Enumeration for font charset.
Definition: fs_common.h:1209
static void Free(void *ptr)
Free a memory block.
Font style: small cap.
Definition: fs_common.h:1199
Font charset: Greek.
Definition: fs_common.h:1231
Rotate 90 degrees in clockwise direction.
Definition: fs_common.h:223
virtual void Release()=0
A callback function used to release current DocEventCallback object itself.
float GetCharWidth(uint32 unicode) const
Get the width (in 1/1000 of em size (PDF units)) of a character specified by unicode.
Standard font: Helvetica-BoldOblique, Bold italic.
Definition: fs_common.h:1261
static void * Alloc(size_t size)
Allocate a memory block.
bool IsEmpty() const
Check whether current object is empty or not.
Font charset: Baltic.
Definition: fs_common.h:1239
Standard font: Courier.
Definition: fs_common.h:1249
GraphState & operator=(const GraphState &state)
Assign operator.
Definition: fs_common.h:870
Font charset: Turkish.
Definition: fs_common.h:1233
Progress state: any error occurs.
Definition: fs_common.h:391
#define NULL
The null-pointer value.
Definition: fx_system.h:767
virtual void OnDocWillDestroy(const pdf::PDFDoc &document)
Triggered when a PDF document will be destroyed.
Definition: fs_common.h:995
Definition: fx_coordinates.h:914
Font charset: Eastern European.
Definition: fs_common.h:1227
Path & operator=(const Path &other)
Assign operator.
RectI GetCharBBox(uint32 unicode) const
Get the bounding box of a character specified by unicode.
Right alignment.
Definition: fs_common.h:243
int GetAscent() const
Get the ascent value, in 1/1000 of em size (PDF units).
Indicates that this point is a control point or ending point for a Bezier spline. ...
Definition: fs_common.h:1472
bool RemovePoint(int index)
Remove a point specified by index.
Position: top left.
Definition: fs_common.h:273
Font & operator=(const Font &other)
Assign operator.
Position: top center.
Definition: fs_common.h:275
bool IsItalic() const
Judge whether current font object is italic or not.
PointType
Enumeration for point type in path.
Definition: fs_common.h:1460
Standard font: Courier-Oblique, Italic.
Definition: fs_common.h:1255
~GraphState()
Destructor.
Definition: fs_common.h:847
Standard font: Courier-Bold.
Definition: fs_common.h:1251
void AddSegment(int start_index, int end_index, Filter filter=e_All)
Add a new range segment. (Reverse ordering is legal.)
virtual void OnOutOfMemory()=0
A callback function used to notify application when Foxit PDF SDK runs out of memory.
Font charset: Thai.
Definition: fs_common.h:1225
static bool SetNotifierCallback(NotifierCallback *notifier)
Set a NotifierCallback object to Foxit PDF SDK.
bool AppendRect(const RectF &rect)
Add a rectangle figure to the end of current path.
Definition: fx_coordinates.h:627
float miter_limit
The miter limit for line join.
Definition: fs_common.h:929

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