PDF Functions
PHP provides functions that can be used to create Adobe Portable Document Format (PDF) files on the fly. See http://www.pdflib.com/ for the required pdflib library and associated documentation.
ClibPDF is an alternate PDF generation library available at
http://www.fastio.com. PHP also
supports ClibPDF, with functions that begin with
cpdf_
and are very similar to the regular
pdf_
functions.
void pdf_add_annotation(int pdfdoc, double xll,
double yll, double xur, double xur, string title, string text)
Set annotation
void pdf_add_outline(int pdfdoc, string text);
Add bookmark for current page
void pdf_add_pdflink(int pdfdoc, double llx,
double lly, double urx, double ury, string filename, int page, string dest)
Add link to PDF document
void pdf_add_weblink(int pdfdoc, double llx,
double lly, double urx, double ury, string url)
Add link to web resource
void pdf_arc(int pdfdoc, double x, double y,
double radius, double start, double end)
Draw an arc
void pdf_begin_page(int pdfdoc, double height,
double width)
Start page
void pdf_circle(int pdfdoc, double x, double y,
double radius)
Draw a circle
void pdf_clip(int pdfdoc)
Clip to current path
void pdf_close(int pdfdoc)
Close the PDF document
void pdf_close_image(int pdfimage)
Close the PDF image
void pdf_closepath(int pdfdoc)
Close path
void pdf_closepath_fill_stroke(int pdfdoc)
Close, fill, and stroke current path
void pdf_closepath_stroke(int pdfdoc)
Close path and draw line along path
void pdf_continue_text(int pdfdoc, string text)
Output ...
Get PHP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.