26#ifndef POPPLER_GLOBAL_H
27#define POPPLER_GLOBAL_H
29#include "poppler_cpp_export.h"
41class POPPLER_CPP_EXPORT noncopyable
44 noncopyable(
const noncopyable &) =
delete;
45 const noncopyable &operator=(
const noncopyable &) =
delete;
50 noncopyable &operator=(noncopyable &&other)
noexcept;
55typedef detail::noncopyable noncopyable;
93typedef std::vector<char> byte_array;
95typedef unsigned int time_type;
100# pragma warning(disable : 4251)
102class POPPLER_CPP_EXPORT
ustring :
public std::basic_string<char16_t>
106 ustring(size_type len, value_type ch);
109 byte_array to_utf8()
const;
110 std::string to_latin1()
const;
112 static ustring from_utf8(
const char *str,
int len = -1);
113 static ustring from_latin1(
const std::string &str);
117 explicit ustring(
const std::string &);
118 explicit operator std::string()
const;
119 ustring &operator=(
const std::string &);
125[[deprecated]] POPPLER_CPP_EXPORT time_type
convert_date(
const std::string &date);
129POPPLER_CPP_EXPORT std::ostream &operator<<(std::ostream &stream,
const byte_array &array);
131POPPLER_CPP_EXPORT
bool set_data_dir(
const std::string &new_data_dir);
Definition poppler-global.h:103
Single namespace containing all the classes and functions of poppler-cpp.
Definition poppler-destination.h:27
void set_debug_error_function(debug_func debug_function, void *closure)
Set a new debug/error output function.
Definition poppler-global.cpp:399
bool set_data_dir(const std::string &new_data_dir)
Sets a custom data directory for initialization of global parameters.
Definition poppler-global.cpp:372
time_type convert_date(const std::string &date)
Converts a string representing a PDF date to a value compatible with time_type.
Definition poppler-global.cpp:325
page_box_enum
A possible box of a page in a PDF document.
Definition poppler-global.h:67
@ trim_box
The "trim" box.
Definition poppler-global.h:71
@ media_box
The "media" box.
Definition poppler-global.h:68
@ crop_box
The "crop" box.
Definition poppler-global.h:69
@ art_box
The "art" box.
Definition poppler-global.h:72
@ bleed_box
The "bleed" box.
Definition poppler-global.h:70
time_t convert_date_t(const std::string &date)
Converts a string representing a PDF date to a value compatible with time_t.
Definition poppler-global.cpp:334
void(* debug_func)(const std::string &, void *)
Debug/error function.
Definition poppler-global.h:133
permission_enum
A possible permission in a PDF document.
Definition poppler-global.h:76
@ perm_assemble
The permission to allow to "assemble" a document.
Definition poppler-global.h:83
@ perm_add_notes
The permission to allow the addition or editing of annotations, and the filling of interactive form f...
Definition poppler-global.h:80
@ perm_print_high_resolution
The permission to allow the high resolution print of a document.
Definition poppler-global.h:84
@ perm_copy
The permission to allow the copy or extraction of the text in a document.
Definition poppler-global.h:79
@ perm_fill_forms
The permission to allow the filling of interactive form fields (including signature fields).
Definition poppler-global.h:81
@ perm_accessibility
The permission to allow the extracting of content (for example, text) for accessibility usage (e....
Definition poppler-global.h:82
@ perm_print
The permission to allow the print of a document.
Definition poppler-global.h:77
@ perm_change
The permission to change a document.
Definition poppler-global.h:78
case_sensitivity_enum
The case sensitivity.
Definition poppler-global.h:88
rotation_enum
The case sensitivity.
Definition poppler-global.h:59
@ rotate_90
A rotation of 90 degrees clockwise.
Definition poppler-global.h:61
@ rotate_0
A rotation of 0 degrees clockwise.
Definition poppler-global.h:60
@ rotate_180
A rotation of 180 degrees clockwise.
Definition poppler-global.h:62
@ rotate_270
A rotation of 270 degrees clockwise.
Definition poppler-global.h:63