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

Java Sample Project Files with Java

Creating PDF in Java

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

Processing and Manipulating PDF in Java

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

Rasterizing PDF

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


...

Processing PDF Form Fields

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

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.