diff options
Diffstat (limited to 'pdf/xpdf/bonobo-image-x-pdf.cc')
-rw-r--r-- | pdf/xpdf/bonobo-image-x-pdf.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pdf/xpdf/bonobo-image-x-pdf.cc b/pdf/xpdf/bonobo-image-x-pdf.cc index 04c9052..3a36ecf 100644 --- a/pdf/xpdf/bonobo-image-x-pdf.cc +++ b/pdf/xpdf/bonobo-image-x-pdf.cc @@ -229,6 +229,7 @@ load_image_from_stream (GnomePersistStream *ps, GNOME_Stream stream, void *data) #define CHUNK 512 FILE *hack; char *name; + Object obj; if (bed->pdf || bed->stream) { @@ -244,9 +245,9 @@ load_image_from_stream (GnomePersistStream *ps, GNOME_Stream stream, void *data) printf ("Loading PDF from persiststream\n"); #endif bed->stream = stream; - BonoboStream *bs = new BonoboStream (stream); - GString *st = new GString ("Bonobo.pdf"); - bed->pdf = new PDFDoc (bs, st); + obj.initNull(); + BonoboStream *bs = new BonoboStream (stream, 0, -1, &obj); + bed->pdf = new PDFDoc (bs); #if PDF_DEBUG > 0 printf ("Done load\n"); |