We will add articles to customize the output templates in our plugin documentation in near future.
Meanwhile, to customize the output templates, you can open the plugin folder and go to the templates folder, where we have posts.twig and post.twig. You can edit these two template files in your favorite code editor. The list of available template variables is given inside the templates. To learn more about Twig template engine please visit https://twig.symfony.com/.
Thank you for your responses. But I’m looking for enhance the layout of the generated doc with specfics fonts, margin, spacing, colors, etc… I’m affraid twig templates can’t help me to do that ?
Do i’ve another way to do it, like specifing a open office template maybe ?
No, I’m afraid it seems it is not possible using Aspose.Words Exporter WordPress Plugin. However, we are further investigating the issue and will conclude it shortly.
As stated above changing the formatting of generated Word documents is out of the scope of the plugin. Our plugin converts WordPress posts and pages to Word documents and lets the user download them. We try to preserve formatting as well as content during the conversion process. To get the most of our plugin, you can format your post including fonts, colors, etc. using some WordPress editor and export the post into a Word document.
However, if you want to enhance/change the layout of generated Word document programmatically you may use Aspose.Words on-premise or Cloud API as per your requirement.
We have logged a ticket(WORDPRESS-625) to investigate your required feature. We will keep you updated about the issue resolution progress within this forum thread.