On 2002-11-14 10:05:14 -0800, Derek B. Noonburg wrote:
You need to copy the key string:
obj1->dictAdd(copyString(dict->getKey(i)), &obj3);
And we need to use Objects and not PDFObjects. This works: // Replacement for // Object *initDict(Dict *dict1){ initObj(objDict); dict = dict1; return this; } static void initDictFromDict (PdfObject &obj, Dict *dict) { Object obj1; int i, l; obj->initDict(xref); for (i = 0, l = dict->getLength(); i < l; i++) { obj->dictAdd(copyString(dict->getKey(i)), dict->getVal(i, &obj1)); } } Two questions on Dict.h: Object *getVal(int i, Object *obj); Object *getValNF(int i, Object *obj); - What's the difference between those functions? - What purpose has the obj parameter since the value is returned? Best regards Martin -- Martin Schröder, MS@ArtCom-GmbH.DE ArtCom GmbH, Grazer Straße 8, D-28359 Bremen Voice +49 421 20419-44 / Fax +49 421 20419-10