From 44827bac1a602f25d85ec2d99243eba8faf585e3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 16 Feb 2025 12:40:39 -0500 Subject: [PATCH] Cleanup. --- pdfio-file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdfio-file.c b/pdfio-file.c index d20b79e..eba6a95 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -2420,13 +2420,14 @@ write_trailer(pdfio_file_t *pdf) // I - PDF file pdfioDictSetNumber(xref_dict, "Size", pdf->num_objs + 2); pdfioDictSetArray(xref_dict, "W", w_array); pdfioDictSetName(xref_dict, "Filter", "FlateDecode"); + pdfioDictSetObj(xref_dict, "Info", pdf->info_obj); + pdfioDictSetObj(xref_dict, "Root", pdf->root_obj); if (pdf->encrypt_obj) pdfioDictSetObj(xref_dict, "Encrypt", pdf->encrypt_obj); + if (pdf->id_array) pdfioDictSetArray(xref_dict, "ID", pdf->id_array); - pdfioDictSetObj(xref_dict, "Info", pdf->info_obj); - pdfioDictSetObj(xref_dict, "Root", pdf->root_obj); if ((xref_obj = pdfioFileCreateObj(pdf, xref_dict)) == NULL) {