summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h')
-rw-r--r--Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h b/Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h
index 2b011756e85..3526c65e3bc 100644
--- a/Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h
+++ b/Build/source/libs/xpdf/xpdf-3.02/xpdf/Page.h
@@ -5,6 +5,10 @@
// Copyright 1996-2003 Glyph & Cog, LLC
//
//========================================================================
+//
+// Copyright 2009 Hartmut Henkel <hartmut_henkel@gmx.de>
+// for added metadataNF, resourcesNF, getMetadataNF, and getResourcesNF
+// needed by luatex
#ifndef PAGE_H
#define PAGE_H
@@ -68,6 +72,10 @@ public:
{ return group.isDict() ? group.getDict() : (Dict *)NULL; }
Stream *getMetadata()
{ return metadata.isStream() ? metadata.getStream() : (Stream *)NULL; }
+
+ // much better would be to get direct access to the page dictionary, but how?
+ Object * getMetadataNF() { return &metadataNF; }
+
Dict *getPieceInfo()
{ return pieceInfo.isDict() ? pieceInfo.getDict() : (Dict *)NULL; }
Dict *getSeparationInfo()
@@ -76,6 +84,9 @@ public:
Dict *getResourceDict()
{ return resources.isDict() ? resources.getDict() : (Dict *)NULL; }
+ // much better would be to get direct access to the page dictionary, but how?
+ Object *getResourcesNF() { return &resourcesNF; }
+
private:
GBool readBox(Dict *dict, char *key, PDFRectangle *box);
@@ -91,9 +102,11 @@ private:
Object boxColorInfo;
Object group;
Object metadata;
+ Object metadataNF;
Object pieceInfo;
Object separationInfo;
Object resources;
+ Object resourcesNF;
};
//------------------------------------------------------------------------
@@ -133,11 +146,13 @@ public:
Dict *getBoxColorInfo() { return attrs->getBoxColorInfo(); }
Dict *getGroup() { return attrs->getGroup(); }
Stream *getMetadata() { return attrs->getMetadata(); }
+ Object *getMetadataNF() { return attrs->getMetadataNF(); }
Dict *getPieceInfo() { return attrs->getPieceInfo(); }
Dict *getSeparationInfo() { return attrs->getSeparationInfo(); }
// Get resource dictionary.
Dict *getResourceDict() { return attrs->getResourceDict(); }
+ Object *getResourcesNF() { return attrs->getResourcesNF(); }
// Get annotations array.
Object *getAnnots(Object *obj) { return annots.fetch(xref, obj); }