Fix up copying objects from unencrypted to AES-encrypted documents (still looks

like there are some issues with strings in dicts)
This commit is contained in:
Michael R Sweet
2021-10-25 21:22:59 -04:00
parent 038046e6d5
commit 790cd440ea
4 changed files with 40 additions and 1 deletions

View File

@@ -1266,7 +1266,9 @@ stream_write(pdfio_stream_t *st, // I - Stream
outbytes = bytes;
}
if (!_pdfioFileWrite(st->pdf, st->cbuffer, bytes))
// fprintf(stderr, "stream_write: bytes=%u, outbytes=%u\n", (unsigned)bytes, (unsigned)outbytes);
if (!_pdfioFileWrite(st->pdf, st->cbuffer, outbytes))
return (false);
if (bytes > outbytes)