-pdf-frame-border is broken [xhtml2pdf]
Asked Answered
A

2

6

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.

Apodal answered 28/4, 2014 at 4:15 Comment(0)
A
1

Just revert ReportLab to 2.7 and it fixed the problem.

Apodal answered 1/5, 2014 at 4:28 Comment(1)
I have downgraded Reportlab - reportlab.Version returns "2.7" - and I have PyPDF2-1.21-py2.7.egg-info, xhtml2pdf-0.0.6-py2.7.egg-info and still getting these stupid borders. Could you elaborate a bit on what your style blocks look like or if you have different versions of either of the other packages? edit: I removed all "-pdf-frame-border:0" and the borders went awayLinlithgow
S
5

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;
}
Scriptwriter answered 7/10, 2014 at 18:14 Comment(0)
A
1

Just revert ReportLab to 2.7 and it fixed the problem.

Apodal answered 1/5, 2014 at 4:28 Comment(1)
I have downgraded Reportlab - reportlab.Version returns "2.7" - and I have PyPDF2-1.21-py2.7.egg-info, xhtml2pdf-0.0.6-py2.7.egg-info and still getting these stupid borders. Could you elaborate a bit on what your style blocks look like or if you have different versions of either of the other packages? edit: I removed all "-pdf-frame-border:0" and the borders went awayLinlithgow

© 2022 - 2024 — McMap. All rights reserved.