bksolutions/fpdf2

By bksolutions

Updated 6 days ago

Image
Languages & Frameworks
0

40

Docker Image SizeDocker PullsDocker StarsGithub starsGithub forksGithub issuesGithub last-commit

fpdf2

Content

Getting Started

These instructions will cover usage information and for the docker container

Usage

The image could be started by the following command.

$ docker run -d bksolutions/fpdf2
$ docker run -d bksolutions/fpdf2:latest
Volume(s)
  • /usr/src/fpdf - Working directory
Description

For 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

Parameter

  • -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/Write
    • Z - private unshared label only the current container can use a private volume

Default python script example

##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")

Find Us

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

Docker Pull Command

docker pull bksolutions/fpdf2