Accusoft.PdfXpressSdk Namespace > Document Class : IsStrictlyDeviceGray Method |
'Declaration Public Function IsStrictlyDeviceGray( _ ByVal pageNumber As Integer _ ) As Boolean
'Usage Dim instance As Document Dim pageNumber As Integer Dim value As Boolean value = instance.IsStrictlyDeviceGray(pageNumber)
public bool IsStrictlyDeviceGray( int pageNumber )
public: bool IsStrictlyDeviceGray( int pageNumber )
public: bool IsStrictlyDeviceGray( int pageNumber )
Exception | Description |
---|---|
PageMissingGraphicsException | Thrown when no visible graphics are found on the page. |
System.ArgumentOutOfRangeException | Thrown when an invalid pageNumber is input. |
using(PdfXpress pdf = new PdfXpress()) { pdf.Initialize(null, null); using(Document doc =new Document(pdf,"input.pdf")) { bool isDeviceGray = doc.IsStrictlyDeviceGray(0); MessageBox.Show("IsStrictlyDeviceGray reported {0}", isDeviceGray.ToString()); } }