davidoc26 / flip5htmltopdf
There is no license information available for the latest version (v1.0.0) of this package.
v1.0.0
2022-02-15 14:47 UTC
Requires
- php: ^8.0
- symfony/console: ^6.0
- symfony/http-client: ^6.0
- tecnickcom/tcpdf: ^6.4
Requires (Dev)
- symfony/var-dumper: ^6.0
README
Installation
git clone https://github.com/Davidoc26/flip5htmltopdf.git
Install dependencies with composer i
Usage
php application.php parse <url> [filename] [path]
Use -f to specify output PDF filename.
Use -r to specify an absolute path to the PDF output directory (default: ./output)
Using as package
First you need to install the package
composer require davidoc26/flip5htmltopdf
Then, when initializing the parser, pass a generator to it (you can also create your own generator)
$parser = new Parser( url: $url, generator: new PdfGenerator($outputPath, $outputFilename) ); $parser->fetchBook();
Be careful! The pdf file creation process can reach memory_limit!