ドキュメントを回転させる n8n アクション
PDF4me ドキュメントを回転する 全体を回転させる PDF 一貫した角度適用による文書 n8n 自動化ワークフロー。プロセス PDFs 経由 n8n トリガー、バイナリデータ、base64文字列、または公開 URLs 文書の品質を維持し、書式設定を保持し、すべてのページで均一な向きを保ちながら、すべてのページを90°、180°、270°、またはカスタム角度で回転させることができます。このソリューションは、向きの補正、スキャン文書の修正、文書の標準化、レイアウトの補正、および品質を維持しながら一貫した回転とシームレスな統合を必要とする自動文書回転ワークフローに最適です。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
設定
追加する PDF4me 「ドキュメントを回転」ノードを n8n ワークフローを実行し、必要なパラメータを設定します。初期設定手順については、こちらをご覧ください。 n8n 統合ガイド。
前提条件:
- PDF4me API 資格
- n8n ワークフローへのアクセス
構成:
- 追加 PDF4me ノードからワークフローへ
- 「ドキュメントを回転」アクションを選択します。
- 入力パラメータを設定します(下記参照)。

パラメータ
ドキュメント回転アクションのパラメータ一覧です。これらのパラメータを設定することで、ドキュメントの回転を制御できます。
重要: アスタリスク(***)が付いているパラメータは必須であり、アクションが正しく機能するためには必ず指定する必要があります。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Input Data Type | Required | Choose how to provide the PDF file to rotate. Options: Binary Data, Base64 String, URL. Default is `Binary Data`. | Binary Data |
| Binary Property | Conditional | Name of the binary property containing the file to rotate. Shown when Input Data Type is Binary Data. Default is `data`. | data |
| Input File Name | Conditional | Name of the input file (including extension). If not provided, will use the filename from binary data. Shown when Input Data Type is Binary Data. | |
| Base64 Content | Conditional | Base64 encoded content of the file to rotate. Shown when Input Data Type is Base64 String. | UEsDBBQABgAI... |
| Input File Name | Conditional | Name of the input file (including extension). Shown when Input Data Type is Base64 String. | |
| File URL | Conditional | URL of the file to rotate. Shown when Input Data Type is URL. | https://abc.com/sample.pdf |
| Input File Name | Conditional | Name of the input file (including extension). Shown when Input Data Type is URL. | |
| Document Name | Optional | Name of the output PDF document. Default is `output.pdf`. | output.pdf |
| Rotation Type | Required | Type of rotation to apply to the entire document. Options: No Rotation, Clockwise, Counter Clockwise, Upside Down. Default is `Upside Down`. | Upside Down |
| Output Binary Field Name | Optional | Name of the binary property to store the output PDF file. Default is `data`. | data |
| Advanced Options | Optional | Optional settings, collapsed behind Add Option. | Add Option |
| Custom Profiles | Optional | Use "JSON" to adjust custom properties. Review Profiles at https://dev.pdf4me.com/apiv2/documentation/ to set extra options for API calls and may be specific to certain APIs. | { "outputDataFormat": "json", "preserveMetadata": true, "optimizeForPrinting": false, "compressionLevel": "medium" } |
出力
出力パラメータ
| 分野 | タイプ | 内容物 |
|---|---|---|
fileName | String | File name of the resulting file. |
mimeType | String | MIME type of the resulting file, for example `application/pdf`. |
fileSize | Number | Size of the resulting file in bytes. |
success | Boolean | True when the operation succeeded. |
message | String | Status message, `Document rotated successfully`. |
inputDataType | String | Input Data Type that was used (how the file was provided). |
sourceFileName | String | Name of the input file. |
docName | String | Document Name that was sent to PDF4me (the input file's name when Document Name is empty). |
rotationType | String | Rotation Type that was applied. |
data | Binary | The rotated PDF. |
N8N 行動対応
の PDF4me ドキュメントを回転する API 複数の形式で表示可能なレスポンスを返します。ニーズに最適な表示形式を選択してください。
- JSON
- Table
- Schema
- Binary
JSON 回答形式
生 JSON からの応答 API:
[
{
"fileName": "output.pdf",
"mimeType": "application/pdf",
"fileSize": 2934,
"success": true,
"message": "Document rotated successfully",
"docName": "output.pdf",
"rotationType": "Clockwise"
}
]
テーブルビュー
構造化された表形式の応答データ:
| パラメータ | 価値 |
|---|---|
| fileName | output.pdf |
| mimeType | application/pdf |
| fileSize | 2934 |
| success | true |
| message | Document rotated successfully |
| docName | output.pdf |
| rotationType | Clockwise |
スキーマビュー
レスポンスのデータ構造と型:
1 item
fileName: AB output.pdf
mimeType: AB application/pdf
fileSize: # 2934
success: ☑ true
message: AB Document rotated successfully
docName: AB output.pdf
rotationType: AB Clockwise
タイプ指標:
AB= String#= 番号☑= Boolean
バイナリデータビュー
実際に回転した PDF ファイルデータとメタデータ:
data
─────────────────────────────
File Name: output.pdf
File Extension: pdf
Mime Type: application/pdf
File Size: 2.9 KB
バイナリデータアクセス:
- n8n バイナリオブジェクト:
$binary.data.data - Base64 コンテンツ直接使用可能
- ファイル操作ダウンロード、メール送信、または保存の準備ができました
ユースケース
文書の修正とオリエンテーション
- 上下逆さままたは横向きにスキャンされた文書全体を修正します
- モバイルデバイスで作成されたドキュメントの向きの問題を修正します
- 複数の文書ソース間で文書の向きを標準化する
専門的な文書作成
- 印刷およびプレゼンテーション用に、文書全体が適切な向きになっていることを確認してください。
- レポートやプレゼンテーションにおける正しい向きの問題
- デジタルアーカイブ用に文書を準備する際は、必ず一貫した向きで準備してください。
自動文書処理
- 文書回転機能を文書処理ワークフローに統合する
- バッチ処理操作中に発生する向きの問題を自動的に修正します
- さまざまな表示および印刷要件に対応した文書作成を効率化する