Question about using xhtml2pdf to analyze css from the site

I am trying to use xhtml2pdf to convert a web page to pdf. After reading the contents of the webpage using urllib2, I found that pisa.CreatePDF needs to process every link in the contents of the webpage. Especially when he tried to parse the .css file after I tried several sites, I got the following error:

pisa-3.0.33-py2.6.egg/sx/w3c/cssParser.py", line 1020, in _parseExpressionTerm
sx.w3c.cssParser.CSSParseError: Terminal function expression expected closing ')':: (u'Alpha(Opacity', u'=0); }\n\n\n\n.ui-state-')

Do you think this problem is too? Can anyone help? Many thanks.

+3
source share
1 answer

pisa-3.0.33-py2.6.egg/sx/w3c/cssParser.py ", 1020, _parseExpressionTerm sx.w3c.cssParser.CSSParseError: ')':: (u'Alpha (Opacity ', u' = 0); }\N\N\N\n.ui - ')

, , css, (opacity bla.. bla

- javascript, .

+1

Source: https://habr.com/ru/post/1781330/


All Articles