Skip to main content
Inspiring
June 18, 2021
Question

How to add style in PDF from html smart service

  • June 18, 2021
  • 7 replies
  • 0 views

Hello,

I am facing a style related issue in newly generated pdf file, i am using a HTML Doc from Template smart service where i am passing a sample html with ### placeholders then passing this new html to PDF from HTML smart service everything working fine except the styles the new pdf didn't carrying the styles so the new pdf looks distorted.

please help me to resolve this issue, Thanks in advance.

,

Shahid

7 replies

stefanhelzle0001
Brainy
June 18, 2021

Which styles do you mean? Do you have some screenshots fo the issue?

Inspiring
June 18, 2021

i am talking about the css styles.


stefanhelzle0001
Brainy
June 18, 2021

In my experience this HTML renderer is very limited. Documentation says "Accepts inline and internal styles" without any details. You will need to try out what works.

mikes0011
Brainy
June 18, 2021

I'd recommend hand-writing your own HTML template using basic HTML formatting only - i'd be very surprised if the PDF from HTML smart service could even start to handle CSS, and your screenshot supports this notion.

shanmathip7466
Inspiring
July 2, 2024

Hi,

I am facing the same issue. Can anyone please suggest any ideas here?

Inspiring
July 2, 2024