English | 日本
BCL Technologies
Shopping CartContact Us
BCL easyPDF SDK

Rasterizing PDF with Java

Benefits

  1. PDF to EMF (Enhanced Metafile) image conversions.
  2. Rasterizing PDF into BMP, GIF, JPEG, PNG, and TIFF image formats.
  3. Set page number, image color, image quality, image resolution, page conversion timeout.

Sample Project File

/*
This program demonstrates easyPDF SDK ability to convert a PDF file to an image file.
Usage: java TestConverter [pdf file] [image file]
*/

import com.bcl.easypdf.*;
import com.bcl.easypdf.EasyPDFConverter.*;
import java.io.File;

public class TestConverter
{
	public static void main(String[] args) throws Exception
	{
		if (args.length == 2)
		{
			File inputFile = new File(args[0]);
			String inputFileName = inputFile.getCanonicalPath();

			File outputFile = new File(args[1]);
			String outputFileName = outputFile.getCanonicalPath();

			EasyPDF.initialize();

			IPDFConverter cvtr = new IPDFConverter();
			IPDF2Image pti = cvtr.getPDF2Image();
			pti.Convert(inputFileName,outputFileName,null,null,null);            

			EasyPDF.uninitialize();
		}
		else
		{
			System.out.println("Usage: java TestConverter [pdf file] [image file]");
			System.out.println("For example:");
			System.out.println("java TestConverter c:\\input\\smile.pdf c:\\output\\smile.jpg");
		}
	}
}
            

 

Download Free Trial
For Windows-based systems only

Request Pricing
BCL easyPDF SDK is a commercially supported PDF toolkit.


QuickStart PDF Java Video
Watch a QuickStart Video on how to use easyPDF SDK in Windows-based Java Environment.
PDF Java Features
Sample PDF Java Projects and Documentation
  • “We use easyPDF SDK technology for PDF conversion and it works very well. We knew BCL is a solid company. We have also looked at several competitors and tried to use their products, but we like easyPDF SDK the best. When we talked to BCL Technologies’ design engineering team, we knew they had the knowledge and confidence to solve our problems.

    - Chris Babiasz, MSWireless
-
 
BCL
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.