|
@@ -341,6 +341,16 @@ CAPI(wkhtmltopdf_global_settings *) wkhtmltopdf_create_global_settings() {
|
|
|
return reinterpret_cast<wkhtmltopdf_global_settings *>(new settings::PdfGlobal());
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * \brief Destroy a global settings object
|
|
|
+ *
|
|
|
+ * Normally one would not need to call this since ownership of the
|
|
|
+ * settings object is transfarred to the converter.
|
|
|
+ */
|
|
|
+CAPI(void) wkhtmltopdf_destroy_global_settings(wkhtmltopdf_global_settings * obj) {
|
|
|
+ delete reinterpret_cast<settings::PdfGlobal *>(obj);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* \brief Alter a setting in a global settings object
|
|
|
*
|
|
@@ -387,6 +397,17 @@ CAPI(wkhtmltopdf_object_settings *) wkhtmltopdf_create_object_settings() {
|
|
|
return reinterpret_cast<wkhtmltopdf_object_settings *>(new settings::PdfObject());
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * \brief Destroy a global settings object
|
|
|
+ *
|
|
|
+ * Normally one would not need to call this since ownership of the
|
|
|
+ * settings object is transfarred to the converter.
|
|
|
+ */
|
|
|
+CAPI(void) wkhtmltopdf_destroy_object_settings(wkhtmltopdf_object_settings * obj) {
|
|
|
+ delete reinterpret_cast<settings::PdfObject *>(obj);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* \brief Alter a setting in a object settings object
|
|
|
*
|