It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class Pdf


PDF Color class

Extended by Com\Tecnick\Color\Web
Extended by Com\Tecnick\Color\Spot
Extended by Com\Tecnick\Color\Pdf
Namespace: Com\Tecnick\Color
Package: Color
Category: Library
Copyright: 2015-2015 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni [email protected]
Since: 2015-02-21
Located at Pdf.php
Methods summary
public array
# getJsMap( )

Return the Js color array of names

public string
# getJsColorString( string|object $color )

Convert color to javascript string

public object
# getColorObject( string $color )

Returns a color object from an HTML, CSS or Spot color representation.

public string
# getPdfColor( string $color, boolean $stroke = false, float $tint = 1 )

Get the color components format used in PDF documents NOTE: the alpha channel is omitted

public string
# getPdfRgbComponents( string $color )

Get the RGB color components format used in PDF documents

Methods inherited from Com\Tecnick\Color\Spot
addSpotColor(), getPdfSpotObjects(), getPdfSpotResources(), getSpotColor(), getSpotColorObj(), getSpotColors(), normalizeSpotColorName()
Methods inherited from Com\Tecnick\Color\Web
extractHexCode(), getClosestWebColor(), getColorObj(), getHexFromName(), getMap(), getNameFromHex(), getRgbObjFromHex(), getRgbObjFromName(), getRgbSquareDistance(), normalizeValue()
Methods inherited from Com\Tecnick\Color\Css
getColorObjFromCss(), getColorObjFromJs()
Properties summary
protected static array $jscolor

Array of valid JavaScript color names to be used in PDF documents

# array( 'transparent', 'black', 'white', 'red', 'green', 'blue', 'cyan', 'magenta', 'yellow', 'dkGray', 'gray', 'ltGray', )
Properties inherited from Com\Tecnick\Color\Spot
$default_spot_colors, $spot_colors
Properties inherited from Com\Tecnick\Color\Web

? 2004-2019 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy