42#if CAIRO_HAS_PDF_SURFACE
67 double width_in_points,
68 double height_in_points);
73 double width_in_points,
74 double height_in_points);
89 double width_in_points,
90 double height_in_points);
111#define CAIRO_PDF_OUTLINE_ROOT 0
117 const char *link_attribs,
167# error Cairo was not compiled with support for the pdf backend
enum _cairo_pdf_outline_flags cairo_pdf_outline_flags_t
cairo_public void cairo_pdf_surface_set_page_label(cairo_surface_t *surface, const char *utf8)
cairo_public void cairo_pdf_surface_set_thumbnail_size(cairo_surface_t *surface, int width, int height)
cairo_public void cairo_pdf_get_versions(cairo_pdf_version_t const **versions, int *num_versions)
enum _cairo_pdf_metadata cairo_pdf_metadata_t
@ CAIRO_PDF_OUTLINE_FLAG_ITALIC
@ CAIRO_PDF_OUTLINE_FLAG_BOLD
@ CAIRO_PDF_OUTLINE_FLAG_OPEN
cairo_public cairo_surface_t * cairo_pdf_surface_create_for_stream(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points)
cairo_public int cairo_pdf_surface_add_outline(cairo_surface_t *surface, int parent_id, const char *utf8, const char *link_attribs, cairo_pdf_outline_flags_t flags)
cairo_public void cairo_pdf_surface_set_custom_metadata(cairo_surface_t *surface, const char *name, const char *value)
cairo_public cairo_surface_t * cairo_pdf_surface_create(const char *filename, double width_in_points, double height_in_points)
@ CAIRO_PDF_METADATA_SUBJECT
@ CAIRO_PDF_METADATA_CREATOR
@ CAIRO_PDF_METADATA_AUTHOR
@ CAIRO_PDF_METADATA_KEYWORDS
@ CAIRO_PDF_METADATA_TITLE
@ CAIRO_PDF_METADATA_CREATE_DATE
@ CAIRO_PDF_METADATA_MOD_DATE
CAIRO_BEGIN_DECLS enum _cairo_pdf_version cairo_pdf_version_t
cairo_public void cairo_pdf_surface_set_metadata(cairo_surface_t *surface, cairo_pdf_metadata_t metadata, const char *utf8)
cairo_public const char * cairo_pdf_version_to_string(cairo_pdf_version_t version)
cairo_public void cairo_pdf_surface_restrict_to_version(cairo_surface_t *surface, cairo_pdf_version_t version)
cairo_public void cairo_pdf_surface_set_size(cairo_surface_t *surface, double width_in_points, double height_in_points)
#define CAIRO_BEGIN_DECLS
struct _cairo_surface cairo_surface_t
cairo_status_t(* cairo_write_func_t)(void *closure, const unsigned char *data, unsigned int length)