Welcome Guest Search | Active Topics | Sign In | Register

Sharing style information in HtmltoPDFOptions.FooterHtmlFormat Options
Exameron
Posted: Thursday, October 26, 2017 10:28:57 PM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2012
Posts: 55
In order to apply a footer to each pdf page, I load the html using FooterHtmlFormat, but also need to load a fair amount of css. I imagine this css is getting loaded over and over again for every page (which would be getting large).

Is there a way to share the css from the containing PDFDocument and not load it this way?

Thanks.
eo_support
Posted: Friday, October 27, 2017 10:21:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

The CSS rules can be loaded repeatly but it should be possible for you to put the CSS into a separate file and then reference that file with link element instead. This way you will still have repeated link element, but the browser engine is smart enough to find out that they are all the same.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.