PDFツールAPI
PDFファイルの結合、分割、圧縮、変換、保護、操作のエンドポイント。すべてのエンドポイントはmultipart/form-dataを受け付け、処理済みファイルをバイナリダウンロードとして返します。
PDF結合
/api/pdf-merge複数のPDFファイルを1つのPDFドキュメントに結合します。ファイルはアップロード順に結合されます。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
files | File[] | Required | 結合する複数のPDFファイル |
結合されたPDFファイルcurl -X POST https://freefiletools.io/api/pdf-merge \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "[email protected]" \
-F "[email protected]" \
-o merged.pdfPDF分割
/api/pdf-splitPDFファイルをページ範囲に基づいて複数の部分に分割します。分割されたPDFを含むZIPファイルを返します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 分割するPDFファイル |
ranges | string | Required | ページ範囲、例:"1-3,5,7-9"。各範囲が個別のPDFになります。 |
分割されたPDFを含むZIPファイルcurl -X POST https://freefiletools.io/api/pdf-split \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "ranges=1-3,5,7-9" \
-o split-pages.zipPDF圧縮
/api/pdf-compressPDFファイルを圧縮してサイズを削減します。高品質圧縮にGhostscriptを使用。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 圧縮するPDFファイル |
level | string | Optional | 圧縮レベル:"low"、"medium"、"high"。デフォルト:"medium" |
圧縮されたPDFファイルcurl -X POST https://freefiletools.io/api/pdf-compress \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "level=high" \
-o compressed.pdfPDFからWord
/api/pdf-to-wordPDFファイルをMicrosoft Word(.docx)ドキュメントに変換します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換するPDFファイル |
DOCXファイルcurl -X POST https://freefiletools.io/api/pdf-to-word \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o document.docxPDFから画像
/api/pdf-to-imagePDFページを画像に変換します。ページごとに1枚の画像を含むZIPファイルを返します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換するPDFファイル |
format | string | Optional | 画像フォーマット:"png"、"jpg"、"webp"。デフォルト:"png" |
dpi | number | Optional | 解像度(DPI)。デフォルト:150 |
画像を含むZIPファイルcurl -X POST https://freefiletools.io/api/pdf-to-image \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "format=png" \
-F "dpi=300" \
-o pages.zipPDFからExcel
/api/pdf-to-excelPDFファイルをMicrosoft Excel(.xlsx)スプレッドシートに変換します。表形式のデータを含むPDFで最適に動作します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換するPDFファイル |
XLSXファイルcurl -X POST https://freefiletools.io/api/pdf-to-excel \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o document.xlsxPDFからPowerPoint
/api/pdf-to-pptPDFファイルをMicrosoft PowerPoint(.pptx)プレゼンテーションに変換します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換するPDFファイル |
PPTXファイルcurl -X POST https://freefiletools.io/api/pdf-to-ppt \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o presentation.pptxWordからPDF
/api/word-to-pdfMicrosoft Word(.docx)ドキュメントをPDFに変換します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換する.docxファイル |
PDFファイルcurl -X POST https://freefiletools.io/api/word-to-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o document.pdfPowerPointからPDF
/api/ppt-to-pdfMicrosoft PowerPoint(.pptx)プレゼンテーションをPDFに変換します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換する.pptxファイル |
PDFファイルcurl -X POST https://freefiletools.io/api/ppt-to-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o presentation.pdfExcelからPDF
/api/excel-to-pdfMicrosoft Excel(.xlsx)スプレッドシートをPDFに変換します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換する.xlsxファイル |
PDFファイルcurl -X POST https://freefiletools.io/api/excel-to-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o spreadsheet.pdfPDF保護
/api/protect-pdfPDFファイルをパスワードで保護します。生成されたPDFは開くためにパスワードが必要になります。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 保護するPDFファイル |
password | string | Required | PDFに設定するパスワード |
パスワード保護されたPDFファイルcurl -X POST https://freefiletools.io/api/protect-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "password=mysecretpassword" \
-o protected.pdfPDFロック解除
/api/unlock-pdfPDFファイルのパスワード保護を解除します。現在のパスワードが必要です。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | パスワード保護されたPDFファイル |
password | string | Required | PDFの現在のパスワード |
ロック解除されたPDFファイルcurl -X POST https://freefiletools.io/api/unlock-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "password=mysecretpassword" \
-o unlocked.pdfPDF回転
/api/rotate-pdfPDFファイルの全ページを指定した角度で回転させます。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 回転するPDFファイル |
angle | number | Required | 回転角度:90、180、270度 |
回転されたPDFファイルcurl -X POST https://freefiletools.io/api/rotate-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "angle=90" \
-o rotated.pdfPDF透かし
/api/watermark-pdfPDFファイルの全ページにテキストの透かしを追加します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 透かしを追加するPDFファイル |
text | string | Required | 追加する透かしテキスト |
透かし入りPDFファイルcurl -X POST https://freefiletools.io/api/watermark-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "text=CONFIDENTIAL" \
-o watermarked.pdfOCR PDF
/api/ocr-pdfスキャンされたPDFに光学文字認識(OCR)を適用し、テキストを選択・検索可能にします。Tesseract OCRエンジンを使用。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | スキャンされたPDFファイル |
language | string | Optional | OCR言語:"eng"(英語)、"tur"(トルコ語)、"deu"(ドイツ語)など。デフォルト:"eng" |
検索可能なPDFファイルcurl -X POST https://freefiletools.io/api/ocr-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "language=eng" \
-o searchable.pdfPDF修復
/api/repair-pdf破損したPDFファイルの修復を試みます。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 破損したPDFファイル |
修復されたPDFファイルcurl -X POST https://freefiletools.io/api/repair-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o repaired.pdfPDFトリミング
/api/crop-pdfPDFファイルの全ページをトリミングし、余白の除去や特定の領域への切り取りを行います。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | トリミングするPDFファイル |
トリミングされたPDFファイルcurl -X POST https://freefiletools.io/api/crop-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o cropped.pdfページ番号追加
/api/page-numbersPDFファイルの全ページにページ番号を追加します。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | PDFファイル |
ページ番号付きPDFファイルcurl -X POST https://freefiletools.io/api/page-numbers \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o numbered.pdf画像からPDF
/api/img-to-pdf1つまたは複数の画像をPDFファイルに変換します。各画像が1ページになります。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
files | File[] | Required | 画像ファイル(JPG、PNG、WebP) |
PDFファイルcurl -X POST https://freefiletools.io/api/img-to-pdf \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "[email protected]" \
-F "[email protected]" \
-o images.pdfPDFからPDF/A
/api/pdf-to-pdfa長期アーカイブ用にPDFファイルをPDF/Aフォーマットに変換します。変換にGhostscriptを使用。
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | 変換するPDFファイル |
PDF/Aファイルcurl -X POST https://freefiletools.io/api/pdf-to-pdfa \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o document-pdfa.pdf