問題タブ [weasyprint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - weasyprint で Bootstrap CSS が適用されない
weasyprintを使用してhtmlから.pdfを生成し、添付ファイルとして送信するフラスコアプリケーションを作成しました。しかし、明らかにbootstrap 4 cssは適用されていません。解決策が見つかりません。pdfkit では問題なく動作していますが、pythonanywhere.com は pdfkit をサポートしていないため、weasyprint が必要です。
html のファイルとしてブートストラップ css を使用して、ブートストラップをリンクしようとしましたが、違いはありませんでした。
これは私のpython部分で、pdfを生成して送信します。