Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
If I have a template that my users import to create some documents, is it possible to change the size of text and other things dynamicly so that I don't have to have one template for each design??
Hello,
It's not possible to change styles of text placeholders in a template, but you can use HTML and CSS to replace a placeholder and define custom styles.
Regards.
Could someone maybe show a small example?
Just so that I see how it is done:) (One font in word is Pristina, can I add that by css and html?)
Hello,
Please check the following examples:
examples/intermediate/HTML.php
examples/easy/TemplateHTML.php
included in phpdocx pro.
You can add almost CSS styles, including <styles> tags.
Regards.