summaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDF.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDF.hh')
-rw-r--r--include/qpdf/QPDF.hh21
1 files changed, 17 insertions, 4 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index e6ff75b4..dc6e9090 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -531,6 +531,23 @@ class QPDF
std::map<ObjGen, QPDFObjectHandle> foreign_streams;
};
+ class StringDecrypter: public QPDFObjectHandle::StringDecrypter
+ {
+ friend class QPDF;
+
+ public:
+ StringDecrypter(QPDF* qpdf, int objid, int gen);
+ virtual ~StringDecrypter()
+ {
+ }
+ virtual void decryptString(std::string& val);
+
+ private:
+ QPDF* qpdf;
+ int objid;
+ int gen;
+ };
+
void parse(char const* password);
void warn(QPDFExc const& e);
void setTrailer(QPDFObjectHandle obj);
@@ -547,10 +564,6 @@ class QPDF
QPDFObjectHandle readObject(
PointerHolder<InputSource>, std::string const& description,
int objid, int generation, bool in_object_stream);
- QPDFObjectHandle readObjectInternal(
- PointerHolder<InputSource> input, int objid, int generation,
- bool in_object_stream,
- bool in_array, bool in_dictionary);
size_t recoverStreamLength(
PointerHolder<InputSource> input, int objid, int generation,
qpdf_offset_t stream_offset);