PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
filespec.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_FILESPEC_H_INCLUDED_
4#define PDFSDK_CXX_PDF_FILESPEC_H_INCLUDED_
5
6#include <filesystem>
7#include <string>
8
9#include <pdfsdk/core/types.h>
10
11#include "forward_declarations.h"
12#include "wrapper_base.h"
13
14namespace PDF {
15
21class FileSpec : public detail::RefCountedHandle<PDFileSpec> {
22public:
28 static FileSpec CreateFromPdfObject(const Object& object);
29
35
40 void SetFileSystem(PDAtom fileSys);
41
46 PDAtom GetFileSystem();
47
52 void SetPath(const std::wstring& path);
53
58 std::wstring GetPath();
59
64 void SetDesc(const std::wstring& desc);
65
70 std::wstring GetDesc();
71
77
83
88 int64_t GetFileSize();
89
96
101 void SetThumbnail(const XObject& thumb);
102
107 void SaveToFile(const std::filesystem::path& path);
108
109 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(FileSpec, PDFileSpec)
110};
111
112} // namespace PDF
113
114#include "filespec_impl.inl"
115
116#endif // PDFSDK_CXX_PDF_FILESPEC_H_INCLUDED_
Represents a PDF document.
Definition document.h:22
Represents a file specification in a PDF document.
Definition filespec.h:21
void SaveToFile(const std::filesystem::path &path)
void SetDesc(const std::wstring &desc)
void SetThumbnail(const XObject &thumb)
void SetFileSystem(PDAtom fileSys)
Object GetPdfObject() const
std::wstring GetDesc()
PDDateTime GetCreateDate()
void SetPath(const std::wstring &path)
XObject GetThumbnail(const Document &doc)
PDDateTime GetModDate()
int64_t GetFileSize()
static FileSpec CreateFromPdfObject(const Object &object)
std::wstring GetPath()
PDAtom GetFileSystem()
Represents a PDF object.
Definition object.h:20
Represents an XObject in a PDF document.
Definition xobject.h:22
Definition types.h:23
Common types.