Код: Выделить всё
@Test
public void doTheJob() throws InvalidPasswordException, IOException {
Path pth = Paths.get("data/EE_2020-08-01_2020-12-31.pdf");
try (PDDocument pdf = PDDocument.load(pth.toFile()); StringWriter swr = new StringWriter();) {
new PDFDomTree().writeText(pdf, swr);
outHtml = new ArrayList();
String[] arr = swr.toString().split("\n");
outHtml.addAll(Arrays.asList(arr));
}
outHtml //
.stream() //
.forEach(System.out::println);
}
Код: Выделить всё
[main] INFO org.mabb.fontverter.opentype.TtfInstructions.TtfInstructionParser - Parsed instruction: PushBytes code: 0xb2/178
[main] INFO org.mabb.fontverter.opentype.TtfInstructions.TtfInstructionParser - Parsed instruction: ReadStoreInstruction code: 0x43/67
[main] INFO org.mabb.fontverter.opentype.TtfInstructions.TtfInstructionParser - Parsed instruction: AddInstruction code: 0x60/96
...
Код: Выделить всё
org.mabb.fontverter.opentype.TtfInstructions=warn
Код: Выделить всё
System.setProperty("org.mabb.fontverter.opentype.TtfInstructions", "warn");
Подробнее здесь: https://stackoverflow.com/questions/798 ... che-pdfbox
Мобильная версия