diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-18 21:54:24 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-18 21:54:24 +0200 |
commit | 94131116a90a076c49e799aa5e4c63ce0ecb0391 (patch) | |
tree | e985eaf3f3cc9852ef406723a140bddb619bf704 /libqpdf/QPDFWriter.cc | |
parent | 3356b6708d72688831a62d0928345fb07f2d785e (diff) | |
download | qpdf-94131116a90a076c49e799aa5e4c63ce0ecb0391.tar.zst |
more notes, testing of cleartext metadata, some crypt filter fixes
git-svn-id: svn+q:///qpdf/trunk@823 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 76567db0..d094aa66 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -791,14 +791,15 @@ QPDFWriter::unparseObject(QPDFObjectHandle object, int level, } else if (object.isDictionary()) { - // XXX Must not preserve Crypt filters from original stream - // dictionary writeString("<<"); writeStringQDF("\n"); std::set<std::string> keys = object.getKeys(); for (std::set<std::string>::iterator iter = keys.begin(); iter != keys.end(); ++iter) { + // I'm not fully clear on /Crypt keys in /DecodeParms. If + // one is found, we refuse to filter, so we should be + // safe. std::string const& key = *iter; if ((flags & f_filtered) && ((key == "/Filter") || |