bksolutions/fpdf2

By bksolutions

Updated about 2 months ago

Image
Languages & frameworks
0

1.2K

bksolutions/fpdf2 repository overview

Docker Image Size Docker Pulls Docker Stars Github stars Github forks Github issues Github 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.

Tag summary

Content type

Image

Digest

sha256:459d93cd3

Size

38.6 MB

Last updated

about 2 months ago

docker pull bksolutions/fpdf2:py-0.0.2