Sorry, I didn’t mentioned that those are embedded fonts, so I think they should not be searched between system fonts,
Also I tried same library but downloaded from “apache” and it worked correctly.
test.pdf (144.8 KB)
Script that I used:
PDDocument document = PDDocument.load(new File("E:\\test.pdf"));
PrintService myPrintService = findPrintService("WHSE_DEV");
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintService(myPrintService);
document.silentPrint(job);
/*For Apache lib*/
/*job.print();*/
document.close();
private static PrintService findPrintService(String printerName) {
PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService printService : printServices) {
if (printService.getName().trim().equals(printerName)) {
return printService;
}
}
return null;
}