mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Lay the groundwork for object streams.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user