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
MigraDoc RTF Document does not print Images (png) #11
Comments
After a little code change, images in RTF work.
Register the encoder for code page 1252 (this should be included in the RTF Renderer soon, but with 6.0.0-preview-2 it must be called explicitly).
|
I tried to register the provider in the startup and also before I create the RTF document, but it still did not work. Now the image ins, not there and also not strange symbols. |
I do not know about any special requirements. We just use .NET 6 and I simply call The issue submission template worked with the changes shown above. |
Ok I found the issue, maybe you can help me to solve this as well. I am using the following code to download the image and create a byte array.
|
The "BASE64" notation does not currently work with the RTF Renderer. This is a different issue we are researching. At the moment I'd recommend storing the image in a temporary file if you have to download it from the web. |
Ok, thanks for the feedback! |
BASE64 support for RTF Renderer has been fixed. |
Resources
Issue.zip
Version
I used the latest preview:
<PackageReference Include="PDFsharp" Version="6.0.0-preview-2" /> <PackageReference Include="PDFsharp-MigraDoc" Version="6.0.0-preview-2" />
Reporting an Issue Here
Expected Behavior
the logo, in this case "nehl-it-icon" should be printed in the pdf and in the rtf document, but it only works with PDF
Actual Behavior
The image is only visible in the pdf document. In Rtf it shows caracters but nothing else.
Steps to Reproduce the Behavior
Start the Project in the Issue.zip file and check the difference between word and pdf document
The text was updated successfully, but these errors were encountered: