Set to Grayscale

When rendering an HTML page to PDF with IronPDF, output options for ChromePdfRenderer class can be changed to create a custom document that fits your needs. These options include paper size, DPI, headers and footers, and other Chromium-specific browser setup options. IronPDF also has the option to set your PDF color to grayscale.

This example shows you how to render your PDF document to grayscale.

Converting your document to a grayscale makes the colors wash down to black and white. This makes printing on black and white printers easy. The grayscale option in the ChromePdfRenderer class outputs a black and white PDF document. However, the default value is false. If you want the document to render in grayscale, you would have to manually put in the grayscale settings.