jgazeau / website2pdf

Node library to print PDFs from a website following sitemap protocol
MIT License
26 stars 6 forks source link

[feature_request]: to Change the font of the PDF content generated #148

Open pankajgupta-web opened 1 month ago

pankajgupta-web commented 1 month ago

What is missing in the project?

default font is there , no option of change

Solution?

argument with font name

jgazeau commented 3 weeks ago

Hi @pankajgupta-web ,

The font is managed by the website and website2pdf has no responsibility to manage it nor change it. I suggest you to check the font on the web pages you are trying to print.

pankajgupta-web commented 2 weeks ago

Hi @jgazeau ,

The command in a json package in website2pdf (https://registry.npmjs.org/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz) limits the fonts to

jgazeau commented 2 weeks ago

Hi @pankajgupta-web ,

I confirm you it's not. I'm using this on my website and fonts are correctly handled as long as the website manage it properly.

What is your process and context using website2pdf ? Do you have a reproducer ? Some printscreen of the webpage you are trying to print and the result after ?