Forum


Replies: 4   Views: 3196
Change size etc in template?
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by marcushjortsberg  · 10-08-2011 - 15:20

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??

Posted by admin  · 11-04-2013 - 12:13

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.

Posted by marcushjortsberg  · 11-04-2013 - 12:13

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?)

Posted by admin  · 11-04-2013 - 12:13

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.