borales / yii-pdf Goto Github PK
View Code? Open in Web Editor NEWA wrapper to some PHP-PDF libraries (mPDF, HTML2PDF)
Home Page: http://www.yiiframework.com/extension/pdf/
License: BSD 2-Clause "Simplified" License
A wrapper to some PHP-PDF libraries (mPDF, HTML2PDF)
Home Page: http://www.yiiframework.com/extension/pdf/
License: BSD 2-Clause "Simplified" License
I'm getting:
Fatal error: func_get_args(): Can't be used as a function parameter in /EYiiPdf.php on line 113
easily solved with a variable:
113: $args=func_get_args();
$this->initLibrary(FUNCTION, $args);
I suggest to use official package spipu/html2pdf instead abandoned outdated unofficial fork ensepar/html2pdf
First of all, thanks for this wrapper! I'm a Yii newbie and it helped me learning.
But got a problem: just moved application from dev server to production and always returns error 500 when I try to initialize through Yii::app()->ePdf->HTML2PDF();
No idea about what is causing this.
Would you consider removing these dependencies?
mpdf/mpdf: dev-master
ensepar/html2pdf: dev-master
That would allow users to pick only one of these libraries and use specific version.
I have html a page where # google font is embedded.
But when I make pdf then instead of text "squre box" is visible. This happend if I use mpdf
When i use HTML2PDF then an error message given "TCPDF ERROR: Could not include font definition file: atma".
what is the solution?
Do not work and I don't know why:
$pdf = Yii::app()->ePdf->mpdf();
$stylesheet = file_get_contents(Yii::app()->theme->basePath.'/css/pdf.css');
$pdf->WriteHTML($stylesheet, 1);
$pdf->WriteHTML($this->renderPartial(
'pdf',
array(
'action' => $action,
'code' => $code
),
true
));
$pdf->Output('coupon.pdf', EYiiPdf::OUTPUT_TO_DOWNLOAD);
// $pdf->Output('/somePath/coupon.pdf', EYiiPdf::OUTPUT_TO_FILE); - it's ok
Hi,
Im getting server error 500 while using
$mPDF1 = Yii::app()->ePdf->mpdf();
yii2-pdf version???
Greetings, I'm using Yii and turned me a headache the next problem with the configuration path.
old = 'librarySourcePath' => 'application.vendors.mpdf. *'
new = 'librarySourcePath' => 'application.vendor.mpdf. *'
Please change this detail.
i Think, the Composer Requirements are broken?
Problem 1
- Installation request for borales/yii-pdf dev-master -> satisfiable by borales/yii-pdf[dev-master].
- borales/yii-pdf dev-master requires mpdf/mpdf dev-master -> no matching package found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.