in Deutsh
in French
in Polish

You Are At Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

cpdf_open

(PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)

cpdf_open -- Opens a new pdf document

Description

int cpdf_open ( int compression [, string filename [, array doc_limits]] )

Opens a new PDF document.

Parameters

compression

If different from 0, document compression is turned on

filename

Sets the file in which the document is written. - is a synonym for stdout.

If omitted, the document is created in memory and can either be written into a file with cpdf_save_to_file() or written to standard output with cpdf_output_buffer().

Note: Using stdout will not work if PHP is compiled as an apache module. You can solve this problem by skipping this parameter filename and using cpdf_output_buffer() later to output the PDF document.

doc_limits

An array defining the document limitation. See cpdf_global_set_document_limits() for more information

Return Values

Returns a document handle, needed as the first parameter for all other functions of the library.

See Also

cpdf_close()
cpdf_output_buffer()

5
breloki z nadrukiem
środki do sprzątania
Prezenty
Najnowsze kasy fiskalne

Another Useful functions:


function.cpdf-translate | function.cpdf-text | function.cpdf-stroke | function.cpdf-stringwidth | function.cpdf-show | function.cpdf-show-xy | function.cpdf-setrgbcolor | function.cpdf-setrgbcolor-stroke | function.cpdf-setrgbcolor-fill | function.cpdf-setmiterlimit | function.cpdf-setlinewidth | function.cpdf-setlinejoin | function.cpdf-setlinecap | function.cpdf-setgray | function.cpdf-setgray-stroke | function.cpdf-setgray-fill | function.cpdf-setflat | function.cpdf-setdash | function.cpdf-set-word-spacing | function.cpdf-set-viewer-preferences | function.cpdf-set-title | function.cpdf-set-text-rise | function.cpdf-set-text-rendering | function.cpdf-set-text-pos | function.cpdf-set-text-matrix | function.cpdf-set-subject | function.cpdf-set-page-animation | function.cpdf-set-leading | function.cpdf-set-keywords | function.cpdf-set-horiz-scaling | function.cpdf-set-font | function.cpdf-set-font-map-file | function.cpdf-set-font-directories | function.cpdf-set-current-page | function.cpdf-set-creator | function.cpdf-set-char-spacing | function.cpdf-set-action-url | function.cpdf-scale | function.cpdf-save | function.cpdf-save-to-file | function.cpdf-rotate | function.cpdf-rotate-text | function.cpdf-rmoveto | function.cpdf-rlineto | function.cpdf-restore | function.cpdf-rect | function.cpdf-place-inline-image | function.cpdf-page-init | function.cpdf-output-buffer | function.cpdf-open | function.cpdf-newpath | function.cpdf-moveto | function.cpdf-lineto | function.cpdf-import-jpeg | function.cpdf-global-set-document-limits | function.cpdf-finalize | function.cpdf-finalize-page | function.cpdf-fill | function.cpdf-fill-stroke | function.cpdf-end-text | function.cpdf-curveto | function.cpdf-continue-text | function.cpdf-closepath | function.cpdf-closepath-stroke | function.cpdf-closepath-fill-stroke | function.cpdf-close | function.cpdf-clip | function.cpdf-circle | function.cpdf-begin-text | function.cpdf-arc | function.cpdf-add-outline | function.cpdf-add-annotation |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.