Commit 1879d82d authored by Jeff Muizelaar's avatar Jeff Muizelaar

2005-04-02 Jeff Muizelaar <jrmuizel@nit.ca>

	* poppler/Page.h:
	* poppler/Page.cc (Page::Page):
	Some initial infrastructure for supporting transitions.
parent fa4efbed
2005-04-02 Jeff Muizelaar <jrmuizel@nit.ca>
* poppler/Page.h:
* poppler/Page.cc (Page::Page):
Some initial infrastructure for supporting transitions.
2005-03-31 Kristian Høgsberg <krh@redhat.com>
* glib/poppler-page.cc (poppler_page_render_to_pixbuf): Clip
......
......@@ -186,6 +186,14 @@ Page::Page(XRef *xrefA, int numA, Dict *pageDict, PageAttrs *attrsA) {
// get attributes
attrs = attrsA;
// transtion
pageDict->lookupNF("Trans", &trans);
if (!(trans.isDict() || trans.isNull())) {
error(-1, "Page transition object (page %d) is wrong type (%s)",
num, trans.getTypeName());
trans.free();
}
// annotations
pageDict->lookupNF("Annots", &annots);
if (!(annots.isRef() || annots.isArray() || annots.isNull())) {
......@@ -215,6 +223,8 @@ Page::Page(XRef *xrefA, int numA, Dict *pageDict, PageAttrs *attrsA) {
return;
err3:
trans.initNull();
err2:
annots.initNull();
err1:
......
......@@ -144,6 +144,9 @@ public:
Object *getThumb(Object *obj) { return thumb.fetch(xref, obj); }
GBool loadThumb(unsigned char **data, int *width, int *height, int *rowstride);
// Get transition.
Object *getTrans(Object *obj) { return trans.fetch(xref, obj); }
// Display a page.
void display(OutputDev *out, double hDPI, double vDPI,
int rotate, GBool crop,
......@@ -171,6 +174,7 @@ private:
Object annots; // annotations array
Object contents; // page contents
Object thumb; // page thumbnail
Object trans; // page transition
GBool ok; // true if page is valid
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment