Hello everyone,
I'm trying to load an existing PDF into my application with PDFBox 2.0.9 but I do encounter some problems.
Here is the code I'm trying to execute:
File pdf = new File("/Users/chris/Downloads/RechnungTemplate.pdf");
PDDocument template = PDDocument.load(pdf);
System.out.println("Number of pages: " + template.getNumberOfPages());
At line 2 the application freezes and nothing happens. Even Debugging stopped at line 2.
I tried my code within a standalone program (without RAP) and it worked fine, so there is something wrong in combination with RAP.
I already tried executing the code in a Thread other than the UI-Thread but this didn't change anything.
Someone got this library working with RAP and knows how to fix the problem?
EDIT: After deploying the war it's working fine, but when trying with eclipse it's somehow not working.
Thanks,
Chris
[Updated on: Thu, 05 April 2018 06:37] by Moderator