tc-lib-pdf | TCPDF - PHP PDF Library - https : //tcpdf.org | Document Editor library
kandi X-RAY | tc-lib-pdf Summary
kandi X-RAY | tc-lib-pdf Summary
PHP library for generating PDF documents on-the-fly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the catalog file
- Get XMP record
- Get outline markup .
- Sign a pdf document
- Initialize class objects
- Get the viewer preferences
- Get the meta info
- Set the display mode .
- Enables the signature approval .
tc-lib-pdf Key Features
tc-lib-pdf Examples and Code Snippets
Community Discussions
Trending Discussions on tc-lib-pdf
QUESTION
TCPDF allows to set the text color by SetTextColor
method but I wasn't able to find any method to get the current text color. Is this simply not supported or did I missed something?
Use case: I'm writing a reusable helper for TCPDF which needs to modify text color but should reset it after it's done.
Disclaimer: I know that current version of TCPDF is deprecreated but the new version is not ready yet. I know that there are other options to render PDFs (e.g. chrome headless), which are easier to use and more stable for many use cases, but I can't use them cause my use cases require functionality not possible with HTML / CSS.
...ANSWER
Answered 2018-Aug-28 at 08:08There isn't one. At least, not as a public function.
However, the protected property $fgcolor
is an array that can be handed right back to setTextColorArray
. Knowing this - it's pretty easy to extend the class to provide a getter for the current text color.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tc-lib-pdf
Create a composer.json in your projects root-directory:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page