mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-02-20 19:02:50 +01:00
Switch back to compressed page content streams.
This commit is contained in:
parent
94cb915885
commit
f1fb09c6c0
@ -350,7 +350,7 @@ pdfioFileCreatePage(pdfio_file_t *pdf, // I - PDF file
|
|||||||
|
|
||||||
// Create a contents object to hold the contents of the page...
|
// Create a contents object to hold the contents of the page...
|
||||||
contents_dict = pdfioDictCreate(pdf);
|
contents_dict = pdfioDictCreate(pdf);
|
||||||
// pdfioDictSetName(contents_dict, "Filter", "FlateDecode");
|
pdfioDictSetName(contents_dict, "Filter", "FlateDecode");
|
||||||
|
|
||||||
contents = pdfioFileCreateObject(pdf, contents_dict);
|
contents = pdfioFileCreateObject(pdf, contents_dict);
|
||||||
|
|
||||||
@ -377,8 +377,7 @@ pdfioFileCreatePage(pdfio_file_t *pdf, // I - PDF file
|
|||||||
pdf->pages[pdf->num_pages ++] = page;
|
pdf->pages[pdf->num_pages ++] = page;
|
||||||
|
|
||||||
// Create the contents stream...
|
// Create the contents stream...
|
||||||
// return (pdfioObjCreateStream(contents, PDFIO_FILTER_FLATE));
|
return (pdfioObjCreateStream(contents, PDFIO_FILTER_FLATE));
|
||||||
return (pdfioObjCreateStream(contents, PDFIO_FILTER_NONE));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user