public function usingAutomaticFormatGuessingAction($name)
    {
        $format = $this->get('request')->get('_format');
        
        return $this->render(sprintf('PsPdfBundle:Example:usingAutomaticFormatGuessing.%s.twig', $format), array(
            'name' => $name,
        ));
    }
public function usingAutomaticFormatGuessingAction($name)
    {
        $format = $this->get('request')->get('_format');
        
        return $this->render(sprintf('PsPdfBundle:Example:usingAutomaticFormatGuessing.%s.twig', $format), array(
            'name' => $name,
        ));
    }
public function usingAutomaticFormatGuessingAction ( $ name ) { $ format = $ this -> get ( 'request' ) -> get ( '_format' ) ; return $ this -> render ( sprintf ( 'PsPdfBundle:Example:usingAutomaticFormatGuessing.%s.twig' , $ format ) , array ( 'name' => $ name , ) ) ; }
Possible custom headers and external stylesheet file

@Pdf(
headers={"Expires"="Sat, 1 Jan 2000 12:00:00 GMT"},
stylesheet="PsPdfBundle:Example:pdfStylesheet.xml.twig",
enableCache=true
)
Possible custom headers and external stylesheet file