Write higher resolution (DPI) Images to PDF
问题 I have seen code to extract the images based on image DPI using PDFBox like below PDDocument document = PDDocument.load(path); PDFImageWriter writer = new PDFImageWriter(); boolean success = writer.writeImage(document, "jpg", "", 1, 1, "C:\\Image Quality\\150", BufferedImage.TYPE_INT_RGB, 150); return document; In above code I can specify the image resolution(150) while extracting the image from pdf. With higher resolution I get larger image in return. Now I want reverse of it means to