2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QPDFWRITER_H
|
|
|
|
#define GEN_QPDFWRITER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QIODevice;
|
|
|
|
class QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QPagedPaintDevice__Margins)
|
|
|
|
typedef QPagedPaintDevice::Margins QPagedPaintDevice__Margins;
|
|
|
|
#else
|
|
|
|
class QPagedPaintDevice__Margins;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
class QPdfWriter;
|
|
|
|
class QSizeF;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QPagedPaintDevice__Margins QPagedPaintDevice__Margins;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QPdfWriter QPdfWriter;
|
|
|
|
typedef struct QSizeF QSizeF;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QPdfWriter* QPdfWriter_new(const char* filename, size_t filename_Strlen);
|
|
|
|
QPdfWriter* QPdfWriter_new2(QIODevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QPdfWriter_MetaObject(const QPdfWriter* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QPdfWriter_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QPdfWriter_SetPdfVersion(QPdfWriter* self, uintptr_t version);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPdfWriter_PdfVersion(const QPdfWriter* self);
|
|
|
|
void QPdfWriter_Title(const QPdfWriter* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetTitle(QPdfWriter* self, const char* title, size_t title_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QPdfWriter_Creator(const QPdfWriter* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetCreator(QPdfWriter* self, const char* creator, size_t creator_Strlen);
|
|
|
|
bool QPdfWriter_NewPage(QPdfWriter* self);
|
|
|
|
void QPdfWriter_SetResolution(QPdfWriter* self, int resolution);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPdfWriter_Resolution(const QPdfWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetDocumentXmpMetadata(QPdfWriter* self, QByteArray* xmpMetadata);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QPdfWriter_DocumentXmpMetadata(const QPdfWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_AddFileAttachment(QPdfWriter* self, const char* fileName, size_t fileName_Strlen, QByteArray* data);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_SetPageSize(QPdfWriter* self, uintptr_t size);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetPageSizeMM(QPdfWriter* self, QSizeF* size);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_SetMargins(QPdfWriter* self, QPagedPaintDevice__Margins* m);
|
|
|
|
void QPdfWriter_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QPdfWriter_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QPdfWriter_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QPdfWriter_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_AddFileAttachment3(QPdfWriter* self, const char* fileName, size_t fileName_Strlen, QByteArray* data, const char* mimeType, size_t mimeType_Strlen);
|
|
|
|
void QPdfWriter_Delete(QPdfWriter* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|