-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf_x.h
38 lines (29 loc) · 850 Bytes
/
pdf_x.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "wkhtmltox/pdf.h"
#include "wkconst.h"
#include "page_data.h"
namespace page_snap
{
class pdf_x
{
public:
pdf_x();;
virtual ~pdf_x();
public:
pdf_x& init_wk(const page_snap::wk_params& data);
page_result save();
public:
pdf_x& set_warning_callback(wkhtmltopdf_str_callback cb);
pdf_x& set_error_callback(wkhtmltopdf_str_callback cb);
pdf_x& set_phase_changed_callback(wkhtmltopdf_void_callback cb);
pdf_x& set_progress_changed_callback(wkhtmltopdf_int_callback cb);
pdf_x& set_finished_callback(wkhtmltopdf_int_callback cb);
private:
std::vector<std::string> object_setting_key() const;
std::vector<std::string> global_setting_key() const;
private:
wkhtmltopdf_converter* m_converter;
wkhtmltopdf_object_settings* m_object_setting;
wkhtmltopdf_global_settings* m_global_setting;
};
}