]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/PDFDoc.h
Fix ( workaround ) for xpdf's global xref feature :-)
[evince.git] / pdf / xpdf / PDFDoc.h
index f76cfaf891f6e5234515e5c44089abc5e30b06e9..b978bc7df1ed373d8c8b9e28532ed8ce600da537 100644 (file)
@@ -17,6 +17,7 @@
 #include "Link.h"
 
 class GString;
+class BaseStream;
 class XRef;
 class Catalog;
 class OutputDev;
@@ -31,7 +32,8 @@ class LinkDest;
 class PDFDoc {
 public:
 
-  PDFDoc(Stream *str1, GString *fileName1);
+  PDFDoc(GString *fileName1);
+  PDFDoc(BaseStream *str);
   ~PDFDoc();
 
   // Was PDF document successfully opened?
@@ -93,10 +95,13 @@ public:
 
 private:
 
+  GBool setup();
+  void checkHeader();
   void getLinks(int page);
 
   GString *fileName;
-  Stream  *str;
+  FILE *file;
+  BaseStream *str;
   XRef *xref;
   Catalog *catalog;
   Links *links;