从基本 HTML 输入生成特定设计的 PDF
Generate a specific designed PDF from basic HTML input
我想从三个简单的 input-fields.
生成具有特定背景的 PDF
标题、消息和签名如下图所示。
Example of desired result
我有一些使用 Python Flask 创建 web-sites 的经验,但我很难解决这个挑战。
创建一个包含标题的 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>
我想从三个简单的 input-fields.
生成具有特定背景的 PDF标题、消息和签名如下图所示。
Example of desired result
我有一些使用 Python Flask 创建 web-sites 的经验,但我很难解决这个挑战。
创建一个包含标题的 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>