- Package:
- src:xhtml2pdf
- Source:
- xhtml2pdf
- Submitter:
- "Dmitry E. Oboukhov"
- Date:
- 2023-10-09 17:39:19 UTC
- Severity:
- important
- Tags:
I've installed trac-wikiprint and tried to use it with russian articles in my wiki. And it creates broken pdfs. Example You can find in attache.
reassign 610390 pisa owner 610390 python-modules-team@lists.alioth.debian.org retitle 610390 pisa doesn't support non-latin symbols thanks This is in fact a problem in xhtml2pdf/pisa, which is used by trac-wikiprint. $ xhtml2pdf http://www.debian.org/index.ru.html $ evince www.debian.org-index.ru.pdf shows the problem clearly. Same for e.g. Chinese etc.
Dear submitter, as the package pisa has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/891115 The version of this package that was in Debian prior to this removal can still be found using http://snapshot.debian.org/. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)
This bug is reported upstream, see https://github.com/xhtml2pdf/xhtml2pdf/issues/11 and https://github.com/xhtml2pdf/xhtml2pdf/issues/345 etc. Apparently it happens because xhtml2pdf only recognises a very limited set of fonts, see documentation at https://xhtml2pdf.readthedocs.io/en/latest/reference.html#fonts - only Times-Roman: Times New Roman, Times, Georgia, serif Helvetica: Arial, Verdana, Geneva, sansserif, sans Courier: Courier New, monospace, monospaced, mono ZapfDingbats Symbol You may be able to push it further using css definition of other fonts, see https://github.com/xhtml2pdf/xhtml2pdf/issues/11#issuecomment-288477301
As discussed in upstream issue #11, xhtml2pdf is deprecated (no longer supported). The xhtml2pdf documentaiton itself (https://github.com/xhtml2pdf/xhtml2pdf/blob/master/README.rst) says to use WeasyPrint (http://weasyprint.org/) instead. weasyprint is available in Debian, so use it.