Closed rmfkdehd closed 2 years ago
A pdf of standardized paper sizes will be loaded.
However, 210mm x 900mm pdf of this size cannot be loaded.
Hey, @rmfkdehd . I tested with a blank PDF that I generated using Inkscape with the dimensions provided, but I've failed to reproduce the loading issue.
Can you provide a link to a sample PDF with that size with which we can reproduce the behavior?
I'm sorry I can't use the computer right now...
Maybe the problem is because of the printing restrictions (pdf with password) on the pdf.
I'll test again tomorrow Thank you!!!
I can reproduce this issue when using a password protected PDF. For me it produces the same NullPointerException. I'm not sure if support for password protected PDFs is possible. But at least a message stating the issue should be shown.
iText's library does support reading password protected PDFs, though additional dependencies are needed to work with those assets. See related post in SOF.
Besides, Apache PDFBox also supports reading password protected documents.
I'll do a proof of concept and send a PR with the new functionality if you don't mind, @mbaeuerle .
I built the code on the master branch... Below is the log from the terminal... I can't proceed to load the pdf file....(Infinite loading)
./bin/Briss-2.0-master Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at at.laborg.briss.BrissGUI.setStateAfterClusteringFinished(BrissGUI.java:626) at at.laborg.briss.BrissGUI$ClusterPagesTask.done(BrissGUI.java:682) at java.desktop/javax.swing.SwingWorker$5.run(SwingWorker.java:750) at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:847) at java.desktop/sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112) at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:857) at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317) at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)