sysreptor icon indicating copy to clipboard operation
sysreptor copied to clipboard

Embed full font into the PDF

Open c-leitner opened this issue 1 year ago • 2 comments

Currently, the fonts are only embedded as "Embedded Subsets" into the PDF. This can result in glitches when trying to copy text from the PDF, as not all characters are correctly embedded.

Would it be possible to embed the fonts fully, as described in the following link: WeasyPrint font embedding?

Full font embedding would ensure that all characters are available, improving text selection and copy functionality from the generated PDF files

image

c-leitner avatar Oct 03 '24 12:10 c-leitner

SysReptor also compresses PDFs with ghostscript in a post-processing step. Could you please check if the glitches come from weasyprint or ghostscript. Ghostscript PDF compression can be disabled by setting COMPRESS_PDFS=false.

MWedl avatar Oct 04 '24 05:10 MWedl

SysReptor also compresses PDFs with ghostscript in a post-processing step. Could you please check if the glitches come from weasyprint or ghostscript. Ghostscript PDF compression can be disabled by setting COMPRESS_PDFS=false.

and maybe on what SysReptor version you are (there were issues with copy/paste in the past caused by Ghostscript that are resolved in newer versions of SysReptor).

aronmolnar avatar Oct 04 '24 05:10 aronmolnar