PHP ClibPDF [deprecated] Functions
EditRocket provides the following information on ClibPDF [deprecated] functions in the PHP source code builder.
bool cpdf_add_annotation ( int $pdf_document , float $llx , float $lly , float $urx , float $ury , string $title , string $content [, int $mode ] ) - Adds a note at the specified point.
int cpdf_add_outline ( int $pdf_document , int $lastoutline , int $sublevel , int $open , int $pagenr , string $text ) - Adds a bookmark with text text that points to the current page.
bool cpdf_arc ( int $pdf_document , float $x_coor , float $y_coor , float $radius , float $start , float $end [, int $mode ] ) - Draws an arc.
bool cpdf_begin_text ( int $pdf_document ) - Starts a text section.
bool cpdf_circle ( int $pdf_document , float $x_coor , float $y_coor , float $radius [, int $mode ] ) - Draws a circle.
bool cpdf_clip ( int $pdf_document ) - Clips all drawing to the current path.
bool cpdf_close ( int $pdf_document ) - Closes the PDF document.
bool cpdf_closepath ( int $pdf_document ) - Closes the current path.
bool cpdf_closepath_fill_stroke ( int $pdf_document ) - Closes, fills the interior of the current path with the current fill color and draws current path.
bool cpdf_closepath_stroke ( int $pdf_document ) - Closes the current path and draws a line along it.
bool cpdf_continue_text ( int $pdf_document , string $text ) - Outputs the string in text in the next line.
bool cpdf_curveto ( int $pdf_document , float $x1 , float $y1 , float $x2 , float $y2 , float $x3 , float $y3 [, int $mode ] ) - Draws a Bezier curve from the current point to the point (x3, y3) using (x1, y1) and (x2, y2) as control points.
bool cpdf_end_text ( int $pdf_document ) -
bool cpdf_fill ( int $pdf_document ) - Fills the interior of the current path with the current fill color.
bool cpdf_fill_stroke ( int $pdf_document ) - Fills the interior of the current path with the current fill color and draws current path.
bool cpdf_finalize ( int $pdf_document ) - Ends the PDF document.
bool cpdf_finalize_page ( int $pdf_document , int $page_number ) - Ends the page which number is page_number.
bool cpdf_global_set_document_limits ( int $maxpages , int $maxfonts , int $maximages , int $maxannotations , int $maxobjects ) - Sets several document limits.
bool cpdf_import_jpeg ( int $pdf_document , string $file_name , float $x_coor , float $y_coor , float $angle , float $width , float $height , float $x_scale , float $y_scale , int $gsave [, int $mode ] ) - Opens a JPEG image.
bool cpdf_lineto ( int $pdf_document , float $x_coor , float $y_coor [, int $mode ] ) - The cpdf_lineto() function draws a line from the current point to the specified point.
bool cpdf_moveto ( int $pdf_document , float $x_coor , float $y_coor [, int $mode ] ) - Sets the current point to the given coordinates.
bool cpdf_newpath ( int $pdf_document ) - Starts a new path on the document.
int cpdf_open ( int $compression [, string $filename [, array $doc_limits ]] ) - Opens a new PDF document.
bool cpdf_output_buffer ( int $pdf_document ) - Outputs the pdf document to stdout.
bool cpdf_page_init ( int $pdf_document , int $page_number , int $orientation , float $height , float $width [, float $unit ] ) - Starts a new page.
bool cpdf_place_inline_image ( int $pdf_document , int $image , float $x_coor , float $y_coor , float $angle , float $width , float $height , int $gsave [, int $mode ] ) - Places an image created with the PHP image functions on the page. The image can be scaled at the same time.
bool cpdf_rect ( int $pdf_document , float $x_coor , float $y_coor , float $width , float $height [, int $mode ] ) - Draws a rectangle.
bool cpdf_restore ( int $pdf_document ) -
bool cpdf_rlineto ( int $pdf_document , float $x_coor , float $y_coor [, int $mode ] ) - The cpdf_rlineto() function draws a line from the current point to the given relative point.
bool cpdf_rmoveto ( int $pdf_document , float $x_coor , float $y_coor [, int $mode ] ) - Set the current point relative to the given coordinates.
bool cpdf_rotate ( int $pdf_document , float $angle ) - Sets the rotation in degrees to angle.
bool cpdf_rotate_text ( int $pdfdoc , float $angle ) -
bool cpdf_save ( int $pdf_document ) - Saves the current environment. It works like the postscript command gsave. Very useful if you want to translate or rotate an object without effecting other objects.
bool cpdf_save_to_file ( int $pdf_document , string $filename ) - Outputs the PDF document into a file if it has been created in memory.
bool cpdf_scale ( int $pdf_document , float $x_scale , float $y_scale ) - Sets the scaling factor in both directions.
bool cpdf_set_action_url ( int $pdfdoc , float $xll , float $yll , float $xur , float $xur , string $url [, int $mode ] ) -
bool cpdf_set_char_spacing ( int $pdf_document , float $space ) - Sets the spacing between characters.
bool cpdf_set_creator ( int $pdf_document , string $creator ) - Sets the creator of a PDF document.
bool cpdf_set_current_page ( int $pdf_document , int $page_number ) - Sets the page on which all operations are performed.
bool cpdf_set_font ( int $pdf_document , string $font_name , float $size , string $encoding ) - Sets the current font face, font size and encoding.
bool cpdf_set_font_directories ( int $pdfdoc , string $pfmdir , string $pfbdir ) -
bool cpdf_set_font_map_file ( int $pdfdoc , string $filename ) -
bool cpdf_set_horiz_scaling ( int $pdf_document , float $scale ) - Sets the horizontal scaling to scale percent.
bool cpdf_set_keywords ( int $pdf_document , string $keywords ) - Sets the keywords of the PDF document.
bool cpdf_set_leading ( int $pdf_document , float $distance ) - Sets the distance between text lines.
bool cpdf_set_page_animation ( int $pdf_document , int $transition , float $duration , float $direction , int $orientation , int $inout ) - Sets the transition between following pages.
bool cpdf_set_subject ( int $pdf_document , string $subject ) - Sets the subject of the PDF document.
bool cpdf_set_text_matrix ( int $pdf_document , array $matrix ) - Sets a matrix which describes a transformation applied on the current text font.
bool cpdf_set_text_pos ( int $pdf_document , float $x_coor , float $y_coor [, int $mode ] ) -
bool cpdf_set_text_rendering ( int $pdf_document , int $rendermode ) - Determines how the text is rendered.
bool cpdf_set_text_rise ( int $pdf_document , float $value ) - Sets the text rising to value units.
bool cpdf_set_title ( int $pdf_document , string $title ) - Sets the title of a PDF document.
bool cpdf_set_viewer_preferences ( int $pdfdoc , array $preferences ) -
bool cpdf_set_word_spacing ( int $pdf_document , float $space ) - Sets the spacing between words.
bool cpdf_setdash ( int $pdf_document , float $white , float $black ) - Sets the dash pattern to the given one. If both parameters are 0, a solid line is set.
bool cpdf_setflat ( int $pdf_document , float $value ) - Sets the flatness.
bool cpdf_setgray ( int $pdf_document , float $gray_value ) - Sets the current drawing and filling color to the given gray value.
bool cpdf_setgray_fill ( int $pdf_document , float $value ) - Sets the current gray value to fill a path.
bool cpdf_setgray_stroke ( int $pdf_document , float $gray_value ) - Sets the current drawing color to the given gray value.
bool cpdf_setlinecap ( int $pdf_document , int $value ) - Sets the linecap parameter.
bool cpdf_setlinejoin ( int $pdf_document , int $value ) - Set the linejoin parameter.
bool cpdf_setlinewidth ( int $pdf_document , float $width ) - Set the line width.
bool cpdf_setmiterlimit ( int $pdf_document , float $value ) - Sets the miter limit.
bool cpdf_setrgbcolor ( int $pdf_document , float $red_value , float $green_value , float $blue_value ) - Sets the current drawing and filling color to the given rgb color value.
bool cpdf_setrgbcolor_fill ( int $pdf_document , float $red_value , float $green_value , float $blue_value ) - Sets the current rgb color value to fill a path.
bool cpdf_setrgbcolor_stroke ( int $pdf_document , float $red_value , float $green_value , float $blue_value ) - Sets the current drawing color to the given rgb color value.
bool cpdf_show ( int $pdf_document , string $text ) - Outputs a text at the current position.
bool cpdf_show_xy ( int $pdf_document , string $text , float $x_coor , float $y_coor [, int $mode ] ) - Outputs the string text at the given position.
float cpdf_stringwidth ( int $pdf_document , string $text ) - Returns the width of the string in text.
bool cpdf_stroke ( int $pdf_document ) - Draws a line along current path.
bool cpdf_text ( int $pdf_document , string $text [, float $x_coor ], float $y_coor [, int $mode [, float $orientation [, int $alignmode ]]] ) - Outputs the string text at the given position.
bool cpdf_translate ( int $pdf_document , float $x_coor , float $y_coor ) - Sets the origin of coordinate system to the specified point.