0

I'm using EvoPdf for converting HTML to an Image (EvoPdf: ConvertHtmlToImageObject). Now I tried to set the baseUrl for using local resources like: in the html I'm using a css link for custom fonts.

imgConverter.ConvertHtmlToImageObject(html, baseUrl: path) -> the folder contains the css with the @font-faces and the custom font tff's and woff's.

But somehow the it doesn't work. It's like it doesn't even read the baseUrl. I was trying to use differen baseUrl's, I placed my resources in all different folders of the project but still nothing worked.

Does someone have an idea what I could be doing wrong? Or even better a working example?

Thanks guys!

1 Answer 1

0

Thanks guys! I think I found the issue. I tried to connect to a local drive instead of using the website resources. The BaseUrl is supposed to be the URL of my website.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.