fifsky / html-to-pdf-action

HTML to PDF for github actions
MIT License
27 stars 15 forks source link

Various improvements (options, server, re-using image) #1

Closed udondan closed 5 years ago

udondan commented 5 years ago

Great action! I had to do some changes to make it work for me.

Sorry for not committing separate PR's. Customized it until it worked for me. 😃

Let me know if anything conflicts with your setup. I tested your example.html file and it renders nicely.

fifsky commented 5 years ago

Great change, Thank you

udondan commented 5 years ago

thanks for merging :)

bjornamr commented 3 years ago

@udondan

How is it possible to use custom css & fonts? Do you have an example of that?

udondan commented 3 years ago

@bjornamr There's actually nothing special about it. I just reference CSS files which contain font declarations.

I'm using it to render my personal vita, source is here: https://github.com/udondan/www.udondan.com It makes use of Font Awesome. Result can be seen here https://www.udondan.com/ - PDF can be downloaded by clicking the red button on the right side.