# PDF の編集

> ページ、テキスト、テーブル、画像、区切り線、注釈、ネイティブテキストに対応する PDF Facade ワークフローを選びます。

- Human documentation: [https://docs.univer.ai/ja-JP/guides/pdfs/features/core/editing](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/editing)

- Agent Markdown: [https://docs.univer.ai/ja-JP/guides/pdfs/features/core/editing.md](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/editing.md)

- Requested language: `ja-JP`

- Content language: `ja-JP`

- Documentation version: `1.2.0`

- Source: [pdfs/features/core/editing.ja-JP.mdx](https://github.com/dream-num/documentation/blob/dev/content/guides/pdfs/features/core/editing.ja-JP.mdx)

---

PDF 編集 API は Univer コマンドを通じて実行され、逆操作がある場合は元に戻す／やり直しの対象になります。変更する内容に合うトピックから始めてください。

## 編集トピック

* [ページと要素](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/pages-and-elements.md)：ページの挿入、編集可能なオーバーレイの列挙、変換、重なり順、ロック、削除。
* [テキストとリスト](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/text-and-lists.md)：テキストボックス、段落ブロック、セマンティックリストの編集。
* [テーブル](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/tables.md)：グリッドの挿入とサイズ変更、セルの更新、テーマの適用。
* [画像と区切り線](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/images-and-dividers.md)：管理対象画像とベクター区切り線の挿入。
* [注釈とネイティブテキスト](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/annotations-and-native-text.md)：対応する注釈の追加とインポートテキストの昇格。

## 操作を組み合わせる

```ts
const pdf = univerAPI.getActivePdf()
const page = pdf?.getPageByIndex(0)

if (!page) {
  throw new Error('No active PDF page')
}

const image = await page.insertImageAsync(
  'https://example.com/assets/signature.png',
  { left: 36, top: 36, width: 144, height: 72 }
)

image.setRotation(-4).bringToFront()
```

Facade の配置値は PDF ポイントです。URL 画像には絶対 `http` / `https` URL を使用してください。相対 URL パスは自動判定で受け付けられません。

ユニットの作成、取得、保存、ラッパーの全体像は [Univer PDFs API](https://docs.univer.ai/ja-JP/guides/pdfs/features/core/pdfs-api.md)を参照してください。
