Public Member Functions | |
Screen () | |
Constructor. | |
Screen (Annot annot) | |
Constructor, with parent class. | |
Action | GetAction () |
Get action. More... | |
PDFDictionary | GetMKDict () |
Get the appearance characteristics dictionary (known as "MK" dictionary as well). More... | |
float | GetOpacity () |
Get opacity value. More... | |
Rotation | GetRotation () |
Get the rotation of the image used for the appearance of current screen annotation. More... | |
string | GetTitle () |
Get title of current screen annotation. More... | |
void | RemoveAction () |
Remove action. More... | |
void | SetAction (Action action) |
Set action. More... | |
void | SetImage (Image image, int frame_index, int compress) |
Set image to current screen annotation, with a specified frame index. More... | |
void | SetMKDict (PDFDictionary dict) |
Set the appearance characteristics dictionary (known as "MK" dictionary as well). More... | |
void | SetOpacity (float opacity) |
Set opacity value. More... | |
void | SetRotation (Rotation rotate) |
Set the rotation of the image used for the appearance of current screen annotation. More... | |
void | SetTitle (string title) |
Set title of current screen annotation. More... | |
![]() | |
Annot (PDFPage page, PDFDictionary annot_dict) | |
Constructor, with PDF page and annotation's PDF dictionary. More... | |
Annot (Annot annot) | |
Constructor, with another annot object. | |
Annot () | |
Constructor. | |
PDFStream | GetAppearanceStream (Annot.AppearanceType type, string appearance_state) |
Get annotation's appearance stream with specified type and state. More... | |
int | GetBorderColor () |
Get border color. More... | |
BorderInfo | GetBorderInfo () |
Get border information. More... | |
string | GetContent () |
Get content. More... | |
RectI | GetDeviceRect (bool is_transform_icon, Matrix2D matrix) |
Get annotation rectangle in device coordinate system. More... | |
PDFDictionary | GetDict () |
Get annotation's dictionary object. More... | |
int | GetFlags () |
Get annotation flags. More... | |
int | GetIndex () |
Get the index of current annotation in the page which current annotation belongs to. More... | |
DateTime | GetModifiedDateTime () |
Get last modified date time. More... | |
PDFDictionary | GetOptionalContent () |
Get the PDF dictionary of annotation's optional content. More... | |
PDFPage | GetPage () |
Get the related PDF page. More... | |
RectF | GetRect () |
Get rectangle, in PDF coordinate system . More... | |
Annot.Type | GetType () |
Get actual annotation type of current annotation. More... | |
string | GetUniqueID () |
Get unique ID. More... | |
bool | IsEmpty () |
Check whether current object is empty or not. More... | |
bool | IsMarkup () |
Check if current annotation is a markup annotation. More... | |
bool | Move (RectF rect) |
Move current annotation to a new position, specified by a new rectangle in PDF coordinate system . More... | |
bool | RemoveProperty (Annot.Property property) |
Remove a specified annotation's property. More... | |
bool | ResetAppearanceStream () |
Reset appearance stream. More... | |
void | SetBorderColor (int color) |
Set border color. More... | |
void | SetBorderInfo (BorderInfo border) |
Set border information. More... | |
void | SetContent (string content) |
Set content. More... | |
void | SetFlags (int flags) |
Set annotation flags. More... | |
void | SetModifiedDateTime (DateTime date_time) |
Set last modified date time. More... | |
void | SetUniqueID (string unique_id) |
Set unique ID. More... | |
A screen annotation specifies a region of a page upon which media clips may be played. It also serves as an object from which actions can be triggered. Usually, rendition action is set to a screen annotation in order that the screen annotation can be used to play media clip.
Class Screen is derived from FSAnnot, and offers functions to get/set link annotation's properties and reset appearance stream of a screen annotation. Appearance stream of a screen annotation is used for printing (if possible) and when the related media clip is not being played.
|
inline |
Get action.
This function cannot be used to get action which are used as additional action. If user wants to get any additional action, please refer to class actions::AdditionalAction for more details.
|
inline |
Get the appearance characteristics dictionary (known as "MK" dictionary as well).
|
inline |
Get opacity value.
This property has effect on annotation's appearance.
|
inline |
Get the rotation of the image used for the appearance of current screen annotation.
|
inline |
Get title of current screen annotation.
|
inline |
Remove action.
This function cannot be used to remove action which are used as additional action. If user wants to remove any additional action, please refer to class actions::AdditionalAction for more details.
|
inline |
Set action.
This function cannot be used to set action which are used as additional action. If user wants to set any additional action, please refer to class actions::AdditionalAction for more details.
action | New action to be set. It should be valid. Currently only support following types as the new action: actions::e_TypeGoto , actions::e_TypeURI , actions::e_TypeJavaScript , actions::e_TypeNamed , actions::e_TypeGoToR , actions::e_TypeGoToE , actions::e_TypeSubmitForm , actions::e_TypeResetForm , actions::e_TypeHide , actions::e_TypeLaunch , actions::e_TypeImportData , actions::e_TypeRendition . |
|
inline |
Set image to current screen annotation, with a specified frame index.
Input image may contain multiple frames, and only one frame of the image can be set to current stamp annotation.
If user wants the effect to be shown in annotation's appearance, please call function Annot::ResetAppearanceStream after this function.
image | An image. One of its frames will be set to current stamp. This image contains at least one frame and the image type should not be Image::e_Unknown . |
frame_index | Frame index. Valid range: from 0 to (count-1). count is returned by function common::Image::GetFrameCount. |
compress | Compress algorithm type used to compress image data. Currently, it only supports 2 valid value: 0: no compress. 1: do default compress. |
|
inline |
Set the appearance characteristics dictionary (known as "MK" dictionary as well).
dict | A PDF dictionary that represents the new "MK" dictionary to be set. User should not release this dictionary after setting it to a screen annotation. |
|
inline |
Set opacity value.
This property has effect on annotation's appearance. If user wants the effect to be shown in annotation's appearance, please call function Annot::ResetAppearanceStream after this function.
opacity | The new opacity value. Valid range: 0.0 to 1.0 . 0.0 means full transparency and 1.0 means full opaque. |
|
inline |
Set the rotation of the image used for the appearance of current screen annotation.
This property has effect on annotation's appearance. If user wants the effect to be shown in annotation's appearance, please call function Annot::ResetAppearanceStream after this function.
rotate | Rotation value. Please refer to e_RotationXXX values and this should be one of these values except e_RotationUnknown. |
|
inline |
Set title of current screen annotation.
title | The title string to be set. |