Page 1 of 1
Rectangle Highlighter With White Color
Posted: Thu May 21, 2020 3:08 pm
by sadegi
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
Re: Rectangle Highlighter With White Color
Posted: Fri May 22, 2020 4:27 pm
by Hugo
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
Re: Rectangle Highlighter With White Color
Posted: Sat May 23, 2020 5:58 pm
by sadegi
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);
}
Re: Rectangle Highlighter With White Color
Posted: Fri Jun 05, 2020 6:19 am
by sadegi
Unfortunately, after two releases, the problem still persists