GdPicture.NET.14
GdPicture14 Namespace / GdPicturePDF Class / PageIsBlank Method
Example





In This Topic
PageIsBlank Method (GdPicturePDF)
In This Topic
Returns if the currently selected page of the loaded PDF is blank.
Syntax
'Declaration
 
Public Function PageIsBlank() As Boolean
public bool PageIsBlank()
public function PageIsBlank(): Boolean; 
public function PageIsBlank() : boolean;
public: bool PageIsBlank(); 
public:
bool PageIsBlank(); 

Return Value

true if the currently selected page is blank, otherwise false. The GetStat method can be subsequently used to determine if this method has been successful.
Remarks
This method is only allowed for use with non-encrypted documents.

It is recommend to use the GetStat method to identify the specific reason for the method's failure, if any.

Example
How to find out if the current page is blank.
Using gdpicturePDF = New GdPicturePDF
    gdpicturePDF.LoadFromFile("myFile.pdf")
    gdpicturePDF.SelectPage(2)
    Dim isBlank = gdpicturePDF.PageIsBlank()
End Using
using(GdPicturePDF gdpicturePDF = new GdPicturePDF)
{
    gdpicturePDF.LoadFromFile("myFile.pdf");
    gdpicturePDF.SelectPage(2);
    bool isBlank = gdpicturePDF.PageIsBlank();
}
See Also