按照官方的说法:Cairo is a vector graphics library with cross-device output support.
翻译过来
源代码在线查看: cairo-pdf-surfaces.html
PDF Surfaces Cairo: A Vector Graphics Library Top | Description PDF Surfaces PDF Surfaces — Rendering PDF documents Synopsis cairo_surface_t* cairo_pdf_surface_create (const char *filename, double width_in_points, double height_in_points); 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); void cairo_pdf_surface_set_size (cairo_surface_t *surface, double width_in_points, double height_in_points); Description Details cairo_pdf_surface_create () cairo_surface_t* cairo_pdf_surface_create (const char *filename, double width_in_points, double height_in_points); Since 1.2 cairo_pdf_surface_create_for_stream () 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); Since 1.2 cairo_pdf_surface_set_size () void cairo_pdf_surface_set_size (cairo_surface_t *surface, double width_in_points, double height_in_points); Since 1.2