deno.land / x / skia_canvas@0.5.8 / native / include / pdfdocument.hpp
12345678910111213141516171819202122232425262728293031323334353637383940414243#include "include/common.hpp"#include "include/context2d.hpp"#include "include/core/SkStream.h"#include "include/docs/SkPDFDocument.h"
typedef struct sk_pdf_document { SkDynamicMemoryWStream* stream; SkDocument* pdf;} sk_pdf_document;
extern "C" { SKIA_EXPORT sk_pdf_document* sk_pdf_new( char* title, char* author, char* subject, char* keywords, char* creator, char* producer, SkTime::DateTime creation, SkTime::DateTime modified, bool pdfa, int encodingQuality ); SKIA_EXPORT sk_context* sk_pdf_begin_page( sk_pdf_document* doc, float width, float height, float x, float y, float w, float h ); SKIA_EXPORT void sk_pdf_end_page(sk_pdf_document* doc); SKIA_EXPORT int sk_pdf_write_file(sk_pdf_document* doc, char* path); SKIA_EXPORT SkData* sk_pdf_get_buffer(sk_pdf_document* doc, void** buffer, unsigned int* size); SKIA_EXPORT void sk_pdf_destroy(sk_pdf_document* doc);}
Version Info