1 --- gdal-1.9.2/frmts/pdf/pdfio.h.orig 2013-09-27 19:25:21.549930220 +0200
2 +++ gdal-1.9.2/frmts/pdf/pdfio.h 2013-09-27 19:50:28.013200337 +0200
4 Guint lengthA, Object *dictA);
5 virtual ~VSIPDFFileStream();
7 - virtual Stream * makeSubStream(Guint startA, GBool limitedA,
8 - Guint lengthA, Object *dictA);
9 - virtual int getPos();
10 - virtual Guint getStart();
11 + virtual BaseStream *copy();
12 + virtual Stream * makeSubStream(Goffset startA, GBool limitedA,
13 + Goffset lengthA, Object *dictA);
14 + virtual Goffset getPos();
15 + virtual Goffset getStart();
16 virtual StreamKind getKind();
17 virtual GooString *getFileName();
21 virtual void unfilteredReset ();
23 - virtual void setPos(Guint pos, int dir = 0);
24 - virtual void moveStart(int delta);
25 + virtual void setPos(Goffset pos, int dir = 0);
26 + virtual void moveStart(Goffset delta);
29 VSIPDFFileStream *poParent;
30 --- gdal-1.9.2/configure.in.orig 2013-09-27 19:03:37.856651598 +0200
31 +++ gdal-1.9.2/configure.in 2013-09-27 19:24:36.179932130 +0200
32 @@ -3000,10 +3000,10 @@
33 echo 'public:' >> testpoppler.cpp
34 echo ' TestStream() : BaseStream(0,0) {}' >> testpoppler.cpp
35 echo ' ~TestStream() {}' >> testpoppler.cpp
36 - echo ' virtual Stream *makeSubStream(Guint start, GBool limited, Guint length, Object *dict) { return 0; }' >> testpoppler.cpp
37 - echo ' virtual void setPos(Guint pos, int dir = 0) { }' >> testpoppler.cpp
38 - echo ' virtual Guint getStart() { return 0; }' >> testpoppler.cpp
39 - echo ' virtual void moveStart(int delta) { }' >> testpoppler.cpp
40 + echo ' virtual Stream *makeSubStream(Goffset start, GBool limited, Goffset length, Object *dict) { return 0; }' >> testpoppler.cpp
41 + echo ' virtual void setPos(Goffset pos, int dir = 0) { }' >> testpoppler.cpp
42 + echo ' virtual Goffset getStart() { return 0; }' >> testpoppler.cpp
43 + echo ' virtual void moveStart(Goffset delta) { }' >> testpoppler.cpp
44 echo '};' >> testpoppler.cpp
45 echo 'int main(int argc, char** argv) { return 0; }' >> testpoppler.cpp
46 if test -z "`${CXX} testpoppler.cpp -c ${POPPLER_INC} 2>&1`" ; then
47 --- gdal-1.9.2/frmts/pdf/pdfdataset.cpp.orig 2012-10-09 02:58:26.000000000 +0200
48 +++ gdal-1.9.2/frmts/pdf/pdfdataset.cpp 2013-09-27 19:40:31.413225370 +0200
52 #ifdef POPPLER_0_20_OR_LATER
53 -static void PDFDatasetErrorFunction(void* userData, ErrorCategory eErrCatagory, int nPos, char *pszMsg)
54 +static void PDFDatasetErrorFunction(void* userData, ErrorCategory eErrCatagory, Goffset nPos, char *pszMsg)
59 - osError.Printf("Pos = %d, ", nPos);
60 + osError.Printf("Pos = %lld, ", (long long)nPos);
63 if (strcmp(osError.c_str(), "Incorrect password") == 0)
64 --- gdal-1.9.2/frmts/pdf/pdfio.cpp.orig 2012-10-09 02:58:26.000000000 +0200
65 +++ gdal-1.9.2/frmts/pdf/pdfio.cpp 2013-09-27 20:31:25.879764002 +0200
70 +BaseStream *VSIPDFFileStream::copy()
72 + return new VSIPDFFileStream(*this);
75 /************************************************************************/
77 /************************************************************************/
79 -Stream *VSIPDFFileStream::makeSubStream(Guint startA, GBool limitedA,
80 - Guint lengthA, Object *dictA)
81 +Stream *VSIPDFFileStream::makeSubStream(Goffset startA, GBool limitedA,
82 + Goffset lengthA, Object *dictA)
84 return new VSIPDFFileStream(this,
88 /************************************************************************/
90 -int VSIPDFFileStream::getPos()
91 +Goffset VSIPDFFileStream::getPos()
97 /************************************************************************/
99 -Guint VSIPDFFileStream::getStart()
100 +Goffset VSIPDFFileStream::getStart()
106 /************************************************************************/
108 -void VSIPDFFileStream::setPos(Guint pos, int dir)
109 +void VSIPDFFileStream::setPos(Goffset pos, int dir)
115 /************************************************************************/
117 -void VSIPDFFileStream::moveStart(int delta)
118 +void VSIPDFFileStream::moveStart(Goffset delta)
121 VSIFSeekL(f, nCurrentPos = nStart, SEEK_SET);