Hitesh
Hitesh

Reputation: 1228

How to apply CSS to created pdf file in ASP.NET

I have generated a pdf file using third party now I want apply my own style to the content in pdf.

Can I insert an External CSS File into a generate PDF. I have tried many ways but all is not working. Thanks,

Upvotes: 1

Views: 825

Answers (1)

Kyle
Kyle

Reputation: 67194

You cannot style an already generated PDF with CSS. It is not made out of selectable elements and there is no way to link the CSS to the PDF.

You will have to do the styling before the PDF is created. It's like trying to add more sugar to an already baked cake, there is no way to do it.

Upvotes: 1

Related Questions