-
Notifications
You must be signed in to change notification settings - Fork 2
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
MissingManifestResourceException with MigraDoc.Improved v1.32.6372 #2
Comments
Project was compiled as .NET Core 2.2 |
|
The image is embedded as BASE64 and still not working. Code is as follows: // cell is of type MigraDoc.DocumentObjectModel.Tables.Cell
// imageBytes is of type byte[]
if (imageBytes == null || imageBytes.Length == 0) return;
var imageBase64 = "base64:" + Convert.ToBase64String(imageBytes);
cell.AddImage(imageBase64); |
BASE64 images are supported starting with version MigraDoc v1.50. For many reasons, we refused to use MigraDoc. Now we use SharpLayout. SharpLayout supports images from any stream:
|
my workaround was to use the source of PDFSharpCore, did some code fixes on the release build, and used ImageSharp to load the file instead of the base64 encoded string. Not a clean solution, because I now have rendering issues with tables and fonts. But at least the images are working. |
When rendering an image to an PDF, I get the following exception:
The text was updated successfully, but these errors were encountered: