我想從三個簡單的輸入欄位生成具有特定背景的 PDF。
標題、訊息和簽名如下圖所示。
所需結果示例
我有一些使用 Python Flask 創建網站的經驗,但我在如何應對這一挑戰方面遇到了困難。
uj5u.com熱心網友回復:
創建一個包含標題的 h1,一個包含訊息的 h2 和一個帶有一些 css 的底部文本
.bottom{
position:fixed;
bottom:0;
}
將 background-image 標簽放在 body 上以獲得您自己的自定義影像
它會是這樣的
<html>
<head>
<style>
.bottom{
position:fixed;
bottom:0;
}
</style>
</head>
<body style="background-image:url('mypicture.png'); text-align: center">
<h1>my title</h1>
<h2>my subtitle</h2>
<h2 class="bottom">bottom text</h2>
</body>
</html>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/400038.html
