I do not think this was good change:

https://sourceforge.net/p/podofo/code/1870/tree//podofo/trunk/src/base/PdfOutputStream.cpp?diff=50f1cef7e88f3d7cbdd252d0:1869

I would rather ignore such call to write:

    if( !pBuffer )
    {
        return 0;
    }

Because there are things in podofo which are passing null here like for
example "PdfStream::GetFilteredCopy" in case its stream is empty. So from
podofo 0.9.6 you cannot get filtered copy (empty buffer) of empty unencoded
stream like has for example newly created PdfXObject or maybe if stream in
pdf is empty. Empty stream is valid in pdf. Filtered copy of unencoded
empty stream should be empty buffer with zero length and it should not
throw exceptions in such cases.

>
>
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to