Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private InputStream joinPdfPages(PDDocument document) throws IOException {
- ByteArrayOutputStream jpgImageOutputStream = null;
- try {
- //...
- return jpgImageInputStream;
- } catch (IOException e) {
- throw e;
- } finally {
- IOUtils.closeQuietly(jpgImageOutputStream);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement