Loading...
Searching...
No Matches
FileSpec.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFFileSpec
6#define PDFTRON_H_CPPPDFFileSpec
7
8#include <C/PDF/TRN_FileSpec.h>
9#include <SDF/SDFDoc.h>
10
11
12namespace pdftron {
13 namespace PDF {
14
38{
39public:
40
55 static FileSpec Create(SDF::SDFDoc& doc, const UString& path, bool embed = true);
56
68 static FileSpec CreateURL(SDF::SDFDoc& doc, const char* url);
69
76
80 FileSpec (const FileSpec& d);
81
86
91 bool operator==(const FileSpec& d);
92
98 bool IsValid() const;
99
114 bool Export(const UString& save_as = "") const;
115
126
137
142 void SetDesc(const UString& desc);
143
148
150
151// @cond PRIVATE_DOC
152#ifndef SWIGHIDDEN
153 FileSpec(TRN_FileSpec fs);
154 TRN_FileSpec mp_impl;
155#endif
156// @endcond
157};
158
159
160#include <Impl/FileSpec.inl>
161
162 }; // namespace PDF
163}; // namespace pdftron
164
165#endif // PDFTRON_H_CPPPDFFileSpec
UString GetFilePath() const
FileSpec & operator=(const FileSpec &d)
bool operator==(const FileSpec &d)
static FileSpec Create(SDF::SDFDoc &doc, const UString &path, bool embed=true)
FileSpec(const FileSpec &d)
static FileSpec CreateURL(SDF::SDFDoc &doc, const char *url)
SDF::Obj GetSDFObj() const
void SetDesc(const UString &desc)
bool Export(const UString &save_as="") const
Filters::Filter GetFileData() const