website2pdf icon indicating copy to clipboard operation
website2pdf copied to clipboard

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

Open pankajgupta-web opened this issue 1 year ago • 3 comments

What is missing in the project?

default font is there , no option of change

Solution?

argument with font name

pankajgupta-web avatar Oct 03 '24 04:10 pankajgupta-web

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.

jgazeau avatar Oct 13 '24 15:10 jgazeau

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

  • Courier (normal, Bold, Oblique, BoldOblique)
  • Helvetica (normal, Bold, Oblique, BoldOblique)
  • Times-Roman (normal, Bold, Oblique, BoldOblique)
  • Symbol
  • ZapfDingbats1

pankajgupta-web avatar Oct 15 '24 09:10 pankajgupta-web

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 ?

jgazeau avatar Oct 15 '24 17:10 jgazeau