# PDF のページを並べ替える

Power Automate のフローで、PDF のページを指定した順序に並べ替えます。

このアクションを使用すると、PDF ドキュメントのページを新しい順序に並べ替えられます。指定しなかったページは除外され、複数回指定したページは繰り返されるため、このアクションは抽出と並べ替えを兼ねています。

<PowerAutomateAction
  title="Reorder the pages of a PDF" caption="Reorder the pages of a PDF." connection="PDF Blocks Next" fields={[ { label: "File Content", kind: "token", value: "File Content", required: true }, { label: "Page Order", placeholder: "The desired page order, for example 3,1,2", required: true }, ]} />

<ConnectorNotice kind="action" />

## パラメーター

<ParamField name="File Content" type="File" required>
  入力 PDF ドキュメントの内容。
</ParamField>

<ParamField name="Page Order" type="String" required>
  希望するページの順序を、ページ番号と範囲をカンマで区切ったリストとして指定します（たとえば `3,1,2`）。範囲は逆方向にも指定でき、`10..5` はページ10からページ5まで進みます。負の数は末尾から数え、`-1` は最後のページになります。指定しなかったページは除外され、複数回指定したページは繰り返されます。
</ParamField>

## レスポンス

<ParamField name="Reordered PDF File Content" type="File">
  並べ替えられた PDF ドキュメントの内容。フロー内の他のアクションへの入力として使用できます。
</ParamField>

## 関連アクション

<CardGroup cols={2}>

<Card title="ページを抽出" href="/docs/power-automate/extract-pages-from-pdf">
  並べ替えずに一部のページのみ保持します。
</Card>

<Card title="ページを削除" href="/docs/power-automate/remove-pages-from-pdf">
  特定のページを除外します。
</Card>

<Card title="ページを反転" href="/docs/power-automate/reverse-pages-of-pdf">
  ドキュメント全体を反転します。
</Card>

<Card title="ページを回転" href="/docs/power-automate/rotate-pages-in-pdf">
  選択したページを回転します。
</Card>

</CardGroup>
