PdfBox embed fonts into existing document
问题 I have a pdf file which shows font properties in Okular (or whatever PDF viewer) like that: Name: Helvetica Type: Type1 File: /usr/share/fonts/truetype/liberation2/LiberationSans-regular.ttf Embedded: No I want to embed Helvetica with PDFBox 2xx without modifying file content (text) itself so it would always available with a file. Is it possible at all? I tried something like: PDDocument document = PDDocument.load(myFile); InputStream stream = new FileInputStream(new File("/home/user/fonts