lib/ezpdf/classes/class.pdf.php
function setPreferences( $label, $value = 0 )
    {
        // this will only work if the label is one of the valid ones.
        if ( is_array( $label ) )
        {
            foreach ( $label as $l => $v )
            {
                $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $l => $v ) );
            }
        }
        else
        {
            $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $label => $value ) );
        }
    }
function setPreferences( $label, $value = 0 )
    {
        // this will only work if the label is one of the valid ones.
        if ( is_array( $label ) )
        {
            foreach ( $label as $l => $v )
            {
                $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $l => $v ) );
            }
        }
        else
        {
            $this->o_catalog( $this->catalogId, 'viewerPreferences', array( $label => $value ) );
        }
    }
function setPreferences ( $ label , $ value = 0 ) { // this will only work if the label is one of the valid ones. if ( is_array ( $ label ) ) { foreach ( $ label as $ l => $ v ) { $ this -> o_catalog ( $ this -> catalogId , 'viewerPreferences' , array ( $ l => $ v ) ) ; } } else { $ this -> o_catalog ( $ this -> catalogId , 'viewerPreferences' , array ( $ label => $ value ) ) ; } }
set the viewer preferences of the document, it is up to the browser to obey these.
set the viewer preferences of the document it is up to the browser to obey these .