109
Views
3
Comments
[Conversion Of Html,Text,XML To PDF Format] ERROR: The document has no pages
Question
conversion-of-html-text-xml-to-pdf-format
Web icon
Forge asset by UMAPATHY SRIVIDHYA

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

UserImage.jpg
UMAPATHY SRIVIDHYA

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

2020-01-08 08-43-00
Rahul Kumar

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
2019-10-04 15-01-22
Dhiraj Manwani

Same issue;

has anyone got the fix?

Thanks,

Dhiraj

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.