PDFファイルの表示、抽出、変換をJavaで実現
PDFソフトウェア開発SDK JPedal
JPedalは、開発者が簡単にJavaでPDFファイルを表示、変換、印刷、解析できるようにするJava SDKです。
JPedalはPDFソフトウェア開発の強い味方、ほんの数行のコードを追加するだけでPDFファイルを扱う処理を記述できます。JPedalはJavaや他言語でのPDFプログラミングを圧倒的に簡単にします。20年以上に渡ってPDF関連ツールを提供してきた実績が、性能と信頼の証です。
動作の仕組み
JPedalはjarとして提供され、あなたのコードから直接アクセスできます。
1. pom.xml ファイルに IDRsolutions リポジトリを追加します。
IDRsolutions
IDR Solutions
https://maven.idrsolutions.com
2. pom.xml ファイルに JPedal の依存関係を追加します。
com.idrsolutions
jpedal-trial
2022.09
以下のような課題を、わずか数行のコード追加で解決します。
Viewer viewer = new Viewer();
viewer.setupViewer();
viewer.executeCommand(Commands.OPENFILE, new Object[] {"pdfFile.pdf"});
ConvertPagesToImages.writeAllPagesAsImagesToDir("inputFileOrDir", "outputDir", "bmp", 1.33f);
ArrayList resultsForPages = FindTextInRectangle.findTextOnAllPages("/path/to/file.pdf", "textToFind");
PrintPdfPages print = new PrintPdfPages("C:/pdfs/mypdf.pdf");
if (print.openPDFFile()) {
print.printAllPages("Printer Name");
}
ExtractClippedImages.writeAllClippedImagesToDir("inputFileOrDirectory", "outputDir", "outputImageFormat", new String[] {"imageHeightAsFloat", "subDirectoryForHeight"});
ExtractTextAsWordList.writeAllWordlistsToDir("inputFileOrDirectory", "outputDir", -1);
final PdfUtilities utilities = new PdfUtilities("path/to/exampleFile.pdf");
try {
if (utilities.openPDFFile()) {
// Returns a String containing all metadata fields for the document
final String documentPropertiesAsXML = utilities.getDocumentPropertyFieldsInXML();
// Returns the total page count as an int
final int totalPageCount = utilities.getPageCount();
for (int i = 1; i != totalPageCount; i++) {
// Get the page dimensions for the specified page in the given units and type
final float[] pageDimensions = utilities.getPageDimensions(i, PdfUtilities.PageUnits.Pixels, PdfUtilities.PageSizeType.CropBox);
// Returns the image data as a String for the specified page
final String xImageDataForPage = utilities.getXImageDataForPage(i);
}
}
}
catch (final PdfException e) {
e.printStackTrace();
}
utilities.closePDFfile();
WritableAnnotation[] annotations = new WritableAnnotation[2];
annotations[0] = new SquareAnnotation(1, 10, 10, 100, 100);
annotations[1] = new CircleAnnotation(2, 10, 10, 100, 100);
AnnotationWriter.writeAnnotations(inputFile, outputFile, annotation);
JPEDALをご利用中の開発者さまの声
JPedalを導入している企業さま








JPedalを導入する理由は?
JPedalには選ばれる理由があります。導入企業が注目したポイントを紹介します。
性能と信頼性
多機能、高速、省メモリで高可用
使い始めやすい・わかりやすい
理解しやすいAPIと豊富なサンプルコード
使い勝手のよいライセンス体系
契約時に料金確定。変換回数による課金なし
サポートの充実
ナリッジページから個別サポートまで多様
安定版から最新版までのJavaに対応
モダンスタイルのJavaに対応
ソースコードの提供(OEMライセンス限定)
通常のバイナリJARに加えてソースコードも提供

開発会社 IDR Solutions Limited
IDRsolutionsは英国で1999年、マーク スティーブンス によって創設されました。同社は、The TimesやThe Sunなどの英国最大の新聞の一部をオンラインで閲覧するソフトウェアを開発しました。 これらのソフトウェア開発は、PDFやその他の様々なファイルを表示して作業するためのソリューションに役立つ4つの製品(JPedal、JDeli、BuildVu、FormVu)の製品群に発展しました。
IDRsolutionsのソフトウェアはColdFusion製品にJPedal(PDFライブラリ)をライセンスしたAdobe社をはじめ、世界中のクライアントが利用しています。

a member of the PDF Association
※株式会社インターワークはIDRsolutionsの日本総代理店です。