Foxit PDF SDK
fs_pdfpage.h
浏览该文件的文档.
1 
15 #ifndef FS_PDFPAGE_H_
16 #define FS_PDFPAGE_H_
17 
18 #include "common/fs_common.h"
19 #include "common/fs_image.h"
20 #ifndef __EMSCRIPTEN_RENDER__
21 #include "pdf/annots/fs_annot.h"
22 #endif
25 #ifndef __EMSCRIPTEN_RENDER__
26 #include "pdf/fs_signature.h"
27 #endif
28 
34 namespace foxit {
38 namespace pdf {
39 // forward declaration
40 namespace interform {
41 class Control;
42 } // namespace interform
43 class PDFDoc;
44 //class Signature;
45 
64 class GraphicsObjects : public Base {
65  public:
71  typedef enum _TextMergeOption {
86 
87  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
88  explicit GraphicsObjects(FS_HANDLE handle = NULL);
90  virtual ~GraphicsObjects();
91 
97  GraphicsObjects(const GraphicsObjects& other);
98 
107 
115  bool IsEmpty() const;
116 
124  bool operator==(const GraphicsObjects& other) const;
125 
133  bool operator!=(const GraphicsObjects& other) const;
134 
151 
171 
188 
208 
218 
235  POSITION InsertGraphicsObject(POSITION position_insert_after, graphics::GraphicsObject* graphics_object);
236 
252  bool RemoveGraphicsObject(graphics::GraphicsObject* graphics_object);
253 
270 
285  POSITION MoveGraphicsObjectByPosition(POSITION current_position, POSITION position_move_after);
286 
295 
302  int GetGraphicsObjectCount() const;
303 
313  int GetGraphicsObjectIndex(graphics::GraphicsObject* graphics_object) const;
314 
324 
342  bool GenerateContent();
343 
364  bool GenerateContent(TextMergeOption text_merge_option);
365 };
366 
421 class PDFPage FS_FINAL : public GraphicsObjects {
422  public:
428  typedef enum _ParseFlags {
433  } ParseFlags;
434 
440  typedef enum _CalcMarginMode {
445  } CalcMarginMode;
446 
452  typedef enum _FlattenOptions {
459  } FlattenOptions;
460 
466  typedef enum _BoxType {
486  e_ArtBox = 3,
492  } BoxType;
493 
499  typedef enum _Size {
505  e_SizeA2 = 3,
507  e_SizeA3 = 4,
509  e_SizeA4 = 5,
511  e_SizeA5 = 6,
513  e_SizeA6 = 7,
515  e_SizeB2 = 8,
517  e_SizeB3 = 9,
519  e_SizeB4 = 10,
521  e_SizeB5 = 11,
523  e_SizeB6 = 12
524  } Size;
525 
526 
533  PDFPage(const PDFDoc& document, objects::PDFDictionary* page_dict);
534 
535  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
536  explicit PDFPage(FS_HANDLE handle = NULL);
537 
543  explicit PDFPage(const foxit::pdf::GraphicsObjects& other);
544 
546  ~PDFPage();
547 
553  PDFDoc GetDocument() const;
554 
561 
568  bool IsParsed() const;
569 
597  bool is_reparse = false);
598 
604  int GetIndex() const;
605 
611  float GetHeight() const;
612 
618  float GetWidth() const;
619 
627 
635 
649  Matrix GetDisplayMatrix(int left, int top, int width, int height, common::Rotation rotate);
650 
667 
668 #ifndef __EMSCRIPTEN_RENDER__
669 
674  int GetAnnotCount();
675 
684  annots::Annot GetAnnot(int index);
685 
701  annots::Annot GetAnnotAtPoint(const PointF& position, float tolerance);
702 
722  annots::Annot GetAnnotAtDevicePoint(const PointF& position, float tolerance, const Matrix* matrix = NULL);
723 
742  annots::AnnotArray GetAnnotsAtPoint(const PointF& position, float tolerance);
743 
766  annots::AnnotArray GetAnnotsAtDevicePoint(const PointF& position, float tolerance, const Matrix* matrix = NULL);
767 
817  annots::Annot AddAnnot(annots::Annot::Type type, const RectF& rect);
818 
827 
842  bool RemoveAnnot(const annots::Annot& annot);
843 
859  void MoveAnnotToFirst(const annots::Annot& annot);
860 
876  void MoveAnnotToLast(const annots::Annot& annot);
877 
893  void MoveAnnotToPrev(const annots::Annot& annot);
894 
910  void MoveAnnotToNext(const annots::Annot& annot);
911 
920  void UpdateAnnotList();
921 #endif
922 
930  bool HasTransparency();
931 
940  bool IsScanned();
941 
972  bool Flatten(bool for_display, uint32 options = PDFPage::e_FlattenAll);
973 
974 #ifndef __EMSCRIPTEN_RENDER__
975 
984  bool FlattenAnnot(annots::Annot annot);
985 
1011  bool SetAnnotGroup(const annots::MarkupArray& annot_array, int header_index);
1012 
1027 
1042  foxit::pdf::Signature AddSignature(const foxit::RectF& rect, const foxit::WString& field_name);
1043 
1068  foxit::pdf::Signature AddSignature(const foxit::RectF& rect, const foxit::WString& field_name, foxit::pdf::Signature::SignatureType signature_type, bool to_check_permission = true);
1069 
1097  foxit::pdf::Signature AddSignatureWithExistedVDict(const foxit::RectF& rect, const foxit::WString& field_name, foxit::pdf::Signature::SignatureType signature_type, bool to_check_permission, const foxit::pdf::Signature& existed_signature);
1098 #endif
1099 
1108  bool HasWatermark();
1109 
1117  bool RemoveAllWatermarks();
1118 
1127  void SetRotation(common::Rotation rotate);
1128 
1143  void SetSize(float width, float height);
1159 
1169  void SetBox(BoxType box_type, const RectF& box);
1170 
1179  RectF GetBox(BoxType box_type);
1180 
1189  float GetUserUnitSize() const;
1190 
1202  void SetUserUnitSize(float user_unit);
1203 
1219  bool Transform(const Matrix& matrix, bool need_transform_clip_path, bool need_transform_annotations = false);
1220 
1230  bool Normalize();
1231 
1242  void SetClipRect(const RectF& clip_rect);
1243 
1256  void SetThumbnail(const common::Bitmap& thumbnail);
1257 
1271  graphics::GraphicsObject* GetGraphicsObjectAtPoint(const PointF& point, float tolerance,
1273 
1287  graphics::GraphicsObjectArray GetGraphicsObjectsAtPoint(const PointF& point, float tolerance,
1289 
1306  graphics::GraphicsObject* GetGraphicsObjectAtDevicePoint(const PointF& point, float tolerance,const Matrix* matrix ,
1308 
1325  graphics::GraphicsObjectArray GetGraphicsObjectsAtDevicePoint(const PointF& point, float tolerance,const Matrix* matrix,
1327 
1342 
1356 
1381  bool AddImage(const common::Image& image, int frame_index, const PointF& position, float width, float height,
1382  bool auto_generate_content = true);
1383 
1404  bool AddImageFromFilePath(const char* file_path, const PointF& position, float width, float height,
1405  bool auto_generate_content = true);
1406 
1427  bool AddImageFromFilePath(const wchar_t* file_path, const PointF& position, float width, float height,
1428  bool auto_generate_content = true);
1429 
1438  objects::PDFArray* GetAnnots() const;
1439 
1449 
1460 
1469  objects::PDFStream* GetThumb() const;
1470 
1482  objects::PDFObject* GetInheritedAttribute(const char* attruibute_name) const;
1483 
1489  void ClearRenderCache();
1490 
1507  RectF GetSuggestedRect(const common::Bitmap& render_result, const Matrix& render_matrix, const PointF& point) const;
1508 
1529  bool AddText(const wchar_t* text, const foxit::RectF& rect, const foxit::pdf::RichTextStyle& style, const Matrix& matrix = Matrix(), bool is_each_text = false,bool disable_embed_font = false);
1530 
1550  RectF AddText(const wchar_t* text, const foxit::RectF& rect, const foxit::pdf::RichTextStyle& style, int rotation, common::RotationPointOptions rotate_point = common::e_RotationPointCenter, bool disable_embed_font = false);
1551 
1567  RectF CalculateNewRectForText(const wchar_t* text, const foxit::RectF& rect, const foxit::pdf::RichTextStyle& style, int rotation, common::RotationPointOptions rotate_point = common::e_RotationPointCenter, bool disable_embed_font = false);
1568 
1596 
1597 };
1598 } // namespace pdf
1599 } // namespace foxit
1600 #endif // FS_PDFPAGE_H_
1601 
foxit::pdf::PDFPage::GetDisplayMatrix
Matrix GetDisplayMatrix(int left, int top, int width, int height, common::Rotation rotate)
获取PDF页面的显示矩阵,从PDF坐标系统到 目标设备坐标系统。
foxit::pdf::PDFPage::PDFPage
PDFPage(const PDFDoc &document, objects::PDFDictionary *page_dict)
构造函数,从表示PDF页面的PDF字典和包含该字典的PDF文档创建。
foxit::pdf::PDFPage::RemoveAnnot
bool RemoveAnnot(const annots::Annot &annot)
移除注释。
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
fs_signature.h
PDF签名相关定义和类的头文件。
foxit::pdf::objects::PDFArray
Definition: fs_pdfobject.h:639
foxit::pdf::PDFPage::e_CropBox
页面边界的裁剪框。
Definition: fs_pdfpage.h:476
foxit::pdf::PDFPage::RemoveAllWatermarks
bool RemoveAllWatermarks()
移除所有水印。
foxit::pdf::PDFPage::GetAnnotsAtDevicePoint
annots::AnnotArray GetAnnotsAtDevicePoint(const PointF &position, float tolerance, const Matrix *matrix=0)
获取指定位置的所有注释,在设备坐标系统中。
foxit::pdf::GraphicsObjects::GetFirstGraphicsObjectPosition
POSITION GetFirstGraphicsObjectPosition(graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取图形对象列表中第一个图形对象的位置,基于类型过滤器。
foxit::pdf::PDFPage::MoveAnnotToLast
void MoveAnnotToLast(const annots::Annot &annot)
将指定注释更改为所有注释中的最后一个。
foxit::pdf::annots::Annot
Definition: fs_annot.h:947
foxit::pdf::PDFPage::e_CalcDetection
通过检测路径或图像来计算边距。
Definition: fs_pdfpage.h:444
foxit::pdf::PDFPage::GetBox
RectF GetBox(BoxType box_type)
获取页面框。
foxit::pdf::PDFPage::e_BleedBox
页面边界的出血框。
Definition: fs_pdfpage.h:491
foxit::pdf::PDFPage::Size
Size
页面尺寸类型枚举。
Definition: fs_pdfpage.h:499
foxit::common::Progressive
Definition: fs_common.h:373
foxit::pdf::PDFPage::FlattenAnnot
bool FlattenAnnot(annots::Annot annot)
拼合注释:将注释合并到页面内容中,然后将其移除。
foxit::POSITION
FX_POSITION POSITION
用于表示集合中元素位置的值。
Definition: fs_basictypes.h:206
foxit::pdf::PDFPage::GetGraphicsObjectsAtRectangle
graphics::GraphicsObjectArray GetGraphicsObjectsAtRectangle(const RectF &rect, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll)
获取矩形与指定矩形相交的所有图形对象,使用指定的类型过滤器。
foxit::pdf::PDFPage::e_SizeB2
页面尺寸:B2。
Definition: fs_pdfpage.h:515
foxit::pdf::PDFPage::AddText
bool AddText(const wchar_t *text, const foxit::RectF &rect, const foxit::pdf::RichTextStyle &style, const Matrix &matrix=Matrix(), bool is_each_text=false, bool disable_embed_font=false)
添加文本到当前页面。
foxit::pdf::graphics::GraphicsObject::Type
Type
PDF图形对象类型的枚举。
Definition: fs_pdfgraphicsobject.h:364
foxit::pdf::GraphicsObjects::RemoveGraphicsObjectByPosition
bool RemoveGraphicsObjectByPosition(POSITION position)
通过位置删除图形对象。
foxit::pdf::PDFPage::e_ArtBox
页面边界的艺术框。
Definition: fs_pdfpage.h:486
foxit::pdf::GraphicsObjects::MoveGraphicsObjectByPosition
POSITION MoveGraphicsObjectByPosition(POSITION current_position, POSITION position_move_after)
将图形对象从一个位置移动到另一个位置。
foxit::pdf::PDFPage::GetHeight
float GetHeight() const
获取页面高度(单位是1/72英寸)。
foxit::pdf::GraphicsObjects::RemoveGraphicsObject
bool RemoveGraphicsObject(graphics::GraphicsObject *graphics_object)
删除图形对象。
foxit::pdf::GraphicsObjects::operator==
bool operator==(const GraphicsObjects &other) const
相等操作符。
foxit::pdf::PDFPage::e_SizeA5
页面尺寸:A5。
Definition: fs_pdfpage.h:511
fs_common.h
通用定义和类的头文件。
foxit::pdf::PDFPage::e_SizeLegal
页面尺寸:legal(法律用纸)。
Definition: fs_pdfpage.h:503
foxit::pdf::PDFPage::HasWatermark
bool HasWatermark()
检查当前页面是否有水印(不包括Foxit PDF SDK试用水印)。
CFX_ArrayTemplate
Definition: fx_basic.h:1278
foxit::pdf::PDFPage::GetAnnotCount
int GetAnnotCount()
获取注释的数量。
foxit::pdf::PDFPage::e_TrimBox
页面边界的修剪框。
Definition: fs_pdfpage.h:481
foxit::pdf::PDFPage::SetUserUnitSize
void SetUserUnitSize(float user_unit)
设置用户单位。
foxit::pdf::PDFPage::GetDocument
PDFDoc GetDocument() const
获取当前PDF页面所属的PDF文档。
foxit::pdf::PDFPage::MoveAnnotToNext
void MoveAnnotToNext(const annots::Annot &annot)
交换当前注释与其下一个注释的索引。
foxit::pdf::GraphicsObjects::GetGraphicsObjectIndex
int GetGraphicsObjectIndex(graphics::GraphicsObject *graphics_object) const
获取指定图形对象在图形对象列表中的索引。
foxit::pdf::PDFPage::AddAnnot
annots::Annot AddAnnot(annots::Annot::Type type, const RectF &rect)
向当前PDF页面添加注释。
foxit::pdf::PDFPage::e_FlattenNoAnnot
扁平化PDF页面但不包括注释。
Definition: fs_pdfpage.h:456
foxit::pdf::PDFPage::GetAnnotsAtPoint
annots::AnnotArray GetAnnotsAtPoint(const PointF &position, float tolerance)
获取指定位置的所有注释,在PDF坐标系统中。
foxit::pdf::GraphicsObjects::e_TextMergeBTET
将连续的BTET合并为新的一个。
Definition: fs_pdfpage.h:84
foxit::pdf::objects::PDFObject
Definition: fs_pdfobject.h:55
foxit::pdf::PDFPage::GetResources
objects::PDFDictionary * GetResources() const
获取"Resources"的 PDF 字典。
foxit::pdf::PDFPage::CalculateNewRectForText
RectF CalculateNewRectForText(const wchar_t *text, const foxit::RectF &rect, const foxit::pdf::RichTextStyle &style, int rotation, common::RotationPointOptions rotate_point=common::e_RotationPointCenter, bool disable_embed_font=false)
计算新文本矩形。
foxit::pdf::PDFPage::SetAnnotGroup
bool SetAnnotGroup(const annots::MarkupArray &annot_array, int header_index)
将所有输入的标记注释组合在一起。
foxit::pdf::PDFPage::ClearRenderCache
void ClearRenderCache()
清除渲染缓存。
foxit::pdf::PDFPage::e_SizeB4
页面尺寸:B4。
Definition: fs_pdfpage.h:519
foxit::pdf::PDFPage::~PDFPage
~PDFPage()
析构函数。
foxit::pdf::GraphicsObjects::GetGraphicsObjectPosition
POSITION GetGraphicsObjectPosition(graphics::GraphicsObject *graphics_object)
获取指定图形对象的位置。
foxit::pdf::PDFPage::HasTransparency
bool HasTransparency()
检查当前PDF页面是否具有透明度。
foxit::pdf::PDFPage::IsParsed
bool IsParsed() const
检查当前页面是否已被解析。
foxit::pdf::PDFPage::GetGraphicsObjectsAtPoint
graphics::GraphicsObjectArray GetGraphicsObjectsAtPoint(const PointF &point, float tolerance, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll)
获取指定点的所有图形对象,使用指定的类型过滤器。
foxit::pdf::PDFPage::GetInheritedAttribute
objects::PDFObject * GetInheritedAttribute(const char *attruibute_name) const
获取指定属性的 PDF 对象,该属性可能从页面树中的祖先节点继承。
foxit::pdf::RichTextStyle
Definition: fs_annot.h:201
foxit::pdf::GraphicsObjects::GetLastGraphicsObjectPosition
POSITION GetLastGraphicsObjectPosition(graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取图形对象列表中最后一个图形对象的位置,基于类型过滤器。
foxit::pdf::PDFPage::GetWidth
float GetWidth() const
获取页面宽度(单位是1/72英寸)。
foxit::pdf::PDFPage::ParseFlags
ParseFlags
PDF页面解析标志枚举。
Definition: fs_pdfpage.h:428
foxit::pdf::GraphicsObjects::operator=
GraphicsObjects & operator=(const GraphicsObjects &other)
赋值操作符。
foxit::pdf::PDFPage::GetAnnot
annots::Annot GetAnnot(int index)
通过索引获取注释。
foxit::pdf::GraphicsObjects::e_TextMergeTJY
合并具有相同y坐标的连续文本显示操作符。
Definition: fs_pdfpage.h:77
foxit::pdf::annots::AnnotArray
Definition: fs_annot.h:1583
foxit::pdf::PDFPage::e_MediaBox
页面边界的媒体框。
Definition: fs_pdfpage.h:471
foxit::pdf::GraphicsObjects::TextMergeOption
TextMergeOption
文本合并枚举。
Definition: fs_pdfpage.h:71
foxit::pdf::PDFPage::MoveAnnotToFirst
void MoveAnnotToFirst(const annots::Annot &annot)
将指定注释更改为所有注释中的第一个。
foxit::pdf::PDFPage::GetThumb
objects::PDFStream * GetThumb() const
获取"Thumb"的 PDF 流。
foxit::pdf::PDFPage::AddImage
bool AddImage(const common::Image &image, int frame_index, const PointF &position, float width, float height, bool auto_generate_content=true)
添加图像到当前页面。
foxit::pdf::PDFPage::StartParse
common::Progressive StartParse(uint32 flags=PDFPage::e_ParsePageNormal, common::PauseCallback *pause=0, bool is_reparse=false)
开始解析当前页面。
foxit::pdf::PDFPage::GetGraphicsObjectAtDevicePoint
graphics::GraphicsObject * GetGraphicsObjectAtDevicePoint(const PointF &point, float tolerance, const Matrix *matrix, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取设备坐标系统中指定点的最顶层图形对象,使用指定的类型过滤器。
foxit::pdf::GraphicsObjects::InsertGraphicsObject
POSITION InsertGraphicsObject(POSITION position_insert_after, graphics::GraphicsObject *graphics_object)
在指定位置后插入图形对象。
foxit::pdf::PDFPage::e_SizeB6
页面尺寸:B6。
Definition: fs_pdfpage.h:523
foxit::pdf::Signature
Definition: fs_signature.h:99
CFX_PSVTemplate
Definition: fx_coordinates.h:30
foxit::pdf::PDFPage::GetAnnotAtDevicePoint
annots::Annot GetAnnotAtDevicePoint(const PointF &position, float tolerance, const Matrix *matrix=0)
获取指定位置的注释,在设备坐标系统中。
foxit::common::Rotation
Rotation
旋转的枚举。
Definition: fs_common.h:57
foxit::pdf::graphics::GraphicsObject
Definition: fs_pdfgraphicsobject.h:232
foxit::common::e_RotationPointCenter
基于中心点旋转文本块。
Definition: fs_common.h:78
foxit::pdf::Signature::SignatureType
SignatureType
签名类型的枚举。
Definition: fs_signature.h:251
foxit::pdf::PDFPage::e_CalcContentsBox
根据所有内容的边界框计算边距。
Definition: fs_pdfpage.h:442
foxit::pdf::PDFPage::FlattenOptions
FlattenOptions
扁平化选项枚举。
Definition: fs_pdfpage.h:452
foxit::pdf::PDFPage::GetGraphicsObjectsAtDevicePoint
graphics::GraphicsObjectArray GetGraphicsObjectsAtDevicePoint(const PointF &point, float tolerance, const Matrix *matrix, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll)
获取设备坐标系统中指定点的所有图形对象,使用指定的类型过滤器。
fs_pdfobject.h
PDF对象相关定义和类的头文件。
foxit::pdf::PDFPage::e_SizeB3
页面尺寸:B3。
Definition: fs_pdfpage.h:517
foxit::pdf::graphics::GraphicsObject::e_TypeAll
表示所有图形对象类型,仅用作过滤器。
Definition: fs_pdfgraphicsobject.h:366
foxit::pdf::PDFPage::IsScanned
bool IsScanned()
检查当前PDF页面是否为扫描页面。
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
foxit::pdf::PDFPage::e_ParsePageTextOnly
纯文本模式解析标志。
Definition: fs_pdfpage.h:432
foxit::pdf::PDFPage::e_FlattenNoFormControl
扁平化PDF页面但不包括表单控件。
Definition: fs_pdfpage.h:458
foxit::pdf::PDFPage::e_SizeA4
页面尺寸:A4。
Definition: fs_pdfpage.h:509
foxit::pdf::PDFPage::Flatten
bool Flatten(bool for_display, uint32 options=PDFPage::e_FlattenAll)
拼合当前PDF页面:根据指定选项,注释或表单字段可能成为页面内容的一部分。
foxit::pdf::PDFPage::MoveAnnotToPrev
void MoveAnnotToPrev(const annots::Annot &annot)
交换当前注释与其前一个注释的索引。
foxit::pdf::PDFPage::SplitTextsInRectangle
graphics::TextObjectArray SplitTextsInRectangle(RectF rect, int split_step)
分割文本对象,这些对象的矩形(在PDF坐标系统中)与指定的矩形 (在PDF坐标系统中)相交,并根据split_step进一步分割相交部分。
foxit::pdf::GraphicsObjects::GetGraphicsObject
graphics::GraphicsObject * GetGraphicsObject(POSITION position) const
通过图形对象列表中的位置获取图形对象。
foxit::pdf::GraphicsObjects::e_TextMergeNone
不进行文本合并。
Definition: fs_pdfpage.h:73
IFX_Pause
Definition: fx_basic.h:3737
fs_image.h
图像和位图相关定义和类的头文件。
foxit::pdf::PDFPage::GetSuggestedRect
RectF GetSuggestedRect(const common::Bitmap &render_result, const Matrix &render_matrix, const PointF &point) const
基于渲染结果位图为点(位于 PDF坐标系)获取建议的矩形(位于 PDF坐标系)。
foxit::pdf::PDFPage::GetIndex
int GetIndex() const
获取页面索引。
foxit::pdf::objects::PDFDictionary
Definition: fs_pdfobject.h:848
foxit::pdf::PDFPage::GetContents
objects::PDFObject * GetContents() const
获取"Contents"的 PDF 对象。
foxit::pdf::PDFPage::SetRotation
void SetRotation(common::Rotation rotate)
设置页面旋转。
foxit::pdf::PDFPage::e_SizeA6
页面尺寸:A6。
Definition: fs_pdfpage.h:513
foxit::pdf::GraphicsObjects::operator!=
bool operator!=(const GraphicsObjects &other) const
不等操作符。
foxit::pdf::GraphicsObjects::GetGraphicsObjectCount
int GetGraphicsObjectCount() const
获取图形对象列表中图形对象的数量。
NULL
#define NULL
空指针值。
Definition: fx_system.h:792
foxit::pdf::PDFPage::GetAnnots
objects::PDFArray * GetAnnots() const
获取"Annots"的 PDF 数组。
CFX_FloatRect
Definition: fx_coordinates.h:771
foxit::pdf::PDFDoc
Definition: fs_pdfdoc.h:771
foxit::pdf::PDFPage::GetGraphicsObjectAtRectangle
graphics::GraphicsObject * GetGraphicsObjectAtRectangle(const RectF &rect, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取矩形与指定矩形相交的最顶层图形对象,使用指定的类型过滤器。
foxit::pdf::PDFPage
Definition: fs_pdfpage.h:421
foxit::pdf::PDFPage::e_FlattenAll
扁平化PDF页面的所有内容。
Definition: fs_pdfpage.h:454
foxit::common::Image
Definition: fs_image.h:449
foxit::pdf::PDFPage::GetAnnotAtPoint
annots::Annot GetAnnotAtPoint(const PointF &position, float tolerance)
获取指定位置的注释,在PDF坐标系统中。
fs_pdfgraphicsobject.h
PDF图形对象相关定义和类的头文件。
foxit::pdf::annots::MarkupArray
Definition: fs_annot.h:1792
foxit::pdf::annots::Annot::Type
Type
PDF注释类型的枚举。
Definition: fs_annot.h:954
foxit::pdf::PDFPage::GetUserUnitSize
float GetUserUnitSize() const
获取用户单位。
foxit::pdf::PDFPage::SetThumbnail
void SetThumbnail(const common::Bitmap &thumbnail)
设置页面缩略图。
foxit::pdf::PDFPage::AddSignatureWithExistedVDict
foxit::pdf::Signature AddSignatureWithExistedVDict(const foxit::RectF &rect, const foxit::WString &field_name, foxit::pdf::Signature::SignatureType signature_type, bool to_check_permission, const foxit::pdf::Signature &existed_signature)
使用特定签名中已存在的"V"字典添加签名到 PDF 页面。
foxit::pdf::PDFPage::CalcContentBBox
RectF CalcContentBBox(CalcMarginMode mode)
计算PDF页面的内容区域。
foxit::pdf::PDFPage::AddSignature
foxit::pdf::Signature AddSignature(const foxit::RectF &rect)
向PDF页面添加普通签名。
CFX_Matrix
Definition: fx_coordinates.h:1076
foxit::pdf::PDFPage::SetSize
void SetSize(float width, float height)
设置页面宽度和高度。
foxit::common::RotationPointOptions
RotationPointOptions
旋转点选项的枚举。
Definition: fs_common.h:76
fs_annot.h
注释相关定义和类的头文件。
foxit::pdf::GraphicsObjects::GetPrevGraphicsObjectPosition
POSITION GetPrevGraphicsObjectPosition(POSITION position, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取图形对象列表中上一个图形对象的位置, 基于类型过滤器和指定的当前位置。
foxit::pdf::PDFPage::SetBox
void SetBox(BoxType box_type, const RectF &box)
设置页面框。
foxit::pdf::GraphicsObjects::GetNextGraphicsObjectPosition
POSITION GetNextGraphicsObjectPosition(POSITION position, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取图形对象列表中下一个图形对象的位置, 基于类型过滤器和指定的当前位置。
foxit::pdf::objects::PDFStream
Definition: fs_pdfobject.h:448
foxit::pdf::PDFPage::CalcMarginMode
CalcMarginMode
计算边距模式枚举。
Definition: fs_pdfpage.h:440
foxit::pdf::PDFPage::UpdateAnnotList
void UpdateAnnotList()
更新注释列表。
CFX_WideString
宽字符串类
Definition: fx_string.h:1457
foxit::pdf::PDFPage::e_SizeB5
页面尺寸:B5。
Definition: fs_pdfpage.h:521
foxit::common::Bitmap
Definition: fs_image.h:36
foxit::pdf::GraphicsObjects::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit::pdf::PDFPage::e_SizeA2
页面尺寸:A2。
Definition: fs_pdfpage.h:505
foxit::pdf::PDFPage::GetGraphicsObjectAtPoint
graphics::GraphicsObject * GetGraphicsObjectAtPoint(const PointF &point, float tolerance, graphics::GraphicsObject::Type filter=graphics::GraphicsObject::e_TypeAll) const
获取指定点的最顶层图形对象,使用指定的类型过滤器。
foxit::pdf::PDFPage::SetClipRect
void SetClipRect(const RectF &clip_rect)
为当前PDF页面上的所有图形对象设置剪切矩形。
foxit::pdf::PDFPage::AddImageFromFilePath
bool AddImageFromFilePath(const char *file_path, const PointF &position, float width, float height, bool auto_generate_content=true)
从文件路径添加图像到当前页面。
foxit::pdf::PDFPage::GetRotation
common::Rotation GetRotation() const
获取页面旋转。
foxit::pdf::PDFPage::BoxType
BoxType
页面框类型枚举。
Definition: fs_pdfpage.h:466
foxit::pdf::PDFPage::GetDict
objects::PDFDictionary * GetDict() const
获取页面字典。
foxit::uint32
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
foxit::Matrix
CFX_Matrix Matrix
矩阵信息,浮点型。
Definition: fs_basictypes.h:467
foxit::pdf::PDFPage::e_ParsePageNormal
普通模式解析标志,表示解析PDF页面中的所有内容。
Definition: fs_pdfpage.h:430
foxit::pdf::PDFPage::Transform
bool Transform(const Matrix &matrix, bool need_transform_clip_path, bool need_transform_annotations=false)
转换PDF页面,包括页面上的注释和表单字段。
foxit::Base
Definition: fs_basictypes.h:449
foxit::pdf::PDFPage::e_SizeLetter
页面尺寸:letter(信纸)。
Definition: fs_pdfpage.h:501
foxit::pdf::PDFPage::Normalize
bool Normalize()
通过撤销任何旋转并移除到页面"CropBox"的偏移来转换当前PDF页面。
foxit::pdf::GraphicsObjects::~GraphicsObjects
virtual ~GraphicsObjects()
析构函数。
foxit::pdf::GraphicsObjects
Definition: fs_pdfpage.h:64
foxit::pdf::GraphicsObjects::GenerateContent
bool GenerateContent()
生成当前图形对象的内容。
foxit::pdf::PDFPage::e_SizeA3
页面尺寸:A3。
Definition: fs_pdfpage.h:507
foxit::pdf::PDFPage::LoadThumbnail
common::Bitmap LoadThumbnail()
加载缩略图位图。