![]() String sourceDir = "C:/Documents/04-Request-Headers.pdf" // Pdf files are read from this folder Solution for Apache PDFBox 1.8.* version: You can easily convert 04-Request-Headers.pdf file pages into image format.Ĭonvert all pdf pages into image format in Java using PDF Box. INFO: unsupported/disabled operation: BDCĮxception in thread "main" Īt .(PDTrueTypeFont.java:481)Īt .(PDSimpleFont.java:109)Īt .PageDrawer.processTextPosition(PageDrawer.java:235)Īt .PDFStreamEngine.processEncodedText(PDFStreamEngine.java:496)Īt .(ShowTextGlyph.java:62)Īt .PDFStreamEngine.processOperator(PDFStreamEngine.java:554)Īt .PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)Īt .PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)Īt .PDFStreamEngine.processStream(PDFStreamEngine.java:215)Īt .PageDrawer.drawPage(PageDrawer.java:125)Īt .nvertToImage(PDPage.java:781)Īt .nvertToImage(PDPage.java:712)Īt ge.(PDFtoImage.java:25)Ĭaused by: Īt (Buffer.java:216)Īt (TrueTypeFont.java:1153)Īt (TrueTypeFont.java:1205)Īt (Font.java:1156)Īt .(FontManager.java:101)Īt .font.FontManager.(FontManager.java:53) and I have that Exception when I run this code: 6:00:24 PM .PDFStreamEngine processOperator Listpages = doc.getDocumentCatalog().getAllPages() īufferedImage image =nvertToImage() įile outputfile = new File("/image.png") PDDocument doc = PDDocument.load(new File("/document.pdf")) Have methodconvertToImage()` which converts PDF page to Image format. Question 2: I found the solution in PDFBox API. Question 1: is there any way, in ghost4j to convert image without the dll? Problem: Ghost4J needs gsdll32.dll file at runtime, and I do not want to use the dll file. I wanted to convert PDF document into image. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |