PDFlib
class PDFlib (View source)
Methods
Activates a previously created structure element or other content item.
Adds a link to a web resource.
Add a link annotation to a target within the current PDF file.
Creates a named destination on an arbitrary page in the current document.
Sets an annotation for the current page.
Add a file link annotation to a PDF target.
Adds a cell to a new or existing table.
Creates a Textflow object, or adds text and explicit options to an existing Textflow.
Adds an existing image as thumbnail for the current page.
Adds a weblink annotation to a target url on the Web.
Adds a counterclockwise circular arc
Except for the drawing direction, this function behaves exactly like PDF_arc().
Adds a file attachment annotation.
Creates a new PDF file subject to various options.
Starts a Type 3 font definition.
Starts a glyph definition for a Type 3 font.
Opens a structure element or other content item with attributes supplied as options.
Starts a layer for subsequent output on the page.
Adds a new page to the document, and specifies various options. The parameters width and height are the dimensions of the new page in points.
Adds a new page to the document.
Starts a new pattern definition.
Starts a new template definition.
No description
No description
No description
No description
Closes the page handle, and frees all page-related resources
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
bool
activate_item(int $id)
Activates a previously created structure element or other content item.
bool
add_launchlink(float $llx, float $lly, float $urx, float $ury, string $filename)
Adds a link to a web resource.
bool
add_locallink(float $lowerleftx, float $lowerlefty, float $upperrightx, float $upperrighty, int $page, string $dest)
Add a link annotation to a target within the current PDF file.
bool
add_nameddest(string $name, string $optlist)
Creates a named destination on an arbitrary page in the current document.
bool
add_note(float $llx, float $lly, float $urx, float $ury, string $contents, string $title, string $icon, int $open)
Sets an annotation for the current page.
bool
add_pdflink(float $bottom_left_x, float $bottom_left_y, float $up_right_x, float $up_right_y, string $filename, int $page, string $dest)
Add a file link annotation to a PDF target.
int
add_table_cell(int $table, int $column, int $row, string $text, string $optlist)
Adds a cell to a new or existing table.
int
add_textflow(int $textflow, string $text, string $optlist)
Creates a Textflow object, or adds text and explicit options to an existing Textflow.
bool
add_thumbnail(int $image)
Adds an existing image as thumbnail for the current page.
bool
add_weblink(float $lowerleftx, float $lowerlefty, float $upperrightx, float $upperrighty, string $url)
Adds a weblink annotation to a target url on the Web.
bool
arc(float $x, float $y, float $r, float $alpha, float $beta)
Adds a counterclockwise circular arc
bool
arcn(float $x, float $y, float $r, float $alpha, float $beta)
Except for the drawing direction, this function behaves exactly like PDF_arc().
bool
attach_file(float $llx, float $lly, float $urx, float $ury, string $filename, string $description, string $author, string $mimetype, string $icon)
Adds a file attachment annotation.
int
begin_document(string $filename, string $optlist)
Creates a new PDF file subject to various options.
bool
begin_font(string $filename, float $a, float $b, float $c, float $d, float $e, float $f, string $optlist)
Starts a Type 3 font definition.
bool
begin_glyph(string $glyphname, float $wx, float $llx, float $lly, float $urx, float $ury)
Starts a glyph definition for a Type 3 font.
int
begin_item(string $tag, string $optlist)
Opens a structure element or other content item with attributes supplied as options.
bool
begin_layer(int $layer)
Starts a layer for subsequent output on the page.
bool
begin_page_ext(float $width, float $height, string $optlist)
Adds a new page to the document, and specifies various options. The parameters width and height are the dimensions of the new page in points.
bool
begin_page(float $width, float $height)
Adds a new page to the document.
int
begin_pattern(float $width, float $height, float $xstep, float $ystep, int $painttype)
Starts a new pattern definition.
int
begin_template_ext(float $width, float $height, string $optlist)
Starts a new template definition.
int
begin_template(float $width, float $height)
No description
bool
circle(float $x, float $y, float $r)
No description
bool
clip()
No description
bool
close_image(int $image)
No description
bool
close_pdi_page(int $page)
Closes the page handle, and frees all page-related resources
bool
close_pdi(int $doc)
No description
bool
close_pdi_document(int $doc)
No description
bool
close()
No description
bool
closepath_fill_stroke()
No description
bool
closepath_stroke()
No description
bool
closepath()
No description
bool
concat(float $a, float $b, float $c, float $d, float $e, float $f)
No description
bool
continue_text(string $text)
No description
int
create_3dview(string $username, string $optlist)
No description
int
create_action(string $type, string $optlist)
No description
bool
create_annotation(float $llx, float $lly, float $urx, float $ury, string $type, string $optlist)
No description
int
create_bookmark(string $text, string $optlist)
No description
bool
create_field(float $llx, float $lly, float $urx, float $ury, string $name, string $type, string $optlist)
No description
bool
create_fieldgroup(string $name, string $optlist)
No description
int
create_gstate(string $optlist)
No description
bool
create_pvf(string $filename, string $data, string $optlist)
No description
int
create_textflow(string $text, string $optlist)
No description
bool
curveto(float $x1, float $y1, float $x2, float $y2, float $x3, float $y3)
No description
int
define_layer(string $name, string $optlist)
No description
int
delete_pvf(string $filename)
No description
bool
delete_table(int $table, string $optlist)
No description
bool
delete_textflow(int $textflow)
No description
bool
delete()
No description
bool
encoding_set_char(string $encoding, int $slot, string $glyphname, int $uv)
No description
bool
end_document(string $optlist)
No description
bool
end_font()
No description
bool
end_glyph()
No description
bool
end_item(int $id)
No description
bool
end_layer()
No description
bool
end_page_ext(string $optlist)
No description
bool
end_page()
No description
bool
end_pattern()
No description
bool
end_template()
No description
bool
endpath()
No description
int
fill_imageblock(int $page, string $blockname, int $image, string $optlist)
No description
int
fill_pdfblock(int $page, string $blockname, int $contents, string $optlist)
No description
bool
fill_stroke()
No description
int
fill_textblock(int $page, string $blockname, string $text, string $optlist)
No description
bool
fill()
No description
int
findfont(string $fontname, string $encoding, int $embed)
No description
bool
fit_image(int $image, float $x, float $y, string $optlist)
No description
bool
fit_pdi_page(int $page, float $x, float $y, string $optlist)
No description
string
fit_table(int $table, float $llx, float $lly, float $urx, float $ury, string $optlist)
No description
string
fit_textflow(int $textflow, float $llx, float $lly, float $urx, float $ury, string $optlist)
No description
bool
fit_textline(string $text, float $x, float $y, string $optlist)
No description
string
get_apiname()
No description
string
get_buffer()
No description
string
get_errmsg()
No description
int
get_errnum()
No description
int
get_majorversion()
No description
int
get_minorversion()
No description
float
get_option(string $keyword, string $optlist)
No description
string
get_parameter(string $key, float $modifier)
No description
string
get_pdi_parameter(string $key, int $doc, int $page, int $reserved)
No description
float
get_pdi_value(string $key, int $doc, int $page, int $reserved)
No description
float
get_string(string $keyword, string $optlist)
No description
float
get_value(string $key, float $modifier)
No description
float
info_font(int $font, string $keyword, string $optlist)
No description
float
info_image(int $image, string $keyword, string $optlist)
No description
float
info_matchbox(string $boxname, int $num, string $keyword)
No description
float
info_graphics(int $graphics, string $keyword, string $optlist)
No description
float
info_path(int $path, string $keyword, string $optlist)
No description
float
info_pdi_page($page, string $keyword, string $optlist)
No description
float
info_pvf(string $filename, string $keyword)
No description
float
info_table(int $table, string $keyword)
No description
float
info_textflow(int $textflow, string $keyword)
No description
float
info_textline(string $text, string $keyword, string $optlist)
No description
bool
initgraphics()
No description
bool
lineto(float $x, float $y)
No description
int
load_3ddata(string $filename, string $optlist)
No description
int
load_font(string $fontname, string $encoding, string $optlist)
No description
int
load_iccprofile(string $profilename, string $optlist)
No description
int
load_image(string $imagetype, string $filename, string $optlist)
No description
int
makespotcolor(string $spotname)
No description
bool
moveto(float $x, float $y)
No description
int
open_ccitt(string $filename, int $width, int $height, int $BitReverse, int $k, int $Blackls1)
No description
bool
open_file(string $filename)
No description
int
open_image_file(string $imagetype, string $filename, string $stringparam, int $intparam)
No description
int
open_image(string $imagetype, string $source, string $data, int $length, int $width, int $height, int $components, int $bpc, string $params)
No description
int
open_memory_image(resource $image)
No description
int
open_pdi_document(string $filename, string $optlist)
No description
int
open_pdi_page(int $doc, int $pagenumber, string $optlist)
No description
int
open_pdi(string $filename, string $optlist, int $len)
No description
float
pcos_get_number(int $doc, string $path)
No description
string
pcos_get_stream(int $doc, string $optlist, string $path)
No description
string
pcos_get_string(int $doc, string $path)
No description
bool
place_image(int $image, float $x, float $y, float $scale)
No description
bool
place_pdi_page(int $page, float $x, float $y, float $sx, float $sy)
No description
bool
set_option(string $optlist)
No description
int
process_pdi(int $doc, int $page, string $optlist)
No description
bool
rect(float $x, float $y, float $width, float $height)
No description
bool
restore()
No description
bool
resume_page(string $optlist)
No description
bool
rotate(float $phi)
No description
bool
save()
No description
bool
scale(float $sx, float $sy)
No description
bool
set_border_color(float $red, float $green, float $blue)
No description
bool
set_border_dash(float $black, float $white)
No description
bool
set_border_style(string $style, float $width)
No description
bool
set_gstate(int $gstate)
No description
bool
set_info(string $key, string $value)
No description
bool
set_layer_dependency(string $type, string $optlist)
No description
bool
set_parameter(string $key, string $value)
No description
bool
set_text_pos(float $x, float $y)
No description
bool
set_value(string $key, float $value)
No description
bool
setcolor(string $fstype, string $colorspace, float $c1, float $c2, float $c3, float $c4)
No description
bool
setdash(float $b, float $w)
No description
bool
setdashpattern(string $optlist)
No description
bool
setflat(float $flatness)
No description
bool
setfont(int $font, float $fontsize)
No description
bool
setgray_fill(float $g)
No description
bool
setgray_stroke(float $g)
No description
bool
setgray(float $g)
No description
bool
setlinecap(int $linecap)
No description
bool
setlinejoin(int $value)
No description
bool
setlinewidth(float $width)
No description
bool
setmatrix(float $a, float $b, float $c, float $d, float $e, float $f)
No description
bool
setmiterlimit(float $miter)
No description
bool
setrgbcolor_fill(float $red, float $green, float $blue)
No description
bool
setrgbcolor_stroke(float $red, float $green, float $blue)
No description
bool
setrgbcolor(float $red, float $green, float $blue)
No description
int
shading_pattern(int $shading, string $optlist)
No description
int
shading(string $shtype, float $x0, float $y0, float $x1, float $y1, float $c1, float $c2, float $c3, float $c4, string $optlist)
No description
bool
shfill(int $shading)
No description
int
show_boxed(string $text, float $left, float $top, float $width, float $height, string $mode, string $feature)
No description
bool
show_xy(string $text, float $x, float $y)
No description
bool
show(string $text)
No description
bool
skew(float $alpha, float $beta)
No description
float
stringwidth(string $text, int $font, float $fontsize)
No description
bool
stroke()
No description
bool
suspend_page(string $optlist)
No description
bool
translate(float $tx, float $ty)
No description
string
utf16_to_utf8(string $utf16string)
No description
string
utf32_to_utf16(string $utf32string, string $ordering)
No description
string
utf8_to_utf16(string $utf8string, string $ordering)
No description