I want to generate a PDF with a specific background from three simple input-fields.
A title, a message and a signature as shown in the picture below.
I have some experience with creating web-sites with Python Flask, but I struggle with how to tackle this challenge.
CodePudding user response:
create a h1 containing the title, a h2 containing the message and a bottom text with some css
.bottom{
position:fixed;
bottom:0;
}
put the background-image tag on the body to have your own custom image
it would be something like this
<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 >bottom text</h2>
</body>
</html>