Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-pdf-frame-border is broken [xhtml2pdf]

Tags:

xhtml2pdf

I've updated xhtml2pdf 0.0.6, PyPDF2 1.21, and reportlab 3.1.8.

My pdf was fine when i used xhtml2pdf 0.0.5 and reportlab 2.7. Now all of my frame got border. I did remove "-pdf-frame-border" and tried to put "-pdf-frame-border:0" or "-pdf-frame-border:none", but it still display frame broder. Can anyone shed any lights? Thanks.

like image 210
Eldwin Eldwin Avatar asked Apr 28 '14 04:04

Eldwin Eldwin


2 Answers

After a bit of poking around with reportlab.Version == 3.1.8, I was only successful by setting a white border.

@frame footer_frame {
    -pdf-frame-content: footer_content;
    left: 50pt; width: 512pt; top: 772pt; height: 20pt;
    border: 0pt solid white;
}
like image 121
Aaron Avatar answered Dec 24 '22 01:12

Aaron


Just revert ReportLab to 2.7 and it fixed the problem.

like image 27
Eldwin Eldwin Avatar answered Dec 24 '22 01:12

Eldwin Eldwin