5 #ifndef PDFTRON_H_CPPSDFSDFDoc
6 #define PDFTRON_H_CPPSDFSDFDoc
14 struct ProgressMonitor;
22 class SecurityHandler;
88 SDFDoc (
const char* filepath);
119 SDFDoc (
unsigned char* buf,
size_t buf_size);
163 void* custom_data = 0
323 std::vector<Obj>
ImportObjs(
const std::vector<Obj>& obj_list);
340 std::vector<Obj>
ImportObjs(
const std::vector<Obj>& obj_list,
const std::vector<Obj>& exclude_list);
388 void Save(
const UString& path,
UInt32 flags, Common::ProgressMonitor* progress,
const char* header);
431 std::vector<unsigned char>
Save(
UInt32 flags,
const char* header);
451 void Save(
const char* &out_buf,
size_t& out_buf_size,
UInt32 flags, Common::ProgressMonitor* progress,
const char* header);
626 bool TryLock(
int milliseconds = 0 );
674 SDFDoc(TRN_SDFDoc doc) : mp_doc(doc) {}
688 #include <Impl/SDFDoc.inl>
690 #endif // PDFTRON_H_CPPSDFSDFDoc
Obj CreateIndirectString(const UChar *value, UInt32 size)
bool InitStdSecurityHandler(const char *password, int password_sz)
SDF::Obj GetHintStream() const
SecurityHandler GetSecurityHandler()
Obj CreateIndirectBool(bool value)
bool HasRepairedXRef() const
Obj CreateIndirectStream(Filters::FilterReader &data, Filters::Filter filter_chain=Filters::Filter())
void EnableDiskCaching(bool use_cache_flag)
Obj GetObj(const UInt32 obj_num) const
Obj CreateIndirectName(const char *name)
bool TryLockRead(int milliseconds=0)
bool IsFullSaveRequired() const
bool InitSecurityHandler(void *custom_data=0)
static SDFDoc * CreateInternal(ptrdiff_t impl)
const char * GetHeader() const
ptrdiff_t GetHandleInternal()
UString GetFileName() const
bool IsLinearized() const
SDF::Obj GetLinearizationDict() const
bool TryLock(int milliseconds=0)
void SetSecurityHandler(SecurityHandler handler)
Obj CreateIndirectNumber(double value)
void Save(const UString &path, UInt32 flags, Common::ProgressMonitor *progress, const char *header)
Obj CreateIndirectArray()
void Swap(UInt32 obj_num1, UInt32 obj_num2)
Obj ImportObj(Obj obj, bool deep_copy)
std::vector< Obj > ImportObjs(const std::vector< Obj > &obj_list)