70
Views
3
Comments
[Conversion Of Html,Text,XML To PDF Format] ERROR: The document has no pages
Question
Forge component by vidya sri
5
Published on 20 Jun 2018

Hi Everyone,

I get HTML from one page from the same eSpace and pass to extension and i have the bellow error.

The HTML cannot have the js and css inside?


Regards, Paulo Torres

Rank: #480

Hi Paulo Torres,

Css need to send as input parameter same like as text.

For instance,

".Class1

{

background-color: #000;

font-size\:10px;

}"

and 

send the html code like this

"<html>

<p>HI Hello Test </p>

<p class='Class1'> SAMPLE HTML CODE FOR TEST </p>

</html>"

try this.. 

May be for this error u need to check the html code u have send. Use ClassName for css and send the css code as input parameter as i mentioned above.


Thanks,

Vidya.U

Rank: #394

vidya sri wrote:

Hi Paulo Torres,

Css need to send as input parameter same like as text.

For instance,

".Class1

{

background-color: #000;

font-size\:10px;

}"

and 

send the html code like this

"<html>

<p>HI Hello Test </p>

<p class='Class1'> SAMPLE HTML CODE FOR TEST </p>

</html>"

try this.. 

May be for this error u need to check the html code u have send. Use ClassName for css and send the css code as input parameter as i mentioned above.


Thanks,

Vidya.U

Hi vidya sri,

https://www.outsystems.com/forums/discussion/59840/the-document-has-no-pages-error-while-converting-html-code-to-pdf/#Post229131

i have same issue and I posted my html code above link . I followed your suggestions and put my html code in " ". and style in ' ' . But still i am getting same error. you can find Html code in my attachment . 


Thank you.


Invoice111.txt

Rank: #1165

Same issue;

has anyone got the fix?

Thanks,

Dhiraj