public static void DrawFullPageImage( this PdfContents contents, PdfImage image, bool landscape ) { if ( landscape == true ) { contents.DrawImage( image, 0, 0, 29.7, 21 ); } else { contents.DrawImage( image, 0, 0, 21, 29.7 ); } }