Is there a way to convert XHTML / HTML from CSS to PDF with floating divs?
I tried pisa / xhtml2pdf in python and dompdf in PHP, both cannot do this.
Is there any way?
See html-tables-to-pdf-in-php-neither-dompdf-nor-html2ps-pdf-are-working .
A possible way is to use a Layout (rendering) Engine , such as Webkit or Gecko . The displayed HTML page can then be saved in PDF format. An example of a tool using this method is the wkhtmltopdf project.
wkhtmltopdf
(I know this is not related to Python or PHP - you can still control the tool from a script.).
Python
PHP
Found a blog post that does just that.
http://web.archive.org/web/20130525082452/http://notes.alexdong.com/xhtml-to-pdf-using-pyqt4-webkit-and-headless
made it work pretty fast using the more mature pyqt4 module
Source: https://habr.com/ru/post/1307621/More articles:How can I check in which branches the TFS 2008 changeset has been added? - tfsFind the element with the most "neighbors" in the sequence - algorithmAre products such as SQL Server and Oracle examples of ORDBMS? - oracleConvert int array to char * - c ++Html string reader - htmlWhat are relational attribute graphs? - data-structuresFireBug - checking element problem - displaying another interface? - firebughttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1307624/html-tables-to-pdf-in-php-neither-dompdf-nor-html2pspdf-are-working&usg=ALkJrhje83K-5IsJJO1x6oa8Zuxplh0oeQHow to convert int to bytes in Objective-C? - objective-cremove / untie anchor guidance - jqueryAll Articles