38class POPPLER_CPP_EXPORT
document :
public poppler::noncopyable
64 bool is_locked()
const;
65 bool unlock(
const std::string &owner_password,
const std::string &user_password);
67 page_mode_enum page_mode()
const;
68 page_layout_enum page_layout()
const;
69 void get_pdf_version(
int *major,
int *minor)
const;
70 std::vector<std::string> info_keys()
const;
72 ustring info_key(
const std::string &key)
const;
73 bool set_info_key(
const std::string &key,
const ustring &val);
75 [[deprecated]] time_type info_date(
const std::string &key)
const;
76 [[deprecated]]
bool set_info_date(
const std::string &key, time_type val);
77 time_t info_date_t(
const std::string &key)
const;
78 bool set_info_date_t(
const std::string &key, time_t val);
80 ustring get_title()
const;
81 bool set_title(
const ustring &title);
82 ustring get_author()
const;
83 bool set_author(
const ustring &author);
84 ustring get_subject()
const;
85 bool set_subject(
const ustring &subject);
86 ustring get_keywords()
const;
87 bool set_keywords(
const ustring &keywords);
88 ustring get_creator()
const;
89 bool set_creator(
const ustring &creator);
90 ustring get_producer()
const;
91 bool set_producer(
const ustring &producer);
92 [[deprecated]] time_type get_creation_date()
const;
93 [[deprecated]]
bool set_creation_date(time_type creation_date);
94 time_t get_creation_date_t()
const;
95 bool set_creation_date_t(time_t creation_date);
96 [[deprecated]] time_type get_modification_date()
const;
97 [[deprecated]]
bool set_modification_date(time_type mod_date);
98 time_t get_modification_date_t()
const;
99 bool set_modification_date_t(time_t mod_date);
103 bool is_encrypted()
const;
104 bool is_linearized()
const;
105 bool has_permission(permission_enum which)
const;
106 ustring metadata()
const;
107 bool get_pdf_id(std::string *permanent_id, std::string *update_id)
const;
110 page *create_page(
const ustring &label)
const;
111 page *create_page(
int index)
const;
113 std::vector<font_info> fonts()
const;
114 font_iterator *create_font_iterator(
int start_page = 0)
const;
116 toc *create_toc()
const;
118 bool has_embedded_files()
const;
119 std::vector<embedded_file *> embedded_files()
const;
123 std::map<std::string, destination> create_destination_map()
const;
125 bool save(
const std::string &file_name)
const;
126 bool save_a_copy(
const std::string &file_name)
const;
128 static document *load_from_file(
const std::string &file_name,
const std::string &owner_password = std::string(),
const std::string &user_password = std::string());
129 static document *load_from_data(byte_array *file_data,
const std::string &owner_password = std::string(),
const std::string &user_password = std::string());
130 static document *load_from_raw_data(
const char *file_data,
int file_data_length,
const std::string &owner_password = std::string(),
const std::string &user_password = std::string());
133 explicit document(document_private &dd);
136 friend class document_private;