Implement object loading.

This commit is contained in:
Michael R Sweet
2021-05-04 17:04:09 -04:00
parent 7733fbeb10
commit 7afdfc725c
3 changed files with 76 additions and 6 deletions

View File

@@ -197,10 +197,11 @@ pdfioFileCreateObject(
pdf->objs[pdf->num_objs ++] = obj;
// Initialize the object...
obj->pdf = pdf;
obj->number = pdf->num_objs;
obj->dict = dict;
obj->offset = _pdfioFileTell(pdf);
obj->pdf = pdf;
obj->number = pdf->num_objs;
obj->offset = _pdfioFileTell(pdf);
obj->value.type = PDFIO_VALTYPE_DICT;
obj->value.value.dict = dict;
// Don't write anything just yet...
return (obj);