2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-31 02:48:31 +00:00

Store indirect nulls in QPDF_Dictionary

This commit is contained in:
m-holger 2023-08-25 12:21:25 +01:00
parent fedd42191f
commit 34491c612d

View File

@ -121,7 +121,7 @@ QPDF_Dictionary::getAsMap() const
void
QPDF_Dictionary::replaceKey(std::string const& key, QPDFObjectHandle value)
{
if (value.isNull()) {
if (value.isNull() && !value.isIndirect()) {
// The PDF spec doesn't distinguish between keys with null values and missing keys.
removeKey(key);
} else {