'Declaration
Public Property PdfEnableColorDetection As Boolean
public bool PdfEnableColorDetection {get; set;}
public read-write property PdfEnableColorDetection: Boolean;
public function get,set PdfEnableColorDetection : boolean
The purpose is to automatically detect the original color of documents scanned in color mode and convert the B/W and/or grayscale ones to the appropriate bpp (bits-per-pixel) encoding. The result is allowing preservation of image quality while considerably reducing the file size.
'Declaration
Public Property PdfEnableColorDetection As Boolean
public bool PdfEnableColorDetection {get; set;}
public read-write property PdfEnableColorDetection: Boolean;
public function get,set PdfEnableColorDetection : boolean
Using gdpictureDocumentConverter As New GdPictureDocumentConverter() gdpictureDocumentConverter.LoadFromFile("input.pdf", GdPicture14.DocumentFormat.DocumentFormatPDF) gdpictureDocumentConverter.PdfEnableColorDetection = True gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7) End Using
using (GdPictureDocumentConverter gdpictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter()) { gdpictureDocumentConverter.LoadFromFile("input.pdf", GdPicture14.DocumentFormat.DocumentFormatPDF); gdpictureDocumentConverter.PdfEnableColorDetection = true; gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7); }