filippotoso / pdf-watermarker

Simple PDF Watermarker with Laravel support
Other
6 stars 7 forks source link

The specified font file is not valid #5

Closed Unnicha closed 6 months ago

Unnicha commented 6 months ago

just trying ->font('arial.ttf') and got this

filippotoso commented 6 months ago

You must pass the full path of the font.

Unnicha commented 6 months ago

oh, so I need to include the font file manually?

filippotoso commented 6 months ago

If you need to use a resouce (ie. a font), you need that resource to be accessible from your PHP code.