Replies: 2 comments 4 replies
-
VIPS is a whole big image processing library. To read PDFs it uses either the PDFium, Poppler, or ImageMagick libraries. I would want to test these to see how they perform compared to PDFBox, to help me decide which one to use (if any), and then develop an Image I/O plugin that calls into it. As far as that goes, there is a new Foreign Linker API (incubating in JDK 16, targeted for 17) that should make calling into native code a lot easier compared to JNI. I expect that it will become the de facto Java standard for native interop. (There is also JNA which is slow, and JNR-FFI which is nice but another dependency.) |
Beta Was this translation helpful? Give feedback.
-
If you are intending to make this plugin publicly available, I would try to allow reading from whatever type is provided to your I agree that a 2 GB PDF seems large, but it may be OK for a user with enough memory. And another user may only need to serve smaller PDFs. |
Beta Was this translation helpful? Give feedback.
-
We are currently using the PDFBox implementation quite extensively in Cantaloupe but memory and CPU overhead is quickly becoming an issue. While searching around for possible solutions I came across mention of libvips which looks promising. Of course the immediate question for me is whether anyone had created a JNI binding for this... they have. It seems a small leap to add this to Cantaloupe. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions