
$encoder_param = $hint_set -> CreateDict ( ) $encoder_param -> PutNumber ( "Quality", 80 ) // Traverse all pages in the document. Use optional encoder parameter to specify JPEG quality. $doc -> InitSecurityHandler ( ) $draw -> SetDPI ( 72 ) // Set the output resolution is to 72 DPI. "newsletter.pdf" ) // Initialize the security handler, in case the PDF is encrypted. echo nl2br ( "Example 2:\n" ) $hint_set = new ObjSet ( ) // A collection of rendering 'hits'. "tiger_92dpi.tif", "TIFF" ) //- // Example 2) Convert the all pages in a given document to JPEG at 72 DPI. "tiger_92dpi.png" ) echo nl2br ( "Example 1: tiger_92dpi.png\n" ) // Export the same page as TIFF $draw -> Export ( $doc -> GetPageIterator ( ) -> Current ( ), $output_path.

$draw -> Export ( $doc -> GetPageIterator ( ) -> Current ( ), $output_path. $draw -> SetDPI ( 92 ) // C) Rasterize the first page in the document and save the result as PNG.

InitSecurityHandler ( ) // B) The output resolution is set to 92 DPI.
