|
Foxit PDF SDK
|
Public 成员函数 | |
| Stamp () | |
| 构造函数。 | |
| Stamp (Annot annot) | |
| 构造函数,使用父类对象。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| String | getIconName () throws com.foxit.sdk.PDFException |
| 获取图标名称。 更多... | |
| int | getRotation () throws com.foxit.sdk.PDFException |
| 获取当前旋转角度(顺时针方向)。 更多... | |
| void | rotate (int angle) throws com.foxit.sdk.PDFException |
| 从当前状态按指定角度度数顺时针旋转当前注释。 更多... | |
| void | setBitmap (Bitmap bitmap) throws com.foxit.sdk.PDFException |
| 为当前印章注释设置位图。 更多... | |
| void | setIconName (String icon_name) throws com.foxit.sdk.PDFException |
| 设置图标名称。 更多... | |
| void | setImage (Image image, int frame_index, int compress) throws com.foxit.sdk.PDFException |
| 为当前印章注释设置图像,使用指定的帧索引。 更多... | |
| void | setRotation (int angle) throws com.foxit.sdk.PDFException |
| 设置旋转角度(顺时针方向)。 更多... | |
Public 成员函数 继承自 com.foxit.sdk.pdf.annots.Markup | |
| Markup (Annot annot) | |
| 构造函数,使用父类对象。 更多... | |
| Markup () | |
| 构造函数 | |
| Note | addReply () throws com.foxit.sdk.PDFException |
| 在回复列表的末尾添加新回复。 更多... | |
| void | addRichText (String content, RichTextStyle style) throws com.foxit.sdk.PDFException |
| 在末尾添加新的富文本字符串。 更多... | |
| Note | addStateAnnot (String title, int model, int state) throws com.foxit.sdk.PDFException |
| 添加新的状态注释。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| float | getBorderOpacity () throws com.foxit.sdk.PDFException |
| 获取注释的边框透明度。 更多... | |
| DateTime | getCreationDateTime () throws com.foxit.sdk.PDFException |
| 获取创建日期时间。 更多... | |
| float | getFillOpacity () throws com.foxit.sdk.PDFException |
| 获取注释的填充透明度。 更多... | |
| MarkupArray | getGroupElements () throws com.foxit.sdk.PDFException |
| 从当前标记注释所属的组中获取一个元素(作为标记注释)。 更多... | |
| Markup | getGroupHeader () throws com.foxit.sdk.PDFException |
| 获取当前标记注释所属组的头注释(作为主注释)。 更多... | |
| String | getIntent () throws com.foxit.sdk.PDFException |
| 获取意图名称。 更多... | |
| float | getOpacity () throws com.foxit.sdk.PDFException |
| 获取不透明度值。 更多... | |
| Popup | getPopup () throws com.foxit.sdk.PDFException |
| 获取相关的弹出注释。 更多... | |
| Note | getReply (int index) throws com.foxit.sdk.PDFException |
| 按索引获取回复。 更多... | |
| int | getReplyCount () throws com.foxit.sdk.PDFException |
| 计算所有回复。 更多... | |
| String | getRichTextContent (int index) throws com.foxit.sdk.PDFException |
| 获取指定索引的富文本字符串的文本字符串。 更多... | |
| int | getRichTextCount () throws com.foxit.sdk.PDFException |
| 获取富文本字符串的数量。 更多... | |
| RichTextStyle | getRichTextStyle (int index) throws com.foxit.sdk.PDFException |
| 获取指定索引的富文本字符串的样式数据。 更多... | |
| NoteArray | getStateAnnots (int model) throws com.foxit.sdk.PDFException |
| 获取指定状态模型中的所有状态注释。 更多... | |
| String | getSubject () throws com.foxit.sdk.PDFException |
| 获取主题字符串。 更多... | |
| String | getTitle () throws com.foxit.sdk.PDFException |
| 获取标题字符串。 更多... | |
| void | insertRichText (int index, String content, RichTextStyle style) throws com.foxit.sdk.PDFException |
| 在指定索引位置插入新的富文本字符串。 更多... | |
| boolean | isGrouped () throws com.foxit.sdk.PDFException |
| 检查当前标记注释是否在组中。 更多... | |
| boolean | removeAllReplies () throws com.foxit.sdk.PDFException |
| 删除所有回复。 更多... | |
| boolean | removeAllStateAnnots () throws com.foxit.sdk.PDFException |
| 移除所有状态注释。 更多... | |
| boolean | removePopup () throws com.foxit.sdk.PDFException |
| 删除相关的弹出注释。 更多... | |
| boolean | removeReply (int index) throws com.foxit.sdk.PDFException |
| 按索引删除回复。 更多... | |
| void | removeRichText (int index) throws com.foxit.sdk.PDFException |
| 移除指定索引的富文本字符串。 更多... | |
| void | setBorderOpacity (float opacity) throws com.foxit.sdk.PDFException |
| 设置注释的边框透明度。 更多... | |
| void | setCreationDateTime (DateTime date_time) throws com.foxit.sdk.PDFException |
| 设置创建日期时间。 更多... | |
| void | setFillOpacity (float opacity) throws com.foxit.sdk.PDFException |
| 设置注释的填充透明度。 更多... | |
| void | setIntent (String intent) throws com.foxit.sdk.PDFException |
| 设置意图名称。 更多... | |
| void | setOpacity (float opacity) throws com.foxit.sdk.PDFException |
| 设置不透明度值。 更多... | |
| void | setPopup (Popup popup) throws com.foxit.sdk.PDFException |
| 设置相关的弹出注释。 更多... | |
| void | setRichTextContent (int index, String content) throws com.foxit.sdk.PDFException |
| 设置指定索引的富文本字符串的文本字符串。 更多... | |
| void | setRichTextStyle (int index, RichTextStyle style) throws com.foxit.sdk.PDFException |
| 设置指定索引的富文本字符串的样式数据。 更多... | |
| void | setSubject (String subject) throws com.foxit.sdk.PDFException |
| 设置主题字符串。 更多... | |
| void | setTitle (String title) throws com.foxit.sdk.PDFException |
| 设置标题字符串。 更多... | |
| boolean | ungroup () throws com.foxit.sdk.PDFException |
| 将当前标记注释从其所属的组中解组。 更多... | |
Public 成员函数 继承自 com.foxit.sdk.pdf.annots.Annot | |
| Annot (PDFPage page, PDFDictionary annot_dict) throws com.foxit.sdk.PDFException | |
| 构造函数,使用PDF页面和注释的PDF字典。 更多... | |
| Annot (Annot annot) | |
| 构造函数,使用另一个注释对象。 更多... | |
| Annot () | |
| 构造函数。 | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| PDFStream | getAppearanceStream (int type, String appearance_state) throws com.foxit.sdk.PDFException |
| 获取具有指定类型和状态的注释外观流。 更多... | |
| long | getBorderColor () throws com.foxit.sdk.PDFException |
| 获取边框颜色。 更多... | |
| BorderInfo | getBorderInfo () throws com.foxit.sdk.PDFException |
| 获取边框信息。 更多... | |
| String | getContent () throws com.foxit.sdk.PDFException |
| 获取内容。 更多... | |
| RectI | getDeviceRect (Matrix2D matrix) throws com.foxit.sdk.PDFException |
| 获取设备坐标系统中的注释矩形。 更多... | |
| PDFDictionary | getDict () throws com.foxit.sdk.PDFException |
| 获取注释的字典对象。 更多... | |
| Matrix2D | getDisplayMatrix (Matrix2D page_display_matrix) throws com.foxit.sdk.PDFException |
| 获取显示矩阵,从到 目标设备坐标系统。 更多... | |
| int | getFlags () throws com.foxit.sdk.PDFException |
| 获取注释标志。 更多... | |
| int | getIndex () throws com.foxit.sdk.PDFException |
| 获取当前注释在其所属页面中的索引。 更多... | |
| DateTime | getModifiedDateTime () throws com.foxit.sdk.PDFException |
| 获取最后修改日期时间。 更多... | |
| PDFDictionary | getOptionalContent () throws com.foxit.sdk.PDFException |
| 获取注释可选内容的PDF字典。 更多... | |
| PDFPage | getPage () throws com.foxit.sdk.PDFException |
| 获取相关的PDF页面。 更多... | |
| RectF | getRect () throws com.foxit.sdk.PDFException |
| 获取矩形,以表示。 更多... | |
| int | getType () throws com.foxit.sdk.PDFException |
| 获取当前注释的实际注释类型。 更多... | |
| String | getUniqueID () throws com.foxit.sdk.PDFException |
| 获取唯一ID。 更多... | |
| boolean | hasProperty (int property) throws com.foxit.sdk.PDFException |
| 当前注释是否具有指定的注释属性。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| boolean | isMarkup () throws com.foxit.sdk.PDFException |
| 检查当前注释是否为标记注释。 更多... | |
| boolean | move (RectF rect) throws com.foxit.sdk.PDFException |
| 将当前注释移动到新位置,由中的新矩形指定。 更多... | |
| boolean | move (RectF rect, boolean is_reset_appearance) throws com.foxit.sdk.PDFException |
| 将当前注释移动到新位置,由中的新矩形指定。 更多... | |
| boolean | removeProperty (int property) throws com.foxit.sdk.PDFException |
| 删除指定的注释属性。 更多... | |
| boolean | resetAppearanceStream () throws com.foxit.sdk.PDFException |
| 重置外观流。 更多... | |
| boolean | resetAppearanceStream (boolean is_generate_new_appearance_obj) throws com.foxit.sdk.PDFException |
| 重置外观流。 更多... | |
| void | setBorderColor (long color) throws com.foxit.sdk.PDFException |
| 设置边框颜色。 更多... | |
| void | setBorderInfo (BorderInfo border) throws com.foxit.sdk.PDFException |
| 设置边框信息。 更多... | |
| void | setContent (String content) throws com.foxit.sdk.PDFException |
| 设置内容。 更多... | |
| void | setFlags (int flags) throws com.foxit.sdk.PDFException |
| 设置注释标志。 更多... | |
| void | setModifiedDateTime (DateTime date_time) throws com.foxit.sdk.PDFException |
| 设置最后修改日期时间。 更多... | |
| void | setUniqueID (String unique_id) throws com.foxit.sdk.PDFException |
| 设置唯一ID。 更多... | |
Public 成员函数 继承自 com.foxit.sdk.common.Base | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
额外继承的成员函数 | |
静态 Public 属性 继承自 com.foxit.sdk.pdf.annots.Markup | |
| static final int | e_EndingStyleButt = 6 |
| 端点处垂直于线条本身的短线。 | |
| static final int | e_EndingStyleCircle = 2 |
| 用注释的内部颜色填充的圆形(如果有)。 | |
| static final int | e_EndingStyleClosedArrow = 5 |
| 两条短线以锐角相交(如OpenArrow样式),并由第三条线连接, 形成用注释的内部颜色填充的三角形闭合箭头(如果有)。 | |
| static final int | e_EndingStyleDiamond = 3 |
| 用注释的内部颜色填充的菱形(如果有)。 | |
| static final int | e_EndingStyleNone = 0 |
| 无特殊线条端点。 | |
| static final int | e_EndingStyleOpenArrow = 4 |
| 两条短线以锐角相交形成开放箭头。 | |
| static final int | e_EndingStyleRClosedArrow = 8 |
| 与ClosedArrow方向相反的三角形闭合箭头。 | |
| static final int | e_EndingStyleROpenArrow = 7 |
| 与OpenArrow方向相反的两条短线。 | |
| static final int | e_EndingStyleSlash = 9 |
| 端点处与线条垂直方向约顺时针30度的短线。 | |
| static final int | e_EndingStyleSquare = 1 |
| 用注释的内部颜色填充的正方形(如果有)。 | |
| static final int | e_MeasureTypeA = 3 |
| 面积的测量。 | |
| static final int | e_MeasureTypeD = 2 |
| 任意方向距离的测量。 | |
| static final int | e_MeasureTypeS = 5 |
| 直线斜率的测量。 | |
| static final int | e_MeasureTypeT = 4 |
| 角度的测量。 | |
| static final int | e_MeasureTypeX = 0 |
| 沿x轴变化的测量。 | |
| static final int | e_MeasureTypeY = 1 |
| 沿y轴变化的测量。 | |
| static final int | e_StateAccepted = 3 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 用户同意更改。 | |
| static final int | e_StateCancelled = 5 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 更改已被取消。 | |
| static final int | e_StateCompleted = 6 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 更改已完成。 | |
| static final int | e_StateDeferred = 7 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 更改已延期。 | |
| static final int | e_StateFuture = 8 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 更改将在将来进行。 | |
| static final int | e_StateMarked = 1 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelMarked 一起使用) 注释已被用户标记。 | |
| static final int | e_StateModelMarked = 1 |
| 标记注释状态模型:已标记。 | |
| static final int | e_StateModelReview = 2 |
| 标记注释状态模型:审阅。 | |
| static final int | e_StateNone = 0 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 用户没有对更改表示任何意见。 | |
| static final int | e_StateRejected = 4 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelReview 一起使用) 用户不同意更改。 | |
| static final int | e_StateUnmarked = 2 |
| (与状态模型com.foxit.sdk.pdf.annots.Markup.e_StateModelMarked 一起使用) 注释尚未被用户标记。 | |
静态 Public 属性 继承自 com.foxit.sdk.pdf.annots.Annot | |
| static final int | e_3D = 25 |
| 注释类型:3D注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_AppearanceTypeDown = 2 |
| 注释的按下外观。 | |
| static final int | e_AppearanceTypeNormal = 0 |
| 注释的正常外观。 | |
| static final int | e_AppearanceTypeRollover = 1 |
| 注释的悬停外观。 | |
| static final int | e_Caret = 14 |
| 注释类型:插入符注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Circle = 6 |
| 注释类型:圆形注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_FileAttachment = 17 |
| 注释类型:文件附件注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_FlagHidden = 0x0002 |
| 注释标志:隐藏。 更多... | |
| static final int | e_FlagInvisible = 0x0001 |
| 注释标志:不可见。 更多... | |
| static final int | e_FlagLocked = 0x0080 |
| 注释标志:锁定。 更多... | |
| static final int | e_FlagLockedContents = 0x0200 |
| 注释标志:锁定内容。 更多... | |
| static final int | e_FlagNoRotate = 0x0010 |
| 注释标志:无旋转。 更多... | |
| static final int | e_FlagNoView = 0x0020 |
| 注释标志:无视图。 更多... | |
| static final int | e_FlagNoZoom = 0x0008 |
| 注释标志:无缩放。 更多... | |
| static final int | e_FlagPrint = 0x0004 |
| 注释标志:打印。 更多... | |
| static final int | e_FlagReadOnly = 0x0040 |
| 注释标志:只读。 更多... | |
| static final int | e_FlagToggleNoView = 0x0100 |
| 注释标志:切换无视图。 更多... | |
| static final int | e_FreeText = 3 |
| 注释类型:自由文本注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Highlight = 9 |
| 注释类型:高亮注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_HighlightingInvert = 1 |
| 高亮模式:反转,即反转注释矩形的内容。 | |
| static final int | e_HighlightingNone = 0 |
| 高亮模式:无高亮。 | |
| static final int | e_HighlightingOutline = 2 |
| 高亮模式:轮廓,即反转注释的边框。 | |
| static final int | e_HighlightingPush = 3 |
| 高亮模式:按下,即显示注释的按下外观(如果有)。 | |
| static final int | e_HighlightingToggle = 4 |
| 高亮模式:切换。这仅对小组件注释有用。 | |
| static final int | e_Ink = 15 |
| 注释类型:墨迹注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Line = 4 |
| 注释类型:直线注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Link = 2 |
| 注释类型:链接注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_MKEntryBackgroundColor = 2 |
| 背景颜色条目。MK字典中的"BG"。 | |
| static final int | e_MKEntryBorderColor = 1 |
| 边框颜色条目。MK字典中的"BC"。 | |
| static final int | e_MKEntryDownCaption = 5 |
| 按下标题(或备用标题)条目。MK字典中的"AC"。 更多... | |
| static final int | e_MKEntryDownIcon = 8 |
| 按下图标(或备用图标)条目。MK字典中的"IX"。 更多... | |
| static final int | e_MKEntryIconCaptionRelation = 10 |
| 图标和标题关系条目。MK字典中的"TP"。 更多... | |
| static final int | e_MKEntryIconFit = 9 |
| 图标适配信息条目。MK字典中的"IF"。 更多... | |
| static final int | e_MKEntryNormalCaption = 3 |
| 正常标题条目。MK字典中的"CA"。 更多... | |
| static final int | e_MKEntryNormalIcon = 6 |
| 正常图标条目。MK字典中的"I"。 更多... | |
| static final int | e_MKEntryRolloverCaption = 4 |
| 悬停标题条目。MK字典中的"RC"。 更多... | |
| static final int | e_MKEntryRolloverIcon = 7 |
| 悬停图标条目。MK字典中的"RI"。 更多... | |
| static final int | e_MKEntryRotation = 0 |
| 旋转条目。MK字典中的"R"。 | |
| static final int | e_MKRelationCaptionAboveIcon = 3 |
| 标题在图标上方。 | |
| static final int | e_MKRelationCaptionBelowIcon = 2 |
| 标题在图标下方。 | |
| static final int | e_MKRelationCaptionLeft = 5 |
| 标题在图标左侧。 | |
| static final int | e_MKRelationCaptionOvrlayOnIcon = 6 |
| 标题直接覆盖在图标上。 | |
| static final int | e_MKRelationCaptionRight = 4 |
| 标题在图标右侧。 | |
| static final int | e_MKRelationNoCaption = 1 |
| 无标题;仅图标。 | |
| static final int | e_MKRelationNoIcon = 0 |
| 无图标;仅标题。 | |
| static final int | e_Movie = 19 |
| 注释类型:电影注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Note = 1 |
| 注释类型:注记注释,即"文本"注释 - <PDF参考1.7>中的标准注释之一。 | |
| static final int | e_PagingSeal = 29 |
| 注释类型:分页印章注释。福昕PDF SDK自定义注释类型(非标准注释类型)。 | |
| static final int | e_Polygon = 7 |
| 注释类型:多边形注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_PolyLine = 8 |
| 注释类型:折线注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Popup = 26 |
| 注释类型:弹出注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_PrinterMark = 22 |
| 注释类型:印刷标记注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_PropertyBorderColor = 2 |
| 注释属性:边框颜色。 更多... | |
| static final int | e_PropertyCreationDate = 1 |
| 注释属性:创建日期。 更多... | |
| static final int | e_PropertyFillColor = 3 |
| 注释属性:填充颜色 更多... | |
| static final int | e_PropertyModifiedDate = 0 |
| 注释属性:修改日期。 | |
| static final int | e_PSInk = 16 |
| 注释类型:压力敏感墨迹注释。 | |
| static final int | e_Redact = 27 |
| 注释类型:编辑注释。 | |
| static final int | e_RichMedia = 28 |
| 注释类型:富媒体注释。 | |
| static final int | e_Screen = 21 |
| 注释类型:屏幕注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Sound = 18 |
| 注释类型:声音注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Square = 5 |
| 注释类型:矩形注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Squiggly = 11 |
| 注释类型:波浪线注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Stamp = 13 |
| 注释类型:印章注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_StrikeOut = 12 |
| 注释类型:删除线注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_TrapNet = 23 |
| 注释类型:陷阱网络注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Underline = 10 |
| 注释类型:下划线注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_UnknownType = 0 |
| 注释类型:未知。 | |
| static final int | e_Watermark = 24 |
| 注释类型:水印注释。<PDF参考1.7>中的标准注释之一。 | |
| static final int | e_Widget = 20 |
| 注释类型:小组件注释。<PDF参考1.7>中的标准注释之一。 更多... | |
印章注释显示文本或图形,看起来像是用橡皮图章盖在页面上的。
印章注释的外观可以是图标或位图。目前,福昕PDF SDK对预定义的标准印章图标 没有任何默认外观,因此如果印章用图标表示,用户应该通过函数 common.Library.setAnnotIconProviderCallback 为福昕PDF SDK 设置自定义注释图标提供器。
印章注释是一种标记注释,所以类Stamp 派生自 类Markup ,并且还提供了获取/设置印章注释属性和 重置印章注释外观流的函数。
在重置印章注释的外观流之前,请确保印章注释已设置有效的位图或图像, 或者它有一个图标名称且福昕PDF SDK已设置了支持的自定义注释图标提供器; 否则印章注释无法重置外观流。
| com.foxit.sdk.pdf.annots.Stamp.Stamp | ( | Annot | annot | ) |
构造函数,使用父类对象。
| [in] | annot | 父类对象。 |
| synchronized void com.foxit.sdk.pdf.annots.Stamp.delete | ( | ) |
直接清除C++相关资源。
| String com.foxit.sdk.pdf.annots.Stamp.getIconName | ( | ) | throws com.foxit.sdk.PDFException |
获取图标名称。
当为Foxit PDF SDK设置了支持的自定义注释图标提供器时,此属性可能对印章注释的外观产生影响。 印章注释具有预定义的标准图标名称:
"Approved"、"AsIs"、"Confidential"、"Departmental"、"Draft"、 "Experimental"、"Expired"、"Final"、"ForComment"、"ForPublicRelease"、 "NotApproved"、"NotForPublicRelease"、"Sold"、"TopSecret"。
| int com.foxit.sdk.pdf.annots.Stamp.getRotation | ( | ) | throws com.foxit.sdk.PDFException |
获取当前旋转角度(顺时针方向)。
| void com.foxit.sdk.pdf.annots.Stamp.rotate | ( | int | angle | ) | throws com.foxit.sdk.PDFException |
从当前状态按指定角度度数顺时针旋转当前注释。
| [in] | angle | 角度度数值,用于从当前状态顺时针旋转当前注释。 取值范围:从0到360。特别地,如果输入值为0或360(意味着不旋转当前注释), 当前函数将不执行任何操作。 |
| void com.foxit.sdk.pdf.annots.Stamp.setBitmap | ( | Bitmap | bitmap | ) | throws com.foxit.sdk.PDFException |
为当前印章注释设置位图。
如果用户希望新位图对注释的外观产生影响,请在设置新位图后调用函数 Annot.resetAppearanceStream 。
| [in] | bitmap | 要设置给当前印章的位图。 |
| void com.foxit.sdk.pdf.annots.Stamp.setIconName | ( | String | icon_name | ) | throws com.foxit.sdk.PDFException |
设置图标名称。
当为Foxit PDF SDK设置了支持的自定义注释图标提供器时,此属性可能对印章注释的外观产生影响。 印章注释具有预定义的标准图标名称:
"Approved"、"AsIs"、"Confidential"、"Departmental"、"Draft"、 "Experimental"、"Expired"、"Final"、"ForComment"、"ForPublicRelease"、 "NotApproved"、"NotForPublicRelease"、"Sold"、"TopSecret"。
一旦用户为当前印章注释设置了新的图标名称,请确保在调用函数 Annot.resetAppearanceStream (从Stamp的父类继承)之前, 已通过函数common.Library.setAnnotIconProviderCallback 为Foxit PDF SDK设置了自定义图标提供器。 对于新创建的印章注释,如果未调用当前函数, 图标名称默认为"Draft"。
如果用户希望新图标名称对注释的外观产生影响,请确保已为Foxit PDF SDK设置了 支持的自定义注释图标提供器,然后在设置新图标名称后调用函数 Annot.resetAppearanceStream 。
| [in] | icon_name | 要设置的新图标名称字符串。空的图标名称字符串意味着当前 印章注释的图标将被视为"Draft"。 |
| void com.foxit.sdk.pdf.annots.Stamp.setImage | ( | Image | image, |
| int | frame_index, | ||
| int | compress | ||
| ) | throws com.foxit.sdk.PDFException |
为当前印章注释设置图像,使用指定的帧索引。
输入图像可能包含多个帧,只有图像的一个帧可以设置给当前印章注释。
如果用户希望新图像对注释的外观产生影响,请在设置新图像后调用函数 Annot.resetAppearanceStream 。
| [in] | image | 图像。其中一个帧将被设置给当前印章。 此图像至少包含一个帧,且图像类型不应为 com.foxit.sdk.common.Image.e_Unknown 。 |
| [in] | frame_index | 帧索引。有效范围:从0到(count-1)。 count由函数common.Image.getFrameCount 返回。 |
| [in] | compress | 用于压缩图像数据的压缩算法类型。 目前,它只支持2个有效值:
|
| void com.foxit.sdk.pdf.annots.Stamp.setRotation | ( | int | angle | ) | throws com.foxit.sdk.PDFException |
设置旋转角度(顺时针方向)。
此属性对印章注释的外观有影响。如果用户希望效果显示在注释的外观中, 请在此函数后调用函数Annot.resetAppearanceStream 。
| [in] | angle | 要设置给当前注释的新旋转角度(顺时针方向)。取值范围:从0到360。 |