Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPDF #1

Open
dabcorp opened this issue Jan 16, 2017 · 4 comments
Open

FPDF #1

dabcorp opened this issue Jan 16, 2017 · 4 comments

Comments

@dabcorp
Copy link

dabcorp commented Jan 16, 2017

Hello,

Possible migrate FPDF to the last version ? ( 1.81 )

Thx

@dabcorp
Copy link
Author

dabcorp commented Apr 13, 2017

please

@farjadtahir
Copy link
Owner

farjadtahir commented Apr 14, 2017 via email

@fjfricke
Copy link

@dabcorp @farjadtahir How can I easily implement it? I get a lot of issues...

@techypaul
Copy link

@fjfricke It worked for me like this:

Upgrade FPDF library to 1.8.1, then in phpinvoice.php, replace line 55:
$this->FPDF('P','mm',array($this->document['w'],$this->document['h']));
with
parent::__construct('P','mm',array($this->document['w'],$this->document['h']));

and fix title errors by replacing this line:
$this->Cell(0,5,iconv("UTF-8", "ISO-8859-1",strtoupper($this->title)),0,1,'R');
with
if(isset($this->title) and !empty($this->title)) {
$this->Cell(0,5,iconv("UTF-8", "ISO-8859-1",strtoupper($this->title)),0,1,'R');
}

should be fine (I get no errors in php 7), ymmv though.

farjadtahir pushed a commit that referenced this issue Jul 20, 2018
Remove calls to 'phpinvoice' class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants