fpdf2
These instructions will cover usage information and for the docker container
The image could be started by the following command.
$ docker run -d bksolutions/fpdf2
$ docker run -d bksolutions/fpdf2:latest
/usr/src/fpdf - Working directoryFor own scripted pdf's, the script should be mounted to the container.
$ docker run -d --rm --name fpdf -v $PWD/<code>:/usr/src/fpdf:rw bksolutions/fpdf2
$ podman run -d --rm --name fpdf -v $PWD/<code>:/usr/src/fpdf:Z bksolutions/fpdf2
-d - Detached mode: run the container in the background-rm - Automatically remove the container-name - Assign a name to the container-v - Create a bind mount
The options are:
rw - Read/WriteZ - private unshared label only the current container can use a private volume##Import(s)
from fpdf import FPDF
## Prepare
pdf = FPDF(format="a4")
pdf.set_font('helvetica', size=12)
##Content
pdf.add_page()
pdf.cell(text="hello world")
##Generate PDF
pdf.output("hello_world.pdf")
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
Content type
Image
Digest
sha256:459d93cd3…
Size
38.6 MB
Last updated
about 2 months ago
docker pull bksolutions/fpdf2:py-0.0.2