markdown-pdf icon indicating copy to clipboard operation
markdown-pdf copied to clipboard

CSS3 support - in header and footer

Open silverki opened this issue 9 years ago • 8 comments

Have I understood correctly that there is no CSS3 support?

silverki avatar Aug 02 '15 14:08 silverki

Yes there is. Issue is that @font-face font is not used in header and footer.

silverki avatar Aug 02 '15 18:08 silverki

Could you create a simple test case?

anko avatar Aug 03 '15 10:08 anko

+1

timactive avatar Apr 14 '17 08:04 timactive

Unable to insert image tag in header and footer..... #markdown options options{ runningsPath: path.join('runnings.js') } #runnings.js exports.header = { content: function (..,..){ return ""//image } }

Thanks in advance.

PradyumnaR avatar Jun 22 '17 20:06 PradyumnaR

Hi,

You said it's possible, but how do you apply css on header and footer? What is the class or the id?

Thanks.

maethor avatar Jul 18 '17 14:07 maethor

Hi maethor, I was able to solve this issue. Header and footer supports only inline css styling we cannot import or do external styling. check this link for more detailed work on header and footer: https://jsreport.net/learn/phantom-pdf

PradyumnaR avatar Jul 18 '17 16:07 PradyumnaR

Thank you @PradyumnaR

Indeed, I also managed it with inline css.

This seems strange, because https://atom.io/packages/markdown-themeable-pdf, which seems to works just like this, manage css in footer pretty nicely.

maethor avatar Jul 18 '17 18:07 maethor

Hi All,

I'm also interested for CSS support for headers/footers to centralize the customisation, using ID/Class/Tag.

Thanks for all !

neooblaster avatar Nov 28 '18 11:11 neooblaster