mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-05-01 04:46:46 +02:00
Compare commits
4 Commits
b0a66eef78
...
c4abceef79
Author | SHA1 | Date | |
---|---|---|---|
|
c4abceef79 | ||
|
2e91e05d7b | ||
|
7e3db6b639 | ||
|
acb6b66bdb |
@ -12,6 +12,10 @@ v1.1.2 (TBD)
|
||||
- Fixed an issue with PDF files produced by Crystal Reports (Issue #45)
|
||||
- Fixed an issue with PDF files produced by Microsoft Reporting Services
|
||||
(Issue #46)
|
||||
- Fixed support for compound filters where the filter array consists of a
|
||||
single named filter (Issue #47)
|
||||
- Fixed builds on Windows - needed windows.h header for temporary files
|
||||
(Issue #48)
|
||||
|
||||
|
||||
v1.1.1 (March 20, 2023)
|
||||
|
@ -23,6 +23,7 @@
|
||||
# ifdef _WIN32
|
||||
# include <io.h>
|
||||
# include <direct.h>
|
||||
# include <windows.h> // GetTempPathA
|
||||
# define access _access // Map standard POSIX/C99 names
|
||||
# define close _close
|
||||
# define fileno _fileno
|
||||
|
@ -464,11 +464,19 @@ _pdfioStreamOpen(pdfio_obj_t *obj, // I - Object
|
||||
// Try to decode/decompress the contents of this object...
|
||||
const char *filter = pdfioDictGetName(dict, "Filter");
|
||||
// Filter value
|
||||
pdfio_array_t *fa = pdfioDictGetArray(dict, "Filter");
|
||||
// Filter array
|
||||
|
||||
if (!filter && fa && pdfioArrayGetSize(fa) == 1)
|
||||
{
|
||||
// Support single-valued arrays...
|
||||
filter = pdfioArrayGetName(fa, 0);
|
||||
}
|
||||
|
||||
if (!filter)
|
||||
{
|
||||
// No single filter name, do we have a compound filter?
|
||||
if (pdfioDictGetArray(dict, "Filter"))
|
||||
if (fa)
|
||||
{
|
||||
// TODO: Implement compound filters...
|
||||
_pdfioFileError(st->pdf, "Unsupported compound stream filter.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user