Lay the groundwork for object streams.

This commit is contained in:
Michael R Sweet
2025-02-21 15:33:27 -05:00
parent f09105dd3f
commit aa6a20c042
2 changed files with 38 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ pdfioObjClose(pdfio_obj_t *obj) // I - Object
// Write what remains for the object...
if (!obj->offset)
{
// If we are writing a PDF 1.5 or later object, put all value-only objects
// in object streams...
if (obj != obj->pdf->encrypt_obj && obj != obj->pdf->info_obj && obj != obj->pdf->root_obj && strcmp(obj->pdf->version, "1.5") >= 0)
return (true);
// Write the object value
if (!_pdfioObjWriteHeader(obj))
return (false);