Skip to content

Pdfexport google fonts

Vignesh Devendran requested to merge pdfexport-google-fonts into main

#709 (closed) has a Pagedjs issue as blocker for exporting print-ready PDF's. This merge request acts as an interim solution from within Kotahi to bypass the issue until it's resolved in pagedjs.

Problem:

External imports/links of fonts seem to make the Pagedjs container to be inconsistent with its PDF generation.

Solution:

We have opted to add font files within Kotahi profiles and add them to the zip file before sending it to the Pagedjs container for processing & generating PDF. The pagedjs container utilizes the fonts from the unzipped folder and is referred by the stylesheet provided. Once the PDF is generated the temporary files are cleaned up as well on both Kotahi Server & Pagedjs Container.

Generated Sample: Lorem_Ipsum.pdf

Edited by Vignesh Devendran

Merge request reports