Don't remove embedded fonts. It will make trouble. Use a similar free font instead, e.g. liberation sans.
However the standard 14 type 1 helvetica isn't embedded anyway so maybe this is moot. Tilman -- Original-Nachricht -- Von: r.barc...@habmalnefrage.de.invalid Betreff: Replace embedded font document-wide by PDType1Font Helvetica in PDF document Datum: 16.11.2024, 18:54 Uhr An: users@pdfbox.apache.org Hi, my app has a feature in which users can upload a PDF template. This PDF template is later used to create new documents on the server-side. Problem: Usually the font in these templates is Arial. Adobe Reader shows embedded ArialMT and Arial-BoldMT in the fonts tab of document information. While it's probably OK to use these fonts on the desktop (in the licensed environment Windows, Office, (LibreOffice)), I guess special licensing was needed to be allowed to include these fonts in server generated PDFs. So I'd love to replace ArialMT by PDFs standard Helvetica and Arial-BoldMT by Helvetica Bold. And then remove any embedded fonts from the PDF document. Probably this would also lead to PDF files smaller in size. Do you have any ideas how to do that with PDFBox? Or has someone else done that before? Thank you and kind regards, Reg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org