Ask questions on how to capture or convert web pages or HTML into images, CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.
Hello,
i need to pass a custom html to header and footer, i see that with
$options->setTemplateId("template-id");
$footer="<strong>TEST</strong>";
$options->AddTemplateParameter("footer",$footer);
i have in docx <strong>TEST</strong> but i need to show only "TEST" in bold
how can i fix?
thank you
Unfortunately this isn't possible as the template does not use normal HTML but a modified subset which is used by a special parser.
You can only pass plain text to the template. To change the structure of the template you will have to have multiple templates.
and can i send a text with break line?
like
row1\n
row2\r
or something like that?
thank you
I think we can add that feature, it should be done in a couple of days.
Its now been done. Further information on it can be found in this article on headers and footers.
sadly is not enought, i need to put a logo on the left and a multirow text on the right, but i have problem with vertical alignement
is very impossible send html into template?
exists a way to have an advanced editor of template which allow write html instead wysiwyg?
thank you
No its not possible. Put them in a table with two cells and add vertical alignment to the required cell.
where can I set the vertical align of table and how can I remove the border?
thank you
There is a Table Properties icon for the border and from the drop down there is a cell properties icon.
i'm sorry but i can't find where can set alignment vertical
Click in the cell. Go back to the Table Properties drop down then Cell > Cell Properties > V Align
ok, we are close :)
last things, i need to put in header a dinamic image, i try to set {img} into Source and it works only if image is out of table. if i put image inside the table the docx don't show the image, is possible fix it?
thank you
Please can you contact us via email to help you more.