local:shop:technique:pdfprintconfig
Table des matières
Technical Documentation
Moodle Shop
PDF Generation Settings
The PDF invoice generator can be configured in order to implement the seller's informational elements and graphic identity.
The configuration is done through a json-type structure providing a set of “key”:“values”.
General configuration keys
Font
fontbasefamily: allows changing the font family.fontbasesize: allows changing the font size.
General layout offset
custx: offsets the reference point of the whole document from the left edge of the document (in cm)custy: offsets the reference point of the whole document from the top of the document (in cm)
The reference point is the position of the left/top corner of the header image.
Content offset
contentoffsetx: offsets the content (excluding header) from the left edge of the document (in cm)contentoffsety: offsets the content (excluding header) from the top of the document (in cm)
The “inner” parameters are variations of these parameters for the “inner” pages (pages other than the first page). If they are not defined, the values above will be used.
innercontentoffsetx: offsets the content (excluding header) from the left edge of the document (in cm)innercontentoffsety: offsets the content (excluding header) from the top of the document (in cm)
Graphic inserts
"Paid" stamp
These parameters are only useful if a payment acknowledgement Stamp image is set (local_shop/billpaidstampimage).
paidstampx: horizontal placement from the edge of the sheet (in cm)paidstampy: vertical placement from the top of the sheet (in cm)paidstampw: stamp width (optional)paidstamph: stamp height (optional)
Watermark (local_vflibs parameters)
watermarkx: horizontal placement from the edge of the sheet (in cm)watermarky: vertical placement from the top of the sheet (in cm)watermarkw: changes the watermark widthwatermarkh: changes the watermark height
local/shop/technique/pdfprintconfig.txt · Dernière modification : de 127.0.0.1
