Switch back to compressed page content streams.

This commit is contained in:
Michael R Sweet 2021-05-28 22:24:39 -04:00
parent 94cb915885
commit f1fb09c6c0
No known key found for this signature in database
GPG Key ID: 999559A027815955

View File

@ -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));
}