Progress Bar

class pdfpug.modules.ProgressBar(percent, **kwargs)

Progress bar is a slightly unconventional element, but is surprisingly useful in some scenarios. For instance, consider a resume where one would like showcase the amount of experience in a language or technology. This can be expressed visually using a progress bar as seen nowadays in many modern resume styles.

Parameters:
  • percent (Union[int, float]) – Amount of progress in percentage
  • title (Optional[str]) – Describes the progress bar
  • subtitle (Optional[str]) – Describes the maximum range value
  • color (Optional[Color]) – Color of progress bar
  • size (Optional[Size]) – Size of progress bar
>>> from pdfpug.modules import ProgressBar
>>> from pdfpug.common import Color
>>> python_skill = ProgressBar(
...     75, title="Python", subtitle="Expert", color=Color.blue
... )
../_images/progressbar.png