stepup.reprep.tile_pdf¶
Tile PDF figures.
Figure
¶
The definition of a tiled figure
Attributes:
-
path_out(str) –The PDF output file.
-
panels(list[Panel]) –The list panels, instances of the
Panelclass. -
fontname(str) –A Fontname recognized by PyMyPDF or a custom name when fontfile is specified.
-
fontfile(str | None) –None or the path to a ttf file. When used, specify a corresponding fontname (of your choice).
-
fontsize(float) –The font size to use for the labels in points.
-
label_height(float) –The height to use for the labels in mm.
-
padding(float) –The padding added added to the panels before combining them, in mm. This parameter is also used as margin between the label and the figure.
-
hshift(float) –An optional horizontal displacement of the panel label, in mm.
Source code in stepup/reprep/tile_pdf.py
run()
¶
Combine PDF figures into a single PDF with labels on top of each panel.
Source code in stepup/reprep/tile_pdf.py
Panel
¶
The definition of one panel in a tiled figure.
Attributes:
-
irow(int) –The row where the panel is located (top left corner).
-
icol(int) –The column where the panel is located (top left corner).
-
label(str) –The label to be put above the panel.
-
path_in(str) –The path of the PDF file with the figure.
-
nrow(int) –The number of rows occupied by the panel.
-
ncol(int) –The number of columns occupied by the panel.