Beispiel #1
0
 /**
  * @param $string
  */
 public function loadFromString($string)
 {
     $pdf = \ZendPdf\PdfDocument::parse($string);
     foreach ($pdf->pages as $page) {
         $this->pdf->pages[] = clone $page;
     }
 }
Beispiel #2
0
/**
 * @param string $content
 * @return \ZendPdf\PdfDocument
 */
function pdfFromContent($content)
{
    return PdfDocument::parse($content);
}