mirror of
https://github.com/qpdf/qpdf.git
synced 2024-05-29 00:10:54 +00:00
f3d7c26de1
git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649
42 lines
910 B
C++
42 lines
910 B
C++
#ifndef __QPDF_STREAM_HH__
|
|
#define __QPDF_STREAM_HH__
|
|
|
|
#include <qpdf/QPDFObject.hh>
|
|
|
|
#include <qpdf/QPDFObjectHandle.hh>
|
|
|
|
class Pipeline;
|
|
class QPDF;
|
|
|
|
class QPDF_Stream: public QPDFObject
|
|
{
|
|
public:
|
|
QPDF_Stream(QPDF*, int objid, int generation,
|
|
QPDFObjectHandle stream_dict,
|
|
off_t offset, int length);
|
|
virtual ~QPDF_Stream();
|
|
virtual std::string unparse();
|
|
QPDFObjectHandle getDict() const;
|
|
|
|
// See comments in QPDFObjectHandle.hh
|
|
bool pipeStreamData(Pipeline*, bool filter,
|
|
bool normalize, bool compress);
|
|
|
|
// See comments in QPDFObjectHandle.hh
|
|
PointerHolder<Buffer> getStreamData();
|
|
|
|
private:
|
|
bool filterable(std::vector<std::string>& filters,
|
|
int& predictor, int& columns, bool& early_code_change);
|
|
|
|
|
|
QPDF* qpdf;
|
|
int objid;
|
|
int generation;
|
|
QPDFObjectHandle stream_dict;
|
|
off_t offset;
|
|
int length;
|
|
};
|
|
|
|
#endif // __QPDF_STREAM_HH__
|