[ https://issues.apache.org/jira/browse/PDFBOX-2827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584042#comment-14584042 ]
Lori commented on PDFBOX-2827: ------------------------------ Hi Tilman, Is 2.0 going to be released in the near future? Lori ---------- Forwarded message ---------- From: Tilman Hausherr (JIRA) <j...@apache.org> Date: Thu, Jun 11, 2015 at 6:06 PM Subject: [jira] [Commented] (PDFBOX-2827) PDF to Image - unable to display text of PDFs To: lori.gol...@smartfinancellc.net [ https://issues.apache.org/jira/browse/PDFBOX-2827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14582588#comment-14582588 ] Tilman Hausherr commented on PDFBOX-2827: ----------------------------------------- Re 2, I messed up my post somehow, the link there does exactly what you need, without building from source each time. document.getDocumentCatalog().getAllPages(); page.convertToImage(BufferedImage.TYPE_INT_RGB, 300);// DEFAULT_IMAGE_RESOLUTION);// 200); outputfile.getName()); https://smartfin.awsapps.com/workdocs/index.html#/document/a421dad8d4a870d8220ce7c3c8f07b94035d172eb17e1150e8ae44a6a3fb5f13 https://smartfin.awsapps.com/workdocs/index.html#/document/c190a8684c1482713bcf708f2b79ea447ed3720f21da31ffe5e82e35bdfb2fb0 -- This message was sent by Atlassian JIRA (v6.3.4#6332) -- *Lori Golden|lori.gol...@smartfinancellc.net <lori.gol...@smartfinancellc.net>|Smart Finance, LLC* > PDF to Image - unable to display text of PDFs > --------------------------------------------- > > Key: PDFBOX-2827 > URL: https://issues.apache.org/jira/browse/PDFBOX-2827 > Project: PDFBox > Issue Type: Improvement > Components: Rendering > Affects Versions: 1.8.9 > Reporter: Lori > Attachments: 313_4.pdf, 313_4.png, 332_4.pdf, 332_4.png > > > Unable to render text of pdf file to png > {code} > public class PdfToImageRedoTester { > public static void tester(String filename) throws IOException { > try(PDDocument document = PDDocument.load(filename + ".pdf")) { > //PDDocument.load(inputStream); > List<PDPage> list = document.getDocumentCatalog().getAllPages(); > PDPage page = list.get(0); > BufferedImage image = > page.convertToImage(BufferedImage.TYPE_INT_RGB, 300);// > DEFAULT_IMAGE_RESOLUTION);// 200); > File outputfile = new File(filename + ".png"); > System.out.println("Image Created -> " + outputfile.getName()); > ImageIO.write(image, "png", outputfile); > image.flush(); > } > } > public static void main(String[] args) throws IOException { > String fileName = "C:\\temp\\332_4"; > tester(fileName); > } > } > {code} > https://smartfin.awsapps.com/workdocs/index.html#/document/a421dad8d4a870d8220ce7c3c8f07b94035d172eb17e1150e8ae44a6a3fb5f13 > > https://smartfin.awsapps.com/workdocs/index.html#/document/c190a8684c1482713bcf708f2b79ea447ed3720f21da31ffe5e82e35bdfb2fb0 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org