add_table_of_contents_docx
Add a table of contents to Word .docx files by auto-detecting headings or using manual entries, with dynamic Word fields, hierarchy indents, custom titles, and page breaks.
Instructions
Menambahkan Daftar Isi (Table of Contents / TOC) pada dokumen .docx. Mendukung TOC dinamis Word (field fldSimple/complex F9), entri manual / terhitung dengan dot leaders (... nomor halaman), auto-deteksi heading dokumen, indentasi hierarki level, kustomisasi judul ('DAFTAR ISI', 'DAFTAR TABEL', 'DAFTAR GAMBAR'), dan page break.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | No | ||
| heading | No | DAFTAR ISI | |
| toc_type | No | auto | |
| file_path | Yes | ||
| font_name | No | ||
| max_level | No | ||
| tab_leader | No | dots | |
| bold_level_1 | No | ||
| font_size_pt | No | ||
| line_spacing | No | ||
| insert_before | No | ||
| space_after_pt | No | ||
| level_indent_cm | No | ||
| paragraph_index | No | ||
| page_break_after | No | ||
| page_break_before | No | ||
| heading_font_size_pt | No | ||
| update_fields_on_open | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |