| 开发者 | npc01 |
|---|---|
| 更新时间 | 2026年5月12日 01:05 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
acf-json/group_xxx.json) and field groups stored in the database__() / _e() and the text domain npc-manual-generator-for-advanced-custom-fields. A Japanese translation is bundled (languages/npc-manual-generator-for-advanced-custom-fields-ja.po). Additional languages can be contributed through translate.wordpress.org.
Roadmap
npc-acf-manual-generator/ folder (including vendor/ and fonts/) to wp-content/plugins/.vendor/ directory is excluded from version control. Install the dependencies with Composer:
composer install --no-dev --optimize-autoloader
Requirements
mbstring (required), gd (required for PDF output), zip (required for bulk Zip download)No. Markdown / PDF generation from sample JSON works without ACF. ACF 6.0 or higher is recommended for reading actual field groups from the database.
The basic field types work with ACF Free. Repeater / Flexible Content require ACF Pro.
One of the following is the cause. The exact reason is shown in the admin notice.
vendor/autoload.php is missing - run composer install --no-devfonts/ipaexg.ttf is missing - place IPAex Gothic (IPA Font License v1.0) under fonts/gd or mbstring is disabled - enable it on the serverwp-content/uploads/ is not writable - required to create a temporary directoryYes. The header comment of includes/class-pdf-generator.php documents six apply_filters() extension points (template path, header HTML, footer HTML, mPDF config, default font, final HTML). Add filters from functions.php or your own plugin to swap logos, colors, and layout.
The Markdown path is designed to handle 100 field groups within a few seconds. PDF generation for very large manuals (100+ pages) may require raising WP_MEMORY_LIMIT and the PHP execution time limit.
[deleted: ID:xxxx]sample-data/group_sample.json is bundled. After activating the plugin, you can try Markdown / PDF generation from this sample even without ACF installed.
Contributions through the WordPress.org translation platform (translate.wordpress.org) are welcome.
See the six apply_filters() calls described in the header comment of includes/class-pdf-generator.php:
npc_acf_manual_pdf_template_path - swap the template file pathnpc_acf_manual_pdf_header_html - swap the header HTMLnpc_acf_manual_pdf_footer_html - swap the footer HTMLnpc_acf_manual_pdf_mpdf_config - swap the mPDF constructor argumentsnpc_acf_manual_pdf_default_font - swap the default fontnpc_acf_manual_pdf_html - swap the final HTML (last resort)add_filter() calls from functions.php or your own plugin to apply your branding.
sample-data/group_sample.json works as a stand-in even when ACF is not installed. A pre-generated sample-data/group_sample.pdf is also bundled for reference.
apply_filters() extension points in PDF_Generator for white-label customization