English | 日本語
BCL Technologies Shopping Cart Contact Us
BCL easyPDF SDK

Javaサンプルプロジェクトファイル

JavaでPDFを作成する

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

JavaでPDFを処理そして操作する

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

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


...

PDFフォームフィールドを処理する

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

無料トライアルをダウンロード
For Windows-based systems only

価格のお問合せ

クイックスタートビデオ
Java環境下でのeasyPDF SDKの使用方法について、クイックスタートビデオをご覧ください。

  • "とても少ないコーディングでeasyPDF SDKを私たちのアプリケーションへ統合し、BCLのコードを一度も変更する必要がありませんでした!" - Shawn Hess, TAXWORKS

PDFの機能

サンプルプロジェクトと関連ドキュメント

  • “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.
弊社以外の全ての商標は、各所有者に帰属します。