Accusoft.PdfXpress5.Net
IsStrictlyDeviceGray Method
See Also  Send Feedback
Accusoft.PdfXpressSdk Namespace > Document Class : IsStrictlyDeviceGray Method




pageNumber
An integer value which represents a page number of the current document.

Glossary Item Box

Determines if the page strictly uses the color space DeviceGray for visible graphics.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

pageNumber
An integer value which represents a page number of the current document.

Exceptions

ExceptionDescription
PageMissingGraphicsExceptionThrown when no visible graphics are found on the page.
System.ArgumentOutOfRangeExceptionThrown when an invalid pageNumber is input.

Example

using (PDFXpress5.PdfXpress pdf = new Accusoft.PdfXpress5.Net.PdfXpress())

{

pdf.Initialize(null, null);

using (PDFXpress5.Document doc = new Document(pdf, “input.pdf” )

{

bool isDeviceGray = doc.IsStrictlyDeviceGray(0);

MessageBox.Show( "IsStrictlyDeviceGray reported {0}" , isDeviceGray.ToString());

}

}

See Also

©2012. Accusoft Corporation. All Rights Reserved.