convertDict method
PdfDict<PdfDataType>
convertDict(})
Converts a direct dictionary, ignoring the keys in ignoreKeys.
Keys whose value vanished in the conversion do not enter the result.
Implementation
PdfDict<PdfDataType> convertDict(
PdfDictToken dict, {
Set<String> ignoreKeys = const <String>{},
}) {
final values = <String, PdfDataType>{};
for (final entry in dict.values.entries) {
if (ignoreKeys.contains(entry.key)) continue;
final converted = convert(entry.value);
if (converted != null) values[entry.key] = converted;
}
return PdfDict.values(values);
}