![]() |
![]() |
![]() |
Poppler Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum PopplerActionType; enum PopplerDestType; PopplerActionAny; PopplerActionGotoDest; PopplerActionGotoRemote; PopplerActionLaunch; PopplerActionUri; PopplerActionNamed; PopplerActionMovie; PopplerDest; union PopplerAction; #define POPPLER_TYPE_ACTION #define POPPLER_ACTION (obj) GType poppler_action_get_type (void); PopplerAction * poppler_action_copy (PopplerAction *action); void poppler_action_free (PopplerAction *action); #define POPPLER_TYPE_DEST GType poppler_dest_get_type (void); PopplerDest * poppler_dest_copy (PopplerDest *dest); void poppler_dest_free (PopplerDest *dest);
typedef enum { POPPLER_ACTION_UNKNOWN, /* unknown action */ POPPLER_ACTION_NONE, /* no action specified */ POPPLER_ACTION_GOTO_DEST, /* go to destination */ POPPLER_ACTION_GOTO_REMOTE, /* go to destination in new file */ POPPLER_ACTION_LAUNCH, /* launch app (or open document) */ POPPLER_ACTION_URI, /* URI */ POPPLER_ACTION_NAMED, /* named action*/ POPPLER_ACTION_MOVIE /* movie action */ } PopplerActionType;
typedef enum { POPPLER_DEST_UNKNOWN, POPPLER_DEST_XYZ, POPPLER_DEST_FIT, POPPLER_DEST_FITH, POPPLER_DEST_FITV, POPPLER_DEST_FITR, POPPLER_DEST_FITB, POPPLER_DEST_FITBH, POPPLER_DEST_FITBV, POPPLER_DEST_NAMED } PopplerDestType;
typedef struct { PopplerActionType type; gchar *title; PopplerDest *dest; } PopplerActionGotoDest;
typedef struct { PopplerActionType type; gchar *title; gchar *file_name; PopplerDest *dest; } PopplerActionGotoRemote;
typedef struct { PopplerActionType type; gchar *title; gchar *file_name; gchar *params; } PopplerActionLaunch;
typedef struct { PopplerActionType type; gchar *title; char *uri; } PopplerActionUri;
typedef struct { PopplerActionType type; gchar *title; gchar *named_dest; } PopplerActionNamed;
typedef struct { PopplerDestType type; int page_num; double left; double bottom; double right; double top; double zoom; gchar *named_dest; guint change_left : 1; guint change_top : 1; guint change_zoom : 1; } PopplerDest;
union PopplerAction { PopplerActionType type; PopplerActionAny any; PopplerActionGotoDest goto_dest; PopplerActionGotoRemote goto_remote; PopplerActionLaunch launch; PopplerActionUri uri; PopplerActionNamed named; PopplerActionMovie movie; };
#define POPPLER_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ACTION, PopplerAction))
|
PopplerAction * poppler_action_copy (PopplerAction *action);
Copies action
, creating an identical PopplerAction.
|
a PopplerAction |
Returns : |
a new action identical to action
|
void poppler_action_free (PopplerAction *action);
Frees action
|
a PopplerAction |
PopplerDest * poppler_dest_copy (PopplerDest *dest);
Copies dest
, creating an identical PopplerDest.
|
a PopplerDest |
Returns : |
a new destination identical to dest
|