-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to render image? #620
Comments
To test this, I used the following:
This works in a browser. |
Found a solution: it works when using an absolute path to the image and
|
hi @achimmihca , for the base64 image:
For the file, you can use relative path if you want, but you must pass the base uri. |
From the tests I found this xhtml where img-tag is used as usual.
However, this does not seem to work. When I render my PDF, the image is always missing.
Also I wonder how this should work. The documentation does not say anything about images and the example does not make use of them.
Anyway, I also tried
<img src="data:..."
to provide the image data directly with the xhtml. This also has been done in #619 and is said to work. However, I still see no image in my PDF.I don't have any error output from the renderer. The PDF is generated but without the image.
As a result, I have no idea what the problem is. Is there a way to get more verbose output to find the root cause?
OpenHtmlToPDF Version: 1.0.5
The text was updated successfully, but these errors were encountered: