Tools to Capture and Convert the Web
GrabzIt's Online Community

Problem with template table and content multirow

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 try to insert into template header a table with a cell that contains a multirow text

if i try to export the first row is correct, the other have a unecessary space

ex:

row 1

 row 2

 row 3

 

if i set the same text outside the table the text is correct

how can i fix it? 

thank you

Asked by Salvatore Giuliano on the 18th of July 2023

What is the multirow text you are sending in? It seems to work for me.

Answered by GrabzIt Support on the 18th of July 2023

there is the empty space in the begin of ro 2 and 3

Answered by Salvatore Giuliano on the 18th of July 2023

I realise what you are saying. But what are you sending in your template variable?

Answered by GrabzIt Support on the 18th of July 2023

Can you try it again now?

Answered by GrabzIt Support on the 18th of July 2023

yes, i send text by the variable

the problem still the same

Answered by Salvatore Giuliano on the 19th of July 2023

As I have asked before can you give me the text?

Answered by GrabzIt Support on the 19th of July 2023

original

 

row 1

row 2

row 3

 

exported 

 

row 1

 row 2

 row 3

Answered by Salvatore Giuliano on the 19th of July 2023

What you are passing to the API. In fact the snippet of your code would be ideal.

Answered by GrabzIt Support on the 19th of July 2023

$header=get_field('intestazioni_intestazione', $iid);
$header=str_replace("<br />","/n", $header);
$header= strip_tags($header);

$footer=get_field('intestazioni_pie_di_pagina', $iid);
$footer=str_replace("<br />","/n", $footer);
$footer= strip_tags($footer);

 


$options->AddTemplateParameter("header"," ".$header);
$options->AddTemplateParameter("footer"," ".$footer);

Answered by Salvatore Giuliano on the 19th of July 2023

It might be the code that is generating the template variable then. I used this for my template variable and it worked perfectly: 

test: 1/n2/n3
Answered by GrabzIt Support on the 19th of July 2023

but you insert your text into table?

because if i set the text outside the table i haven't problem

Answered by Salvatore Giuliano on the 19th of July 2023

Yes, thats inserted into a table.

Answered by GrabzIt Support on the 19th of July 2023