Oh, this will also not work because the standard 14 fonts only support a 
subset. See e.g. WinAnsiEncoding in the PDF specification

Tilman

-- Original-Nachricht --
Von: r.barc...@habmalnefrage.de.invalid
Betreff: Aw: AW: Replace embedded font document-wide by PDType1Font Helvetica 
in PDF document
Datum: 16.11.2024, 19:41 Uhr
An: users@pdfbox.apache.org

Tilman,

> However the standard 14 type 1 helvetica isn't embedded anyway so maybe this 
> is moot.

Exactly, I want the standard type 1 helvetica which isn't embedded, instead of 
a proprietary font.

Please see my attached sketch.

For my app, I have two choices:
1. Detect fonts like Arial and reject the template PDF: "Sorry, your PDF cannot 
be used as a template because it contains the proprietary font %s!"
2. "Oh, contains Arial! But: No problem! I know that font and I'll replace that 
for you by the default Helvetica which doesn't have to be embedded."

For unknown fonts other than Arial or Times New Roman, I'd have to go with 
option (1) anyway.

LibreOffice has a feature that points into the same direction:
https://blog.documentfoundation.org/blog/2020/09/08/libreoffice-tt-replacing-microsoft-fonts/

Yours,
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

Reply via email to