If you are using Windows XP SP2 or later and you are going to download the documentation in CHM format, you need to "unblock" the file after downloading it by. Close the input PDF document [deprecated]; PDF_close — Close pdf resource [deprecated]; PDF_closepath_fill_stroke — Close, fill and stroke current path. The members of the PHP Documentation Group are listed on the front page of this manual. .. Forms Data Format functions. .. PDF functions.
|Language:||English, German, Portuguese|
|ePub File Size:||27.58 MB|
|PDF File Size:||9.76 MB|
|Distribution:||Free* [*Registration Required]|
I personally use longmogedwapor.cf version of the manual - there are plenty of chm file readers for linux and OSX out there that can be used. It also offers integrated search. You don't have to convert it or anything - here is a download section where you can get it in different formats [ Download documentation ]. This manual describes the PHP extensions and interfaces that can be used with Document generated on: (revision: ).
The syntax of the shorthand property is: margin : top right bottom left If there are only: three values: then the left margin is set equal to the right margin; two values: then the left margin is set equal to the right margin, and the bottom margin is set equal to the top margin; one value: then all margins are made equal.
Prince expands the margin properties with margin-inside and margin-outside , defining the margin respectively on the inside or outside of a spread: inside is on the right when used on a left-facing page, and on left on a right-facing page; outside is on the left when used on a left-facing page, and on the right on a right-facing page.
Always keep in mind that margin-top and margin-bottom of blocks are combined i. The notable exception is the behavior of margins in Flex Layout. Border The border of a box can be styled with several border properties.
The borders can either be individually styled with border-top , border-right , border-bottom and border-left , or the shorthand property border can be used to style all four borders of the box in the same way. To style the borders, the border-color , border-style and border-width properties can be used. For each of them, also top, right, bottom and left variants are available to style each border separately. The property border-radius property can be used for styling rounded corners.
The border-clip property splits the borders into parts along the border edge - the first part is visible, the second one is invisible, the third part is visible, etc. Padding The property padding defines the padding inside the box model. Each padding's size can be set individually with the properties padding-top , padding-bottom , padding-left and padding-right , or you can use the shorthand property padding to specify all four paddings together.
The syntax of the shorthand property is: padding : top right bottom left If there are only: three values: then the left padding is set equal to the right padding; two values: then the left padding is set equal to the right padding, and the bottom padding is set equal to the top padding; one value: then all paddings are made equal. Background The background of an element can be styled with the background-color and the background-image properties, or with the shorthand property background.
See also Background Images. Various standard properties are available to position the background, to clip it or to determine whether, and how it should be repeated. Prince extends control on the background with the prince-background-image-resolution property, used to control image size in print see Image Size. Most elements are displayed as either block or inline elements.
The default display value can be changed with the display property. A block element always starts on a new line and takes up all the available width.
Interactive User Guide
An inline element, on the other hand, does not start on a new line, and only takes up as much space as necessary. A hybrid type, namely the inline-block element, is like inline elements, but it can have a width and a height - which can be very useful when you want to create a grid of CSS boxes that fills all the width and wraps nicely.
The inside of an inline-block element is formatted like a block box. Care needs to be taken with inline-block elements, because Prince cannot split them over several pages.
The value run-in displays a block element as if it were an inline element at the beginning of the following block element. With the value list-item, the element is effectively transformed into a list item - for more on lists, please see the chapter Lists. The value flex enables Flex Layout , while inline-flex makes an element behave like an inline element and lays out its content according to the flex layout model.
Several values refer to Tables , making elements behave as if they were table elements. However, the value inline-table has no direct equivalent in HTML - it behaves like a table HTML element, but as an inline element, rather than a block element.
Inside the table box is a block context. The special value none, which removes the content from the document, is very useful when hiding certain elements in the printed layout.
Transformations Prince supports CSS transformations of Level 1, with some limitations: it recognizes transform and transform-origin, but does not recognize transform-box. Furthermore, Prince does not allow perspective transforms. The transform property can be used to rotate, translate, scale or skew an element.
The transform property currently does not affect SVG elements - they need to use their own transform attribute instead see SVG Transformations. The transform property function rotate rotates the element clockwise from its current position.
Negative values rotate conter-clockwise. The functions translatex and translatey move the element along one of those axis only.
The function translate3d is supported if the Z third coordinate is zero, thus making it equivalent to the 2D translate. The function scale affects the size of the element - note that this also alters other properties of an element, such as its font-size , padding , height and width.
The functions scalex and scaley transform the element in one dimension only. After choosing an appropriate typeface for your text with the font-family property see Fonts , you can assign it different sizes with the font-size property. Next up you should decide whether to give it some color.
The default text color for a page is defined in the body selector, but each selector can have its own color. All of these properties can also be set with the shorthand property font.
It is also possible to style the vertical alignment of text in an inline box with the vertical-align property. The value baseline is the default, sub and super align the baseline of the element with the subscript-baseline or superscript-baseline of its parent respectively. The text-top and text-bottom values align the top of the element with the top or bottom of the parent's font, while middle aligns the middle of the element with the baseline plus half the x-height of the parent.
In order to determine how compact the text should be displayed, the letter-spacing can be used. Alternatively, the property font-stretch might be used, but note that it does not change the geometry of any arbitrary font by stretching or shrinking it - instead, it merely instructs Prince to choose the most appropriate face of the font, if the selected font offers several ones. Also note that this property is not supported for system fonts on Windows. In a similar fashion, the property word-spacing can be used to determine the distance between words.
The directionality of the text is controlled through the Writing Mode.
Paragraph formatting Now that you have decided on the basic properties of the text, you can turn your attention to styling the paragraphs. The text-align property is used to control how text is aligned within its containing box, while the text-indent property determines the indentation of the first line of text in the element.
If the text-align property has a value of left, right or center, the text will be aligned to the left, right or center respectively. The justify value instructs Prince to justify text. It is not uncommon, in printed texts, to align text based on whether the text appears on a left or right page.
To support this, two new keywords are added to the text-align property: inside is the same as 'left' on right pages and 'right' on left pages, and outside is the same as 'right' on left pages and 'left' on right pages.
Prince adds the property prince-text-justify to define how to treat justified text for CJK languages. The value prince-cjk allows space to be inserted between CJK characters when justifying even if there aren't any space characters. The last line of an element can receive its own alignment style with the text-align-last property. It takes the same values as text-align. The selector ::first-letter is useful for this purpose. In the following example we are selecting the first letter of the first paragraph, which gets styled much bigger than the normal text, and gets floated to the left.
The normal text is wrapping around this first large letter. The property line-height can be used to determine the height of text lines. The property line-stacking-strategy allows to choose whether individual lines should have their height determined based on their content, or whether all lines in a paragraph should have the same height, or a compromise where their heights are determined by their content and then rounded up to a multiple of the paragraph line height.
In order to lay out text in a well-balanced way, it might at times be necessary to hyphenate some words - to enable hyphenation, the hyphens property is used. For details please refer to the section on Hyphenation. Prince also allows for line-breaking in certain situations even in the absence of whitespace - for example, after slashes in long URLs. This behavior can be disabled with the prince-linebreak-magic property for situations in which more precise control over line-breaking is preferred.
The property overflow-wrap controls wrapping behavior of last resort: whether it is better for a word to overflow its container, or to be broken at an arbitrary point subject to white-space , and not splitting within a grapheme cluster , without adding a hyphen.
Prince does not support the value break-word of the property word-break to achieve a similar effect. Use the value break-all of word-break , or the property overflow-wrap with the value break-word instead. Writing Mode A writing mode describes the directionality of a script, i.
To control the rendering of the text, a couple of CSS properties can be used: the direction property defines the inline direction of the script, that is left-to-right like e. Latin or Indic scripts or right-to-left like e.
Arabic and Hebrew scripts. The writing-mode property, on the other hand, describes the block direction of the script, namely whether the text should be laid out horizontally, top-to-bottom like e. Latin or Arabic scripts , or vertically, right-to-left like e.
Chinese scripts. Postnet source-class-Com. Raw source-class-Com. RoyalMailFourCc source-class-Com. StandardTwoOfFive source-class-Com. UpcA source-class-Com. UpcE source-class-Com. Square source-class-Com.
Datamatrix source-class-Com. Data source-class-Com. Encode source-class-Com. EncodeTxt source-class-Com.
ErrorCorrection source-class-Com. Modes source-class-Com. Placement source-class-Com. Steps source-class-Com. PdfFourOneSeven source-class-Com. Compaction source-class-Com. Sequence source-class-Com. ByteStream source-class-Com.
Encoder source-class-Com. EncodingMode source-class-Com. Estimate source-class-Com. Init source-class-Com. InputItem source-class-Com. Mask source-class-Com. MaskNum source-class-Com.
Spec source-class-Com. SpecRs source-class-Com. Split source-class-Com.
Css class-Com. Model class-Com. Cmyk class-Com. Gray class-Com. Hsl class-Com.
Rgb class-Com. Template class-Com. Pdf class-Com. Spot class-Com. Web namespace-Com namespace-Com. Color namespace-Com. Model source-class-Com. Css source-class-Com. Cmyk source-class-Com. Gray source-class-Com. Hsl source-class-Com. Rgb source-class-Com. Template source-class-Com.
Pdf source-class-Com. Spot source-class-Com. Byte class-Com. Cache class-Com. Dir class-Com. File namespace-Com namespace-Com. File source-class-Com. Byte source-class-Com. Cache source-class-Com. Dir source-class-Com. ClassObjects class-Com. MetaInfo class-Com. Output class-Com.
Interactive User Guide
Tcpdf namespace-Com namespace-Com. ClassObjects source-class-Com. MetaInfo source-class-Com. Output source-class-Com. Compute class-Com. Encrypt class-Com. AES class-Com. AESSixteen class-Com. AESThirtytwo class-Com. AESnopad class-Com. MDFiveSixteen class-Com. RCFour class-Com. RCFourFive class-Com.
Seed namespace-Com namespace-Com. Pdf namespace-Com. Encrypt namespace-Com. Compute source-class-Com. Encrypt source-class-Com. AES source-class-Com. AESSixteen source-class-Com.
AESnopad source-class-Com. MDFiveSixteen source-class-Com. RCFour source-class-Com. RCFourFive source-class-Com. RCFourSixteen source-class-Com. Filter class-Com. AsciiEightFive class-Com.
AsciiHex class-Com. CcittFax class-Com. Crypt class-Com. Dct class-Com. Flate class-Com. JbigTwo class-Com. Jpx class-Com. Lzw class-Com. RunLength namespace-Com namespace-Com. Filter namespace-Com. Filter source-class-Com. AsciiEightFive source-class-Com. AsciiHex source-class-Com. CcittFax source-class-Com. Crypt source-class-Com.It uses array formats for message.
To support this, two new keywords are added to the text-align property: inside is the same as 'left' on right pages and 'right' on left pages, and outside is the same as 'right' on left pages and 'left' on right pages. In the following chapters we shall go through the main points when preparing the layout of a page.
When calling Gettext in code, you will have to specify the number related to the sentence, and it will work out the correct form to use - even using string substitution if needed. Columns change their orientation when the writing mode is changed - writing-mode vertical-rl arranges the columns horizontally, top-to-bottom. The property line-stacking-strategy allows to choose whether individual lines should have their height determined based on their content, or whether all lines in a paragraph should have the same height, or a compromise where their heights are determined by their content and then rounded up to a multiple of the paragraph line height.
Compute source-class-Com. Yes, agree.