> For the complete documentation index, see [llms.txt](https://support.bridge-funeral.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.bridge-funeral.com/lwc-puropati-app-builder/52-lwc-pdf-output-config.md).

# PDF 出力カード (slipPdfPrint / ceremonyPdfPrint) の設定

伝票・施行情報それぞれに PDF 出力 LWC があります。プロパティが多くないため簡潔ですが、配置と動作を理解しておくと運用が安定します。

## 2 種類の PDF 出力 LWC

| LWC                    | 配置先                             | プロパティ数 |
| ---------------------- | ------------------------------- | ------ |
| **`slipPdfPrint`**     | 伝票 (`Slip__c`) 詳細ページ            | 0 個    |
| **`ceremonyPdfPrint`** | 施行情報 (`sou__Ceremony__c`) 詳細ページ | 1 個    |

## ① 伝票 PDF 出力 (`slipPdfPrint`)

### 配置

伝票詳細ページ (Lightning Page) の右側にコンポーネントを配置。レコードタイプ別にページを分けるなら、各ページに配置。

### プロパティ

設定可能なプロパティはありません。伝票レコードタイプ (見積 / 請求 / 発注 / テンプレート) によって表示されるボタンが **自動で切り替わります** 。

| レコードタイプ               | 表示ボタン                                |
| --------------------- | ------------------------------------ |
| **見積 (Estimate)**     | 見積書 (サマリー付) / 見積書 (明細のみ)             |
| **請求 (Invoice)**      | 請求書 (サマリー付) / 請求書 (明細のみ) / 領収書 (3 連) |
| **発注 (Order)**        | (現時点で標準ボタンなし)                        |
| **テンプレート (Template)** | 「この伝票区分では PDF 出力は提供されていません。」         |

### サポート対象

* Large (デスクトップ) と Small (モバイル) 両対応
* Form Factor: `Large` / `Small`

### 制限

`slipPdfPrint` 自体は外部からのカスタマイズプロパティを持ちません。レイアウト・項目の出力内容は **パッケージで固定** 。組織独自レイアウトが必要なら別途カスタム開発が必要。

## ② 施行情報 PDF 出力 (`ceremonyPdfPrint`)

### 配置

施行情報詳細ページの右側に配置。

### プロパティ (1 個)

| プロパティ                                               | データソース                                     | デフォルト      | 説明                         |
| --------------------------------------------------- | ------------------------------------------ | ---------- | -------------------------- |
| **供物一覧 PDF の対象伝票** (`offeringListSourceRecordType`) | `Estimate`, `Invoice`, `Order`, `Template` | `Estimate` | 供物一覧 PDF の集計対象とする伝票レコードタイプ |

### 「供物一覧 PDF の対象伝票」の選び方

組織の運用 (供物がどの段階で確定するか) に応じて選択:

| 値                   | 意味          | こんな組織向け                |
| ------------------- | ----------- | ---------------------- |
| `Estimate` (見積)     | 見積伝票の明細から集計 | 見積段階で供物を確定する組織 (デフォルト) |
| `Invoice` (請求)      | 請求伝票の明細から集計 | 請求段階で確定する組織            |
| `Order` (発注)        | 発注伝票の明細から集計 | 発注先業者経由で供物を扱う組織        |
| `Template` (テンプレート) | テンプレ伝票から集計  | 標準パターンを雛形管理する組織 (稀)    |

> 通常は **`Estimate` (見積)** で運用 。受注時点で供物の差出人・品目が確定するため。

### 出力されるボタン

`ceremonyPdfPrint` を配置すると、自動的に以下 3 つのボタンが表示:

* **訃報 (Obituary)**
* **供物一覧 (Offering List)** ← トグルで金額表示 ON / OFF
* **葬儀日程表 (Schedule Sheet)**

## ③ 発行元プルダウン (`issuerSelector`) - 内部利用のみ

カードヘッダ右上に表示される発行元プルダウン (`issuerSelector`) は、`isExposed=false` (App Builder 非表示)、**`slipPdfPrint` / `ceremonyPdfPrint` 内部から自動的に使われる** 部品です。直接配置・設定はできません。

カスタマイズしたい場合:

* 発行元レコードを `Setup → オブジェクトマネージャ → 発行元` で編集
* 発行元管理モーダル (歯車アイコン) でロゴアップロード・並び替え

詳しくは [発行元 (支店) を設定する](/settoappu/02-issuer-setup.md) 参照。

## 配置例: 伝票 (見積) 詳細ページ

```
SlipRecordPage_Estimate (見積)
─────────────────────────────────────────
[左 6 カラム]              [右 6 カラム]
─────────────────────────  ─────────────────────────
ハイライト                  伝票 PDF 印刷 (slipPdfPrint)
                            ・ 見積書 (サマリー付)
                            ・ 見積書 (明細のみ)
─────────────────────────
伝票エディタ                
(slipDetailEditor)         関連リスト・活動など
                            
ヘッダ項目                  
```

## 配置例: 施行情報詳細ページ

```
CeremonyRecordPage
─────────────────────────────────────────
[上段]
ハイライト + 葬儀日程エディタ (ceremonyScheduleEditor)

[下段左]                    [下段右]
─────────────────────────  ─────────────────────────
ヘッダ詳細項目              施行情報 PDF 印刷 (ceremonyPdfPrint)
関連リスト                  ・ 訃報
                            ・ 供物一覧 (金額トグル付)
                            ・ 葬儀日程表
```

## こんなときは

### 「供物一覧 PDF」が空欄

`offeringListSourceRecordType` で指定したレコードタイプの伝票が、その施行情報に **1 つも存在しない** 可能性。

* 例: 設定が `Estimate` だが、対象施行情報に見積伝票が無い場合 → 空欄
* 商品マスタの「供物一覧に表示する商品」フラグが立っている明細が無い場合も空欄

### 配置したのに表示されない

* ページが「有効化」されていない
* 該当オブジェクト (Slip\_\_c / Ceremony\_\_c) のレコードタイプに割り当て済みか確認
* ユーザーに **`SlipDetailEditorUser`** 等の補助権限が無いと一部機能が制限

### PDF ダウンロードが日本語ファイル名で文字化け

→ パッケージ標準で対応済み (`Content-Disposition` ヘッダで日本語ファイル名がそのまま保存される)。 発生する場合は **古いブラウザ** が原因の可能性。Chrome / Edge / Safari の最新版で確認。

### ロゴが PDF に反映されない

→ プロパティ問題ではなく **発行元レコードのロゴアップロード** が原因。 発行元管理モーダル (歯車アイコン) で確認 → [発行元 (支店) を設定する](/settoappu/02-issuer-setup.md)。

### サマリー付 / 明細のみ のレイアウトを変えたい

→ パッケージで固定 (LWC 内部実装)。組織独自レイアウトが必要な場合はカスタム開発が必要。

### モバイルで使えるか

* `slipPdfPrint`: Small / Large 両対応 (モバイル可)
* `ceremonyPdfPrint`: パッケージ標準でモバイル対応

## ベータ版表示

PDF 出力カードには「**ベータ版**」バッジが付きます。これはレイアウト・項目が将来変わる可能性があることを示しています。標準で運用しても問題ありませんが、本番運用前に Sandbox での出力確認を推奨。

## 一般ユーザー向け参考

PDF 出力の使い方は一般ユーザー向け [PDF 出力カードを使いこなす](/nori/12-pdf-output-card.md) を参照。

## 次に進む

* [カードビュー (cardView) の設定](/lwc-puropati-app-builder/50-lwc-card-view-config.md)
* [伝票エディタ (slipDetailEditor) の設定](/lwc-puropati-app-builder/51-lwc-slip-editor-config.md)
* [その他の LWC 設定 (会員権セレクタなど)](/lwc-puropati-app-builder/53-lwc-other-config.md)
* [発行元 (支店) を設定する](/settoappu/02-issuer-setup.md)

***

📅 最終更新日: 2026-06-16


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.bridge-funeral.com/lwc-puropati-app-builder/52-lwc-pdf-output-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
