Rectangle Highlighter With White Color

Discussions about annotation support.
Post Reply
sadegi
Posts: 18
Joined: Wed Apr 10, 2019 4:48 pm

Rectangle Highlighter With White Color

Post by sadegi » Thu May 21, 2020 3:08 pm

Hello
Unfortunately, nothing happens when I choose white for Rectangle Highlighter

Code: Select all

GdViewer1.AddRectangleHighlighterAnnotInteractive(Color.White);
Only one box with a colorless background is inserted

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: Rectangle Highlighter With White Color

Post by Hugo » Fri May 22, 2020 4:27 pm

Hi Sadegi,

Thank you for your feedback.

Can you confirm the background color of your document is different than white and if so what color is it please? In order to acknowledge the issue we'll be needing to reproduce it. A code sample+ input document would be required.

Regards

sadegi
Posts: 18
Joined: Wed Apr 10, 2019 4:48 pm

Re: Rectangle Highlighter With White Color

Post by sadegi » Sat May 23, 2020 5:58 pm

Hello
Put this code in your form and draw a rectangle after running the program and selecting a jpg file to show it in gdviewer .
According to the code, the drawn rectangle should be displayed with a white background, but the background color of the rectangle is invisible.
It should be noted that any color other than white is displayed well

Code: Select all

 private void Form1_Load(object sender, EventArgs e)
        {
            GdPictureImaging _oGdPictureImaging = new GdPictureImaging();
            GdPicturePDF _oGdPicturePDF = new GdPicturePDF();

            PdfConformance conformance = PdfConformance.PDF_A_3u;
            _oGdPicturePDF.NewPDF(conformance);
            _oGdPicturePDF.SetMRCImageBackgroundResolution(-1);
            _oGdPicturePDF.SetMRCPreserveSmoothing(true);
            _oGdPicturePDF.EnableCompression(true);
            _oGdPicturePDF.SetCompressionForBitonalImage(PdfCompression.PdfCompressionJBIG2);
            _oGdPicturePDF.SetCompressionForColorImage(PdfCompression.PdfCompressionJPEG);
            _oGdPicturePDF.SetJpegQuality(75);
            var imageId = _oGdPictureImaging.CreateGdPictureImageFromFile("", true, false);
           // ApplyImageFilters(ref imageId);
            _oGdPicturePDF.AddImageFromGdPictureImage(imageId, PdfAdvancedImageCompression.PdfAdvancedImageCompressionColorDetection);
            _oGdPictureImaging.ReleaseGdPictureImage(imageId);
            gdViewer1.RenderGdPictureAnnots = true;
            gdViewer1.SetAnnotationEditorMode(true);

            gdViewer1.DisplayFromGdPicturePDF(_oGdPicturePDF);
            gdViewer1.AddRectangleHighlighterAnnotInteractive(Color.White);
        }

sadegi
Posts: 18
Joined: Wed Apr 10, 2019 4:48 pm

Re: Rectangle Highlighter With White Color

Post by sadegi » Fri Jun 05, 2020 6:19 am

Unfortunately, after two releases, the problem still persists

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest