Giter Club home page Giter Club logo

yii-pdf's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ’ป I work at @deity-io
  • ๐Ÿ’ฌ Ask me about PWA, Node.js, React.js, GraphQL, DEITY Falcon
  • ๐Ÿ“ซ Reach me via @borales
  • ๐ŸŒฑ I'm currently learning Rust and Dutch ๐Ÿ‡ณ๐Ÿ‡ฑ

Borales github stats

yii-pdf's People

Contributors

borales avatar jonathan-beebe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yii-pdf's Issues

Little bug

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);

Error 500

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.

Removing dependencies from composer package

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.

Google font.

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?

Output to "Download"

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

Server Error 500

Hi,
Im getting server error 500 while using

 $mPDF1 = Yii::app()->ePdf->mpdf();

Error Path for mpdf

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.

echo "<<" stopping mpdf output

  • For some reason in mpdf when you try to echo "<<" something like that the pdf breaks and throws division by zero error.

Composer - Requirements broken?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.