Top |
PopplerAction * | poppler_action_copy () |
void | poppler_action_free () |
PopplerDest * | poppler_dest_copy () |
void | poppler_dest_free () |
PopplerAction | |
PopplerDest | |
struct | PopplerActionAny |
struct | PopplerActionGotoDest |
struct | PopplerActionGotoRemote |
struct | PopplerActionLaunch |
struct | PopplerActionUri |
struct | PopplerActionNamed |
struct | PopplerActionMovie |
struct | PopplerActionRendition |
struct | PopplerActionResetForm |
struct | PopplerActionOCGState |
struct | PopplerActionJavascript |
enum | PopplerActionType |
enum | PopplerDestType |
enum | PopplerActionMovieOperation |
PopplerActionLayer | |
enum | PopplerActionLayerAction |
GBoxed ├── PopplerAction ╰── PopplerDest GEnum ├── PopplerActionLayerAction ├── PopplerActionMovieOperation ├── PopplerActionType ╰── PopplerDestType
PopplerAction *
poppler_action_copy (PopplerAction *action
);
Copies action
, creating an identical PopplerAction.
PopplerDest *
poppler_dest_copy (PopplerDest *dest
);
Copies dest
, creating an identical PopplerDest.
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;
Data structure for holding a destination
Note that named_dest
is the string representation of the named
destination. This is the right form to pass to poppler functions,
e.g. poppler_document_find_dest()
, but to get the destination as
it appears in the PDF itself, you need to convert it to a bytestring
with poppler_named_dest_to_bytestring()
first.
Also note that named_dest
does not have a defined encoding and
is not in a form suitable to be displayed to the user.
PopplerDestType |
type of destination |
|
page number |
||
left coordinate |
||
bottom coordinate |
||
right coordinate |
||
top coordinate |
||
scale factor |
||
gchar * |
name of the destination (POPPLER_DEST_NAMED only) |
|
guint |
whether left coordinate should be changed |
|
guint |
whether top coordinate should be changed |
|
guint |
whether scale factor should be changed |
struct PopplerActionGotoDest { PopplerActionType type; gchar *title; PopplerDest *dest; };
struct PopplerActionGotoRemote { PopplerActionType type; gchar *title; gchar *file_name; PopplerDest *dest; };
struct PopplerActionLaunch { PopplerActionType type; gchar *title; gchar *file_name; gchar *params; };
struct PopplerActionUri { PopplerActionType type; gchar *title; char *uri; };
struct PopplerActionNamed { PopplerActionType type; gchar *title; gchar *named_dest; };
struct PopplerActionMovie { PopplerActionType type; gchar *title; PopplerActionMovieOperation operation; PopplerMovie *movie; };
struct PopplerActionRendition { PopplerActionType type; gchar *title; gint op; PopplerMedia *media; };
struct PopplerActionResetForm { PopplerActionType type; gchar *title; GList *fields; gboolean exclude; };
struct PopplerActionOCGState { PopplerActionType type; gchar *title; GList *state_list; };
struct PopplerActionJavascript { PopplerActionType type; gchar *title; gchar *script; };
Action types
Destination types
unknown destination |
||
go to page with coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by the factor zoom |
||
go to page with its contents magnified just enough to fit the entire page within the window both horizontally and vertically |
||
go to page with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window |
||
go to page with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of the page within the window |
||
go to page with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically |
||
go to page with its contents magnified just enough to fit its bounding box entirely within the window both horizontally and vertically |
||
go to page with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of its bounding box within the window |
||
go to page with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of its bounding box within the window |
||
got to page specified by a name. See |
typedef struct { PopplerActionLayerAction action; GList *layers; } PopplerActionLayer;
Action to perform over a list of layers