JavaでPDFを作成する
利点
- 高速で印刷可能なドキュメントをPDFへ変換。
- Windows 2003/2008/Vista/XPの 64-ビットバージョンをサポート。
- 電子ドキュメントの長期保管のためのPDF/A の標準サポート。
- 印刷/広告業界における印刷用PDFファイルの交換のためのPDF/X の標準サポート。
- XPS サポート (PDF変換のためのXPSをサポート。必要条件: .NET Framework 3.0 またはそれ以上のバージョン)。
- 自動そしてCSS-駆動のページネーション (より賢い改ページ、開発者は、改ページをしたいか否かを手動でコントロールも可能です)。
- HTMLやOfficeドキュメント(Word, Excel, PowerPoint, Visio)をPDFへ変換している途中に発生しうるいかなる例外やエラーメッセージも自動でハンドル。
- フォント埋め込み&サブセッティング、画像圧縮、メタデータ、PDFセキュリティ(例 プリント許可を設定、編集)、電子署名&スタンプ、電子透かし、PDFビューア設定のような多くのPDF機能をサポート。
- 画像解像度&スケーリング、用紙の方向&サイズ、プリンタカラーのようなプリンタ設定をコントロール。
サンプルプロジェクトファイル
/*
このプログラムは、easyPDF SDKのサポートされているフォーマットのファイルをPDFへ変換する能力をデモンストレーションします。
使用方法: java TestPrintJob [入力ファイル名] [出力ファイル名]
*/
import com.bcl.easypdf.*;
import com.bcl.easypdf.EasyPDFPrinter.*;
import java.io.File;
public class TestPrintJob
{
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();
IPrinter printer = new IPrinter();
IPrintJob pj = printer.getPrintJob();
pj.PrintOut(inputFileName, outputFileName);
EasyPDF.uninitialize();
}
else
{
System.out.println("Usage: java TestPrintJob [input file name] [output file name]");
System.out.println("For example:");
System.out.println("java TestPrintJob c:\\input\\hello.doc c:\\output\\hello.pdf");
}
}
}
|
Download Free Trial
The Free Trial is a fully functional
software, with 30-day
expiration.
QuickStart Video
Watch a QuickStart Video on how to use easyPDF SDK in Java Environment

- "It took very little amount of coding to integrate easyPDF SDK into our application, and we haven’t had to change BCL code once!" - Shawn Hess, TAXWORKS
PDF Features
Sample Projects and Documentation
|