protected function getAllBitmaps($zoomFactor , $format)
    {
        $ret = array();
        try {
            $result = $this->getSoapClient()->GetAllBitmaps(array(
                'zoomFactor' => ( integer ) $zoomFactor ,
                'format'     => ( string ) $format ,
            ));
        } catch ( SoapException $ex ) {
            throw new BitmapsException('Error while retrieving the final document as bitmaps from Livedocx service' , $ex);
        }

        if ( isset($result->GetAllBitmapsResult->string) ) {
            $pageCounter = 1;
            if ( is_array($result->GetAllBitmapsResult->string) ) {
                foreach ( $result->GetAllBitmapsResult->string as $string ) {
                    $ret[ $pageCounter ] = base64_decode($string);
                    $pageCounter ++;
                }
            } else {
                $ret[ $pageCounter ] = base64_decode($result->GetAllBitmapsResult->string);
            }
        }

        return $ret;
    }