Get a Free Trial
GrabzIt's Online Community

html enabled into template

Ask questions on how to capture or convert web pages or HTML into images, MP4. CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.

There are no forum posts on this topic! Why don't you write one?

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

Asked by anonymous on the 12th of July 2023

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.

Answered by GrabzIt Support on the 12th of July 2023

and can i send a text with break line?

like

row1\n

row2\r

or something like that?

thank you

Answered by anonymous on the 12th of July 2023

I think we can add that feature, it should be done in a couple of days.

Answered by GrabzIt Support on the 12th of July 2023

ok, thank you, i'm waiting for you alert

 

Answered by anonymous on the 12th of July 2023

Its now been done. Further information on it can be found in this article on headers and footers.

Answered by GrabzIt Support on the 12th of July 2023

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

Answered by anonymous on the 13th of July 2023

No its not possible. Put them in a table with two cells and add vertical alignment to the required cell.

Answered by GrabzIt Support on the 13th of July 2023

where can I set the vertical align of table and how can I remove the border?

 

thank you

Answered by anonymous on the 13th of July 2023

There is a Table Properties icon for the border and from the drop down there is a cell properties icon.

Answered by GrabzIt Support on the 13th of July 2023

i'm sorry but i can't find where can set alignment vertical

Answered by anonymous on the 13th of July 2023

Click in the cell. Go back to the Table Properties drop down then Cell > Cell Properties > V Align

Answered by GrabzIt Support on the 13th of July 2023

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 

Answered by anonymous on the 13th of July 2023

Please can you contact us via email to help you more.

Answered by GrabzIt Support on the 13th of July 2023

Email sent

thank you for your help

Answered by anonymous on the 13th of July 2023