5 #ifndef PDFTRON_H_CPPSDFSDFObj
6 #define PDFTRON_H_CPPSDFSDFObj
155 size_t Size ()
const;
259 std::vector<unsigned char>
GetBuffer ()
const;
323 void SetName (
const char* name);
402 Obj PutName (
const char* key,
const char* name);
484 Obj PutString (
const char* key,
const char* value,
int size);
507 void PutNull (
const char* key);
534 Obj PutRect (
const char* key,
double x1,
double y1,
double x2,
double y2);
555 void Erase (
const char* key);
572 bool Rename (
const char* old_key,
const char* new_key);
726 Obj InsertRect (
size_t pos,
double x1,
double y1,
double x2,
double y2);
883 const size_t data_size,
899 operator bool () {
return mp_obj!=0;}
920 mutable TRN_SDFDoc temp_doc;
932 #include <Impl/SDFDoc.inl>
934 #endif // PDFTRON_H_CPPSDFSDFObj
UString GetAsPDFText() const
void Erase(const char *key)
Obj PutBool(const char *key, bool value)
Obj PushBackString(const char *value)
Obj PutNumber(const char *key, double value)
Obj PushBackRect(double x1, double y1, double x2, double y2)
void PutNull(const char *key)
bool Rename(const char *old_key, const char *new_key)
Obj Put(const char *key, Obj obj)
Obj InsertDict(size_t pos)
Obj InsertArray(size_t pos)
void SetName(const char *name)
bool operator<(const Obj &to) const
ptrdiff_t GetHandleInternal()
Obj PutText(const char *key, const UString &value)
DictIterator Get(const char *key)
const char * GetName() const
DictIterator Find(const char *key)
Obj PushBackMatrix(const Common::Matrix2D &value)
Obj InsertNull(size_t pos)
DictIterator GetDictIterator()
Filters::Filter GetDecodedStream() const
std::vector< unsigned char > GetRawBuffer() const
Obj PutDict(const char *key)
Obj PushBackBool(bool value)
void Write(Filters::FilterWriter &stream)
Obj InsertBool(size_t pos, bool value)
Obj InsertRect(size_t pos, double x1, double y1, double x2, double y2)
Filters::Filter GetRawStream(bool decrypt) const
Obj PutString(const char *key, const char *value)
size_t GetRawStreamLength() const
Obj InsertNumber(size_t pos, double value)
Obj PushBackNumber(double value)
Obj InsertString(size_t pos, const char *value)
Obj PutRect(const char *key, double x1, double y1, double x2, double y2)
Obj PutMatrix(const char *key, const Common::Matrix2D &value)
Obj PushBackText(const UString &value)
Obj InsertName(size_t pos, const char *name)
void SetString(const UChar *value, size_t size)
Obj InsertMatrix(size_t pos, const Common::Matrix2D &value)
Obj PutArray(const char *key)
Obj Insert(size_t pos, Obj obj)
Obj PutName(const char *key, const char *name)
Obj FindObj(const char *key)
bool operator==(const Obj &to) const
Obj InsertText(size_t pos, const UString &value)
Obj PushBackName(const char *name)
Obj GetAt(size_t index) const
Obj & operator=(const Obj &c)
const UChar * GetBuffer() const
static Obj * CreateInternal(ptrdiff_t impl)
void SetStreamData(const char *data, const size_t data_size, Filters::Filter filter_chain=Filters::Filter())
bool IsEqual(const Obj &to) const
class SDFDoc & GetDoc() const