jpedal

How to decode JPX images in java?

喜欢而已 提交于 2019-12-11 05:39:40
问题 I'm trying to render a pdf (with pdf-renderer or jpedal), and it can't handle an image encoded using JPX. Is there any open-source java library that can decode JPX? 回答1: JPX needs JPEG2000 which needs the JAI and imageIO libraries. JPedal has support for JPX - you just need to enable it which explained on the support section. There is a patched version of the imageio to fix the memory bug on our site at http://www.jpedal.org/PDFblog/2011/03/java-jai-image-io-jpeg2000-memory-leak-fix/ 来源:

How to display the images in listview

老子叫甜甜 提交于 2019-12-11 03:30:08
问题 I am working with JavaFX2.0.I need to show the thumbnail images in listview.I am writing the code as below. ObservableList<BufferedImage> imageList = FXCollections.observableArrayList(); try { for (int i = 1; i <= pdf.getPageCount(); i++) { BufferedImage pageImage = pdf.getPageAsImage(i); imageList.add(pageImage); } catch (PdfException e) { _logger.error("Error :" + e.getMessage()); } thumbnailsList.setItems(imageList); Here thumbnailsList is the fx:id of the listview.But if i use this code i

Reading a table or cell value in a pdf file using java?

点点圈 提交于 2019-12-02 20:17:50
问题 I have gone through Java and PDF forums to extract a text value from the table in a pdf file, but could't find any solution except JPedal (It's not opensource and licensed). So, I would like to know any opensource API's like pdfbox, itext to achieve the same result as JPedal. Ref. Example: 回答1: In comments the OP clarified that he locates the text value from the table in a pdf file he wants to extract By providing X and Y co-ordinates Thus, while the question initially sounded like generic