Accusoft.PdfXpress7.Net
IsStrictlyDeviceGray Method
Example 




An integer value which represents a page number of the current document.
Determines if the page strictly uses the color space DeviceGray for visible graphics.
Syntax
'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
) 

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(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());
    }
}
See Also

Reference

Document Class
Document Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback