X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FObject.cc;h=71c632a1a3759dd7cce004bf712e6e41c429dba8;hb=85c46a8011c7fd5e4bda282266006c972ea7606b;hp=6d92c6a3403edaeaa343d3fc7f37f2e0fe6b20b1;hpb=50dd339d3d6262763616efe8d7ee415ab19befb9;p=swftools.git diff --git a/pdf2swf/xpdf/Object.cc b/pdf2swf/xpdf/Object.cc index 6d92c6a..71c632a 100644 --- a/pdf2swf/xpdf/Object.cc +++ b/pdf2swf/xpdf/Object.cc @@ -2,15 +2,16 @@ // // Object.cc // -// Copyright 1996-2002 Glyph & Cog, LLC +// Copyright 1996-2003 Glyph & Cog, LLC // //======================================================================== -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma implementation #endif -#include #include #include "Object.h" #include "Array.h" @@ -57,6 +58,13 @@ Object *Object::initDict(XRef *xref) { return this; } +Object *Object::initDict(Dict *dictA) { + initObj(objDict); + dict = dictA; + dict->incRef(); + return this; +} + Object *Object::initStream(Stream *streamA) { initObj(objStream); stream = streamA; @@ -153,7 +161,7 @@ void Object::print(FILE *f) { break; case objString: fprintf(f, "("); - fwrite(string->getCString(), 1, string->getLength(), stdout); + fwrite(string->getCString(), 1, string->getLength(), f); fprintf(f, ")"); break; case objName: