Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, 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!

2
Votes

Hi,

setting the PDF conformance level to Pdf_A1B "destroys" some embedded images. I recognized this while replacing some images to set their background from transparent to white because otherwise the background is black after conversion (default white would be much better btw, because most documents have a white background).

But this is ok because PDF_A1B doesn't support transparency and so the background is changed during conversion.

As a side note:

  • With Syncfusion 18.4.0.34 the ReplaceImage method doesn't return for some images and doesn't throw an exception in that case. It just hangs up 
    entirely.
  • With Syncfusion 18.4.0.44: the ReplaceImage method returns and seems to work.

But some images are complete in one color after the conversion. It happen to the same images which prevent the ReplaceImage method from returning in Version 18.4.0.34.


After some investigation I can reduce the problem just to setting the conformance level to PDF_A1B. Even without any image manipulation by myself some images are "destroyed" afterwards. The images are intact when extracting the images and saving them to file during conversion.

using (PdfLoadedDocument pdfDocument = new PdfLoadedDocument("Sample.pdf"))

            {

                // Without this it works!

                pdfDocument.Conformance = PdfConformanceLevel.Pdf_A1B;


                pdfDocument.Save("Sample_New.pdf");

                pdfDocument.Close(true);

            }


Please see simplified project with sample document attached.

Greetings,
Christian