clawsoftware / clawPDF

Open Source Virtual (Network) Printer for Windows that allows you to create PDFs, OCR text, and print images, with advanced features usually available only in enterprise solutions.
https://github.com/clawsoftware/clawPDF
GNU Affero General Public License v3.0
660 stars 147 forks source link

a way to EMBED used fonts #38

Closed t2t-paul closed 1 year ago

t2t-paul commented 3 years ago

is there a way to EMBED used fonts within the generated PDF files? perhaps a backdoor way / script if necessary (i see there is an option to subsequently "run script" within the profile settings interface)?

see screenshot attached - the source document contains a particular barcode font

image

however here is the generated PDF (via clawPDF) as viewed on a different computer - you can see the barcodes are not displayed correctly, presumably because that particular barcode font is not present on that other computer

image

the fix for this issue is usually to force fonts to be embedded - e.g. see below the "embed all used fonts" setting within the profile manager from another pdf printer

image

PS. this is an outstanding program in my testing so far today, thanks

berteh commented 3 years ago

+1, pretty please. Make most of the layout effort of document author go to waste otherwise.

bret-miller commented 3 years ago

+1

OBELIKS commented 3 years ago

Save as PDF/X, that should fix this issue.

t2t-paul commented 3 years ago

Save as PDF/X, that should fix this issue.

thanks for the suggestion but this made no difference, at least in my case: doing a spot of research i can see why you made the suggestion (the PDF/X standard means fonts should be embedded?) but just like normal "PDF" output the barcode font is not displayed. perhaps this means that there is a bug with the PDF/X output option? i also noticed the generated file size was around 100 times larger than using the other formats

i also tested the other PDF subsets that clawPDF has available, PDF/A-1b and PDF/A-2b: the first excluded the barcode altogether from the output, the second was just the same as the others. if it helps i have attached my own samples directly to this issue, including one using an alternate PDF printer and with fonts embedded

UsingClawPDF_PDF.pdf

UsingClawPDF_PDFA1.pdf

UsingClawPDF_PDFA2.pdf

UsingClawPDF_PDFX.pdf

UsingNovaPDFWithEmbeddedFont.pdf

clawsoftware commented 1 year ago

Since version 0.8.7 all formats are 100% valid and the font is embedded.