Created
November 18, 2010 16:14
-
-
Save chanwit/705210 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Document doc = new Document(); | |
| doc.setFile(url); | |
| BufferredImage image = doc.getPageImage(pageNo, | |
| GraphicsRenderingHints.PRINT, | |
| Page.BOUNDARY_CROPBOX, | |
| 0f, // rotation | |
| 1.0f); // scale | |
| RenderedImage r = image; | |
| ImageIO.write(r, "png", file); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment