Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Like the Title says when you use the DocIORenderer.ConvertToPDF() function to create a pdf document from a Docx file and set a OwnerPassword using doc.Security.OwnerPassword PNG images with a 8 bitcolor mapping get randomized colors

Here is the used code:

using var renderer = new DocIORenderer();
renderer.Settings.EmbedCompleteFonts = true;
using var pdfDocument = renderer.ConvertToPDF(doc);
pdfDocument.Security.OwnerPassword = new Random().Next().ToString();
pdfDocument.Security.Permissions = PdfPermissionsFlags.AccessibilityCopyContent | PdfPermissionsFlags.Print | PdfPermissionsFlags.FullQualityPrint;
var memoryStream = new MemoryStream();
pdfDocument.Save(memoryStream);


When i comment out the OwnerPassword then the colors get rendered correctly.


I uploaded an image that gets the randomized colors in the attachments