pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Douglas <edoug...@blockhouse.com>
Subject PDFRenderer
Date Wed, 04 Mar 2015 15:35:57 GMT
I'm using org.apache.pdfbox.rendering.PDFRenderer renderPageToGraphics
method in a GUI component.
This PDFRenderer requires a document in the constructor.  This render
method requires the document to be open.  PDDocument.load creates and opens
the document object.  How much overhead is in this method?
I either need to call the load method every time I call the render method,
or I need to make sure it loads once and call the close method when the
component gets destroyed?
If I don't call the close method I get this message in my logs.
org.apache.pdfbox.cos.COSDocument finalize
WARNING: Warning: You did not close a PDF Document

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message