メインコンテンツへスキップ

ページ番号を追加 PDF で Power Automate

このアクションが何をするか

PDF4meページ番号を追加 PDF スタンプにプロフェッショナルなページ番号を PDF ドキュメントを直接 Power Automate フローを選択します。 フォーマット (ページ X、Y 中の X、番号のみ、Y 中の X ページ)、制御 水平位置と垂直位置、 セット フォントサイズ、太字、斜体また、オプションで表紙ページの最初のページをスキップすることもできます。これらすべてをAcrobatを開かずに実行できます。 SharePoint、 OneDrive、そしてどんな Microsoft 365 ファイルソース。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

毎 PDF4me アクション Power Automate 有効な 繋がり入力してください PDF4me API キーは、アクションを初めて追加したときに自動的に再利用され、以降のすべてのアクションで再利用されます。 PDF4me 同じ流れの中で行われるアクション。

見逃してはならない重要な事実​

ページフォーマットは、数値の表示方法を制御します。
ページフォーマットフィールドでは、以下から選択できます。 ページX (例:「3ページ目」) X (数字のみ) YのX (例:「10件中3件目」) Yページ中Xページ目顧客向けレポートや法的文書では、「Yページ中Xページ」という形式が最も一般的です。省略した場合、デフォルトで「Xページ」となります。
「最初のページをスキップ」をクリックすると、表紙のページ番号が削除されます。
セット 最初のページをスキップ: true ページ番号は2ページ目から始まり、表紙またはタイトルページには番号は付きません。これは、報告書、提案書、マニュアルなどの標準的な書式です。ページ番号は実際のページ数を反映しているため、「ページX/Y」形式を使用した場合、2ページ目には「10ページ中2ページ目」と表示されます。
余白は、配置端からのミリメートル単位です。
水平マージンと垂直マージンでは、選択した配置端から数値をミリメートル単位でずらします。下中央配置(最も一般的なフッター)の場合、垂直配置:下、水平配置:中央、垂直マージン:10 に設定すると、数値が下端から 10 mm の位置に配置されます。既存のフッターコンテンツが邪魔にならないように調整してください。
Power Automate PDF4meの「PDFにページ番号を追加」アクションでは、SharePointの「ファイルコンテンツの取得」ステップからマッピングされたPDFファイルコンテンツとPDFファイル名の入力が表示され、ページ形式は「Yページ中Xページ」、水平方向の配置は中央揃え、垂直方向の配置は下揃え、フォントサイズは10、最初のページをスキップはtrueに設定されています。

地図 PDF ファイルの内容と PDF ファイル名 SharePoint または OneDrive ステップ。フローを保存する前に、ページ形式、配置、フォントサイズ、および最初のページをスキップする設定を行います。

パラメータ​

必須: PDF ファイルの内容、 PDF ファイル名、水平方向の配置、垂直方向の配置、フォントサイズ。ページ形式は省略した場合、「ページX」がデフォルトになります。余白はデフォルトで0、太字/斜体はデフォルトでfalseです。

パラメータ必須その機能例
PDF File contentRequiredContent of the PDF to number. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
PDF File NameRequiredName of the PDF to number, including its extension (for example `invoice.pdf`). Map it from the file name returned by a previous action.invoice.pdf
Page FormatOptionalFormat of the page number text. The default `# of {totalPages}` shows the page number followed by the total number of pages. Defaults to `# of {totalPages}`.# of {totalPages}
Horizontal AlignmentRequiredHorizontal position of the page numbers on the page. Options: Left, Center, Right. Defaults to `Left`.Left
Vertical AlignmentRequiredVertical position of the page numbers on the page. Options: Top, Middle, Bottom. Defaults to `Top`.Top
Horizontal MarginOptionalHorizontal Margin in Millimeter. Defaults to `0`.0
Vertical MarginOptionalVertical Margin in Millimeter. Defaults to `0`.0
Font SizeRequiredFont Size for the page numbering. Defaults to `12`.12
Set BoldOptionalSet Bold font for page numbers. Options: True, False. Defaults to `No`.True
Set ItalicOptionalSet Italic font for page numbers. Options: True, False. Defaults to `No`.True
Skip First PageOptionalSkip numbering in the first page of the document. Options: True, False. Defaults to `No`.True

出力フィールド​

分野タイプ内容物
File ContentFile contentContent of the PDF with page numbers. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
File NameTextFile name of the PDF with page numbers, as returned by PDF4me. Use it as the file name when saving the file.
Page CountTextPage count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number.

クイックセットアップ​

  1. あなたの Power Automate フロー、クリック + アクションを追加 そして検索する PDF4me。
  2. 選択 ページ番号を追加 PDF。
  3. 入力してください PDF4me API 接続ダイアログにキーを入力するか、既存の接続を選択します。
  4. 地図 PDF ファイルの内容 バイナリから SharePoint、 OneDriveまたは、メールの手順。
  5. 地図 PDF ファイル名 ファイル名に含めて .pdf 拡大。
  6. セット ページフォーマット: 使用 Page X of Y 報告書、契約書、提案書など。
  7. セット 水平方向の配置 そして 垂直方向の配置: Center + Bottom これは標準のフッター位置です。
  8. 入力 フォントサイズ (10:12推奨)オプションで有効化 太字に設定。
  9. セット 最初のページをスキップする に true 文書に表紙がある場合。
  10. セット 垂直マージン に 10 底面オフセットを10mmとします。保存して流量をテストしてください。

ワークフローの例​

ワークフローの例Common Power Automate flow patterns using Add Page Number to PDF.
月次レポート作成 → ページ番号の追加 → 関係者へのメール送信
  1. 毎月1日に、スケジュールされたトリガーが作動します。
  2. SharePoint コンパイル済みの月次レポートを取得します PDF レポートライブラリから。
  3. ページ番号を追加 PDF 下部中央に「Page X of Y」というスタンプを10ptの太字フォントで押し、「Skip First Page」をtrueに設定します(表紙ページは除く)。
  4. 番号付き PDF 「分散レポート」に保存されます SharePoint フォルダ。
  5. 番号付きのメールを送信してください PDF 添付ファイルは、午前9時のスタンドアップミーティングの前に、管理部門のメーリングリストに自動的に配信されます。
ポリシー更新 → セクションの統合 → ページ番号の追加 → イントラネットへの公開
  1. A SharePoint 項目変更は、ポリシー文書の承認欄に「最終」とマークされたときにフローをトリガーします。
  2. ファイルコンテンツを取得すると、ポリシーセクションがすべて取得されます。 PDFポリシーセクションライブラリからのs。
  3. A PDF4me マージ PDFこのアクションは、すべてのセクションを1つの完全なマニュアルに統合します。
  4. ページ番号を追加 PDF 右下に「Yページ中Xページ目」という文字を太字12ポイントで追加します。「最初のページをスキップ」を選択すると、タイトルページがスキップされます。
  5. SharePoint 「ファイルの作成」機能は、完成した番号付きマニュアルを従業員ポータルライブラリに公開し、以前のバージョンを上書きします。
契約締結 → ページ番号を追加 → 実行のためのメール → アーカイブ
  1. 法的審査ワークフローにおいて契約が承認されると、承認トリガーが作動します。
  2. SharePoint 承認済みの契約書を取得します PDF 法学評論ライブラリーより。
  3. ページ番号を追加 PDF 右下隅に9ポイントの太字フォントで「Yページ中Xページ目」とスタンプが押印されている。これは法的文書の標準的な表記である。契約書には表紙がないため、「最初のページをスキップ」は誤りである。
  4. 番号付き契約書を添付したメールを送信すると、相手方に送付され、DocuSignまたは手動署名によって署名が行われます。
  5. SharePoint ファイルの作成機能は、実行済み契約ライブラリに、契約参照番号をファイル名に含んだ番号付きバージョンをアーカイブします。

よくある質問​

Which Page Format is best for professional documents?+
Page X of Y is the most universally recognized format for business reports, legal documents, and proposals: readers immediately see both their current position and the total length. X of Y works for a compact version without the word Page. Use Page X for simpler internal documents where only the current page number is needed, and bare X for minimalist designs where text labels would look out of place.
How does Skip First Page work: does numbering still start at 1?+
When Skip First Page is set to true, the first physical page of the PDF receives no number at all. Page numbering begins printing on the second physical page. The sequence displayed still reflects the true page count: so if Page Format is Page X of Y, the second page will show Page 2 of 10, not Page 1 of 9. This matches the standard publishing convention where the cover page is counted in the total but not visibly numbered.
What units are the margins in and how do I position the number at the bottom center?+
Horizontal Margin and Vertical Margin are both in millimeters. For the most common bottom-center footer position: set Vertical Alignment to Bottom, Horizontal Alignment to Center, and Vertical Margin to 10. This places the page number 10 mm from the bottom edge of each page, centered horizontally. Increase Vertical Margin if the document already has a footer with content you need to clear: try 15 mm or 20 mm and test with a sample PDF.
Can I apply both bold and italic to the page number text?+
Yes. Set Bold to true and Italic to true independently: both can be active at the same time. For most professional documents, bold alone at 10-12pt is the recommended style because it is clearly visible without being stylistically distracting. Italic-only is common in proposals where a subtle, non-intrusive number style is preferred. Bold-italic together is generally reserved for emphasis in creative or marketing documents.
What does the action return and how do I save the numbered PDF?+
The action returns File Content (binary PDF with page numbers) and File Name (the output filename). Map File Content and File Name into a SharePoint Create File action to save it to a document library, into Send an Email as an attachment to distribute it, or into OneDrive Create File for personal cloud storage. The numbered PDF is a complete, standalone file: no further post-processing is needed before sharing or archiving.

関連アクション​

テキストスタンプを追加する PDF
「下書き」、「機密」、または任意のカスタムテキストをスタンプします。 PDF ページとページ番号を組み合わせることで、完全にブランド化されたドキュメント出力が可能になります。
複数のものを結合する PDFs
複数の組み合わせ PDFページ番号を追加する前に、複数の文書を1つの文書にまとめます。これは、ポリシーマニュアル、レポートパッケージ、および複数セクションの契約書にとって不可欠です。
追加 HTML ヘッダー フッター PDF
フル追加 HTML カスタムコンテンツを含むヘッダーとフッターは、文書のヘッダーに会社名、日付、または文書IDが必要な場合に、ページ番号と併用して使用します。

ヘルプが必要な場合​