From f1fb09c6c0bb8ccb9c26b5fcd24c1bd4687939d5 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 28 May 2021 22:24:39 -0400 Subject: [PATCH] Switch back to compressed page content streams. --- pdfio-file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pdfio-file.c b/pdfio-file.c index 07b7aa5..350a6f5 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -350,7 +350,7 @@ pdfioFileCreatePage(pdfio_file_t *pdf, // I - PDF file // Create a contents object to hold the contents of the page... contents_dict = pdfioDictCreate(pdf); -// pdfioDictSetName(contents_dict, "Filter", "FlateDecode"); + pdfioDictSetName(contents_dict, "Filter", "FlateDecode"); contents = pdfioFileCreateObject(pdf, contents_dict); @@ -377,8 +377,7 @@ pdfioFileCreatePage(pdfio_file_t *pdf, // I - PDF file pdf->pages[pdf->num_pages ++] = page; // Create the contents stream... -// return (pdfioObjCreateStream(contents, PDFIO_FILTER_FLATE)); - return (pdfioObjCreateStream(contents, PDFIO_FILTER_NONE)); + return (pdfioObjCreateStream(contents, PDFIO_FILTER_FLATE)); }