Download the PHP package pdfkiwi/php-lib without Composer
On this page you can find all versions of the php package pdfkiwi/php-lib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pdfkiwi/php-lib
More information about pdfkiwi/php-lib
Files in pdfkiwi/php-lib
Package php-lib
Short Description A PHP library for interacting with pdf.kiwi API
License MIT
Homepage https://pdf.kiwi
Informations about the package php-lib
pdfkiwi/php-lib
A PHP library for interacting with pdf.kiwi API
Installation
Then, don't forget to use the PdfKiwi
namespace in your own classes before using it:
Quick start guide
When instanciating the Pdfkiwi
class, we must give it the email address and the API key (token)
to be able to connect the API with our account's credentials.
Here is an exemple:
Then we can set some options, this way:
Finally, once we have defined all our options, we can fire the method convertHtml()
which returns
the converted PDF:
Public methods list
setPageWidth()
To set the page width.
Parameter:
setPageHeight()
To set the page height.
Parameter:
setHeaderHtml()
To set page header using HTML format.
Parameter:
setHeaderSpacing()
To set the space between the header and the document's body.
Parameter:
setHeaderText()
To set page headers using TEXT format.
Parameters:
setFooterHtml()
To set page footer using HTML format.
Parameter:
setFooterSpacing()
To set the space between the footer and the document's body.
Parameter:
setFooterText()
To set page footers using TEXT format.
Parameters:
setHeaderFooterPageExcludeList()
To set a list of pages numbers on which the header and footer won't be printed.
Parameter:
setPageMargins()
To set document's pages margins.
Parameters:
setOrientation()
To set page's orientation.
Parameter: