| 59 | } |
| 60 | |
| 61 | void qpdf_stream_decoder::decode(QPDFObjectHandle& content) |
| 62 | { |
| 63 | LOG_S(INFO) << "start decoding content-stream: " << content.getTypeName() << " -> " << content.unparse(); |
| 64 | |
| 65 | stream.clear(); |
| 66 | |
| 67 | try |
| 68 | { |
| 69 | QPDFObjectHandle::parseContentStream(content, this); |
| 70 | } |
| 71 | catch(std::exception& e) |
| 72 | { |
| 73 | LOG_S(ERROR) << "QPDF encountered error (" << e.what() << ") during decoding"; |
| 74 | } |
| 75 | |
| 76 | LOG_S(WARNING) << "finished decoding content-stream!"; |
| 77 | } |
| 78 | |
| 79 | /* |
| 80 | void qpdf_stream_decoder::handleObject(QPDFObjectHandle obj) |