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

@ -96,6 +96,9 @@ pdfioObjCopy(pdfio_file_t *pdf, // I - PDF file
if (!_pdfioValueCopy(pdf, &dstobj->value, srcobj->pdf, &srcobj->value))
return (NULL);
if (dstobj->value.type == PDFIO_VALTYPE_DICT)
_pdfioDictClear(dstobj->value.value.dict, "Length");
if (srcobj->stream_offset)
{
// Copy stream data...