How do I change the font sizes in PDF export?
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
目的
The following KB will cover how to change the font size of both headers and content in a PDF Export.
ソリューション
Changing the format of PDF exports will require us to add our own HTML to customize.
グローバル PDF レイアウトを設定する
- Choose the cog icon , then choose General Configuration under Confluence Administration
- PDF レイアウトを選択します 。入力した HTML および CSS は、PDF タイトルページやページヘッダー、フッターにレンダリングされます。
Setting the PDF layout at the space level
- Go to the space and choose Space tools > Look and Feel from the bottom of the sidebar You'll need Space Admin permissions to do this.
- PDF レイアウトを選択します。
- 編集を選択します。
スペースでドキュメント用テーマを使用している場合:
- Choose Browse > Space Admin from the header
Note: The Space Admin option appears only if you have space admin permissions, or if you're part of the 'confluence-administrators' group.
- スペース管理オプションから PDF レイアウト を選択します。
- 編集を選択します。
Changing Headers Font Size
Add the following code in the PDF layout section:
.wiki-content h1
{ font-size: 50px; }
Please note that Confluence has a Demotion of heading elements which means that .wiki-content h1 is the element for Page Title, while .wiki-content h2 is the element for Header 1 and so forth. This information is quoted from this documentation: Customize Exports to PDF
Changing Content Font Size
Add the following code in the PDF layout section
body,p,li,td,table,tr,.bodytext,.stepfield
{ font-size: 8pt; }