You guys should give FPDF a try as well.
It is a cool library for generating .pdf documents from .PHP scripts.
Here we go: http://www.fpdf.org/
- Introducción
- Installing/Configuring
- Constantes predefinidas
- Ejemplos
- PDF Functions
- PDF_activate_item — Activate structure element or other content item
- pdf_add_annotation — Adds annotation
- PDF_add_bookmark — Add bookmark for current page [deprecated]
- PDF_add_launchlink — Add launch annotation for current page [deprecated]
- PDF_add_locallink — Add link annotation for current page [deprecated]
- PDF_add_nameddest — Create named destination
- PDF_add_note — Set annotation for current page [deprecated]
- PDF_add_outline — Adds bookmark for current page
- PDF_add_pdflink — Add file link annotation for current page [deprecated]
- PDF_add_table_cell — Add a cell to a new or existing table
- PDF_add_textflow — Create Textflow or add text to existing Textflow
- PDF_add_thumbnail — Add thumbnail for current page
- PDF_add_weblink — Add weblink for current page [deprecated]
- PDF_arc — Draws an arc
- PDF_arcn — Draw a clockwise circular arc segment
- PDF_attach_file — Add file attachment for current page [deprecated]
- PDF_begin_document — Create new PDF file
- PDF_begin_font — Start a Type 3 font definition
- PDF_begin_glyph — Start glyph definition for Type 3 font
- PDF_begin_item — Open structure element or other content item
- PDF_begin_layer — Start layer
- PDF_begin_page_ext — Start new page
- PDF_begin_page — Starts new page
- PDF_begin_pattern — Start pattern definition
- PDF_begin_template_ext — Start template definition
- PDF_begin_template — Start template definition [deprecated]
- PDF_circle — Draws a circle
- PDF_clip — Clips to current path
- PDF_close_image — Closes an image
- PDF_close_pdi_page — Close the page handle
- PDF_close_pdi — Close the input PDF document [deprecated]
- PDF_close — Closes a pdf document
- PDF_closepath_fill_stroke — Closes, fills and strokes current path
- PDF_closepath_stroke — Closes path and draws line along path
- PDF_closepath — Closes path
- PDF_concat — Concatenate a matrix to the CTM
- PDF_continue_text — Outputs text in next line
- PDF_create_3dview — Create 3D view
- PDF_create_action — Create action for objects or events
- PDF_create_annotation — Create rectangular annotation
- PDF_create_bookmark — Create bookmark
- PDF_create_field — Create form field
- PDF_create_fieldgroup — Create form field group
- PDF_create_gstate — Create graphics state object
- PDF_create_pvf — Create PDFlib virtual file
- PDF_create_textflow — Create textflow object
- PDF_curveto — Draws a curve
- PDF_define_layer — Create layer definition
- PDF_delete_pvf — Delete PDFlib virtual file
- PDF_delete_table — Delete table object
- PDF_delete_textflow — Delete textflow object
- PDF_delete — Delete PDFlib object
- PDF_encoding_set_char — Add glyph name and/or Unicode value
- PDF_end_document — Close PDF file
- PDF_end_font — Terminate Type 3 font definition
- PDF_end_glyph — Terminate glyph definition for Type 3 font
- PDF_end_item — Close structure element or other content item
- PDF_end_layer — Deactivate all active layers
- PDF_end_page_ext — Finish page
- PDF_end_page — Ends a page
- PDF_end_pattern — Finish pattern
- PDF_end_template — Finish template
- PDF_endpath — Ends current path
- PDF_fill_imageblock — Fill image block with variable data
- PDF_fill_pdfblock — Fill PDF block with variable data
- PDF_fill_stroke — Fills and strokes current path
- PDF_fill_textblock — Fill text block with variable data
- PDF_fill — Fills current path
- PDF_findfont — Prepare font for later use [deprecated]
- PDF_fit_image — Place image or template
- PDF_fit_pdi_page — Place imported PDF page
- PDF_fit_table — Place table on page
- PDF_fit_textflow — Format textflow in rectangular area
- PDF_fit_textline — Place single line of text
- PDF_get_apiname — Get name of unsuccessfull API function
- PDF_get_buffer — Get PDF output buffer
- PDF_get_errmsg — Get error text
- PDF_get_errnum — Get error number
- PDF_get_font — Get font [deprecated]
- PDF_get_fontname — Get font name [deprecated]
- PDF_get_fontsize — Font handling [deprecated]
- PDF_get_image_height — Get image height [deprecated]
- PDF_get_image_width — Get image width [deprecated]
- PDF_get_majorversion — Get major version number [deprecated]
- PDF_get_minorversion — Get minor version number [deprecated]
- PDF_get_parameter — Gets certain parameters
- PDF_get_pdi_parameter — Get PDI string parameter [deprecated]
- PDF_get_pdi_value — Get PDI numerical parameter [deprecated]
- PDF_get_value — Gets certain numerical value
- PDF_info_font — Query detailed information about a loaded font
- PDF_info_matchbox — Query matchbox information
- PDF_info_table — Retrieve table information
- PDF_info_textflow — Query textflow state
- PDF_info_textline — Perform textline formatting and query metrics
- PDF_initgraphics — Reset graphic state
- PDF_lineto — Draws a line
- PDF_load_3ddata — Load 3D model
- PDF_load_font — Search and prepare font
- PDF_load_iccprofile — Search and prepare ICC profile
- PDF_load_image — Open image file
- PDF_makespotcolor — Make spot color
- PDF_moveto — Sets current point
- PDF_new — Create PDFlib object
- PDF_open_ccitt — Open raw CCITT image [deprecated]
- PDF_open_file — Create PDF file [deprecated]
- PDF_open_gif — Opens a GIF image
- PDF_open_image_file — Read image from file [deprecated]
- PDF_open_image — Use image data [deprecated]
- PDF_open_jpeg — Opens a JPEG image
- PDF_open_memory_image — Opens an image created with PHP's image functions
- PDF_open_pdi_page — Prepare a page
- PDF_open_pdi — Open PDF file [deprecated]
- PDF_open_tiff — Open TIFF image [deprecated]
- PDF_pcos_get_number — Get value of pCOS path with type number or boolean
- PDF_pcos_get_stream — Get contents of pCOS path with type stream, fstream, or string
- PDF_pcos_get_string — Get value of pCOS path with type name, string, or boolean
- PDF_place_image — Places an image on the page
- PDF_place_pdi_page — Place PDF page [deprecated]
- PDF_process_pdi — Process imported PDF document
- PDF_rect — Draws a rectangle
- PDF_restore — Restores formerly saved environment
- PDF_resume_page — Resume page
- PDF_rotate — Sets rotation
- PDF_save — Saves the current environment
- PDF_scale — Sets scaling
- PDF_set_border_color — Sets color of border around links and annotations
- PDF_set_border_dash — Sets dash style of border around links and annotations
- PDF_set_border_style — Sets style of border around links and annotations
- PDF_set_char_spacing — Sets character spacing
- PDF_set_duration — Sets duration between pages
- PDF_set_gstate — Activate graphics state object
- PDF_set_horiz_scaling — Sets horizontal scaling of text
- PDF_set_info_author — Fill the author document info field [deprecated]
- PDF_set_info_creator — Fill the creator document info field [deprecated]
- PDF_set_info_keywords — Fill the keywords document info field [deprecated]
- PDF_set_info_subject — Fill the subject document info field [deprecated]
- PDF_set_info_title — Fill the title document info field [deprecated]
- PDF_set_info — Fills a field of the document information
- PDF_set_layer_dependency — Define relationships among layers
- PDF_set_leading — Sets distance between text lines
- PDF_set_parameter — Sets certain parameters
- PDF_set_text_matrix — Sets the text matrix
- PDF_set_text_pos — Sets text position
- PDF_set_text_rendering — Determines how text is rendered
- PDF_set_text_rise — Sets the text rise
- PDF_set_value — Sets certain numerical value
- PDF_set_word_spacing — Sets spacing between words
- PDF_setcolor — Set fill and stroke color
- PDF_setdash — Sets dash pattern
- PDF_setdashpattern — Set dash pattern
- PDF_setflat — Sets flatness
- PDF_setfont — Set font
- PDF_setgray_fill — Sets filling color to gray value
- PDF_setgray_stroke — Sets drawing color to gray value
- PDF_setgray — Sets drawing and filling color to gray value
- PDF_setlinecap — Sets linecap parameter
- PDF_setlinejoin — Sets linejoin parameter
- PDF_setlinewidth — Sets line width
- PDF_setmatrix — Set current transformation matrix
- PDF_setmiterlimit — Sets miter limit
- PDF_setpolydash — Set complicated dash pattern [deprecated]
- PDF_setrgbcolor_fill — Sets filling color to rgb color value
- PDF_setrgbcolor_stroke — Sets drawing color to rgb color value
- PDF_setrgbcolor — Sets drawing and filling color to rgb color value
- PDF_shading_pattern — Define shading pattern
- PDF_shading — Define blend
- PDF_shfill — Fill area with shading
- PDF_show_boxed — Output text in a box
- PDF_show_xy — Output text at given position
- PDF_show — Output text at current position
- PDF_skew — Skews the coordinate system
- PDF_stringwidth — Returns width of text using current font
- PDF_stroke — Draws line along path
- PDF_suspend_page — Suspend page
- PDF_translate — Sets origin of coordinate system
- PDF_utf16_to_utf8 — Convert string from UTF-16 to UTF-8
- PDF_utf32_to_utf16 — Convert string from UTF-32 to UTF-16
- PDF_utf8_to_utf16 — Convert string from UTF-8 to UTF-16
rod at wgo dot com dot br
26-Sep-2008 08:41
26-Sep-2008 08:41
wardenik ( at ) gmail.com
01-Jul-2008 07:02
01-Jul-2008 07:02
Here is a nice and open-source library for generating PDF output:
http://www.tcpdf.org/
Have fun!
php at morelightmorelight dot com
09-May-2008 01:13
09-May-2008 01:13
ezpdf http://www.ros.co.nz/pdf/ is also an easy alternative to this. It suffices for most pdf tasks and is quick to pick up.
I also created a modified version of ezpdf that supports rotated text: http://www.morelightmorelight.com/projects/walletpdf/
