In some document processing scenarios, PDF files often contain many images, such as scanned documents, product manuals, report attachments, contract images, and so on. Sometimes we need to extract images from a PDF for archiving, recognition, or further editing. In other cases, a PDF file may become too large because it contains high-resolution images, and image compression becomes necessary. This article uses demonstrate two common operations: Extract images from a PDF document in Java Compress high-quality images in a PDF document in Java 1. Preparation The sample code uses a Maven project. First, add the Spire.PDF for Java dependency to your pom.xml file. <repositories> <repository> <id> com.e-iceblue </id> <name> e-iceblue </name> <url> https://repo.e-iceblue.com/nexus/content/groups/public/ </url> </repository> </repositories> <dependencies> <dependency> ...
File APIs for Word/Excel/PowerPoint/PDF
A blog about Microsoft Office and PDF document development using .NET and Java.