2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 11:50:53 +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 {