English | 日本
BCL Technologies
Shopping CartContact Us
BCL easyPDF SDK: PDF Java
PDF Java

PDF Creation Toolkit for Your Windows-Based Java Applications

A few lines of Java code are all it takes to get started to convert a document to PDF in your Windows-based Java application:

...
IPrinter printer = new IPrinter();
IPrintJob pj = printer.getPrintJob();
pj.PrintOut(inputFileName, outputFileName);
...

See the entire Java code

  • “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

Comprehensive PDF Features for Java Programming

BCL easyPDF SDK provides a high level Java API for converting numerous file formats to PDF, modifying existing PDF files, converting PDF files to a variety of image formats, and populating PDF form fields. It is a commercially supported toolkit that is powerful and easy to use in any Java application that works with PDF documents.

BCL easyPDF SDK is engineered to withstand the rigors of server side use but is flexible enough for both server and desktop deployments. Several lines of code are all that's required to generate and post process your PDF documents in Java.

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
  • CREATING PDF with Java
  • PROCESSING PDF with Java
  • RASTERIZING PDF with Java
  • PDF FORM with Java

Creating PDF with Java

Code Snippet

...
File inputFile = new File(args[0]);
String inputFileName = inputFile.getCanonicalPath();

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

EasyPDF.initialize();

IPrinter printer = new IPrinter();
IPrintJob pj = printer.getPrintJob();
pj.PrintOut(inputFileName, outputFileName);

EasyPDF.uninitialize();
...
                  

See the entire PDF Java code

Processing and Manipulating PDF with Java (Merging, Splitting, Rotating, Deleting, Extracting, Optimizing, etc)

Code Snippet for Merging PDF Files

...
File inputFile1 = new File(args[0]);
String inputFileName1 = inputFile1.getCanonicalPath();

File inputFile2 = new File(args[1]);
String inputFileName2 = inputFile2.getCanonicalPath();

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

EasyPDF.initialize();

IPDFProcessor pcr = new IPDFProcessor();
pcr.Merge(inputFileName1, inputFileName2, outputFileName);

EasyPDF.uninitialize();
...
                  

See the entire PDF Java code

Rasterizing PDF with Java

Code Snippet

...
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();


...
                  

See the entire PDF Java code

Processing PDF Form Fields with Java

Code Snippet

...
IFormField myFormField;
ITextField myTextField;
IComboField myComboField;

File inputFile = new File(args[0]);
String inputFileName = inputFile.getCanonicalPath();

...

EasyPDF.initialize();

IPDFDocument doc = new IPDFDocument();

doc.Open(args[0]);

IFormFields formFields = doc.getFormFields();
int nItems = formFields.getCount();

for (int i = 0; i < nItems; ++i)
{
    myFormField = formFields.getItem(new Integer(i));

    if (myFormField.getType() == docFormFieldType.DOC_FRMTYPE_TEXT) {
        myTextField = (ITextField) myFormField;
        System.out.println("Field name = " + myTextField.getName());
        System.out.println("getPassword = " + myTextField.getPassword());
        System.out.println("getMaxLen = " + myTextField.getMaxLen());
		...
		...

    }else if (myFormField.getType() == docFormFieldType.DOC_FRMTYPE_COMBO ) {
        myComboField = (IComboField) myFormField;
        System.out.println("Field name = " + myComboField.getName());
        System.out.println("Custom value = " + myComboField.getCustomValue());
        System.out.println("Custom value enabled = " + myComboField.getCustomValueEnabled());
		...
		...

    } else {
        System.out.println("Field name = " + myFormField.getName());
    }
}
System.out.println("\n\n");
IRadioField myRadioField;

...

myFormField = formFields.getItem(new String("Gender"));
System.out.println("Field name = " + myFormField.getName());

myRadioField = (IRadioField) myFormField;
System.out.println("Field name = " + myRadioField.getName());
System.out.println("getNoToggleToOff = " + myRadioField.getNoToggleToOff());
System.out.println("getRadiosInUnison = " + myRadioField.getRadiosInUnison());
...
...

EasyPDF.uninitialize();
...
                  

See the entire PDF Java code

 

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