Solve complex problems with a couple of lines of Java
// Read an image
BufferedImage bufferedImage = JDeli.read(heicImageFile);
// Write an image
JDeli.write(bufferedImage, "heic", outputStreamOrFile);
// Convert BMP/ DICOM/ EMF/ GIF/ JPEG/ JPEG2000/ JPEGXL/ PNG/ PSD/ SGI/ TIFF/ WEBP/ WMF to HEIC in One Line
JDeli.convert(inputImageFile, heicImageFile);
import java.util.Map;
public final class ExampleUsage {
public static void main(final String[] args) {
final IDRCloudClient client = new IDRCloudClient("https://cloud.idrsolutions.com/cloud/" + IDRCloudClient.BUILDVU);
final HashMap<String, String> params = new HashMap<>();
params.put("token", "YOUR_TRIAL_TOKEN"); // Token provided to you via e-mail
params.put("input", IDRCloudClient.UPLOAD);
params.put("file", "path/to/file.pdf");
try {
final Map<String, String> results = client.convert(params);
System.out.println(" --------- ");
System.out.println(results.get("previewUrl"));
IDRCloudClient.downloadResults(results, "path/to/outputDir", "example");
} catch (final ClientException | InterruptedException e) {
e.printStackTrace();
}
}
}
HTMLConversionOptions conversionOptions = new HTMLConversionOptions();
// Set conversion options here e.g. conversionOptions.setImageScale(1.2f);
FormViewerOptions viewerOptions = new FormViewerOptions();
// Set FormViewer options here e.g. viewerOptions.setEnableFDFJavaScript(true);
File input = new File("C:/MyDocument.pdf");
File output = new File("C:/MyOutputDirectory/");
PDFtoHTML5Converter converter = new PDFtoHTML5Converter(input, output, conversionOptions, viewerOptions);
try {
converter.convert();
} catch (PdfException e) {
e.printStackTrace();
}
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.OPENFILE, "pdfFile.pdf");
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(ViewerCommands.OPENFILE, "image.tiff");
ConvertPagesToImages.writeAllPagesAsImagesToDir("inputFileOrDir", "outputDir", "bmp", 1.33f);
Helping Developers to work with PDF Documents since 1999
Do you need to solve these problems?
Our Products
100% Java SDKs to display, convert and process PDF documents
BuildVu
FormVu
JPedal
JDeli
Why Do Companies Buy Software From IDRsolutions?
Proven Java PDF Expertise
25 years of deep technical knowledge delivering robust, reliable solutions that work.
Direct Developer Support
Get answers directly from the actual software Developers in hours, not weeks.
Long-Term Partnership Focus
Small company committed to your success, not quarterly revenue targets.
Developer-First Design
Clean APIs and practical functionality over flashy features that don't solve real problems.
Predictable Costs, Lasting Value
Transparent pricing with no hidden fees, plus regular updates and new features included.
Members of the PDF Association
IDRsolutions are a member of the PDF Association which was founded in 2006 as PDF/A Competence Center. PDF/A Association is a co-operation between numerous innovative and world leading companies that specialise in the PDF file format. They exist to promote, exchange and share information on PDF technology.
