コード例 #1
0
ファイル: PdfWriter.php プロジェクト: jeremiahsmall/BaconPdf
 /**
  * Writes the trailer.
  */
 private function writeTrailer()
 {
     $this->objectWriter->ensureBlankLine();
     $this->objectWriter->writeRawLine('trailer');
     $this->objectWriter->startDictionary();
     $this->objectWriter->writeName('Id');
     $this->objectWriter->startArray();
     $this->objectWriter->writeHexadecimalString($this->permanentFileIdentifier);
     $this->objectWriter->writeHexadecimalString($this->changingFileIdentifier);
     $this->objectWriter->endArray();
     if (null !== $this->encryption) {
         $this->objectWriter->writeName('Encrypt');
         $this->encryption->writeEncryptDictionary($this->objectWriter);
     }
     $this->objectWriter->endDictionary();
 }
コード例 #2
0
ファイル: ObjectWriterTest.php プロジェクト: sachsy/BaconPdf
 public function testWriteHexadecimalString()
 {
     $this->objectWriter->writeHexadecimalString('foo');
     $this->assertSame('<666f6f>', $this->getFileObjectData());
 }
コード例 #3
0
ファイル: ObjectWriterEvent.php プロジェクト: sachsy/BaconPdf
 /**
  * @iterations 10000
  */
 public function writeHexadecimalString()
 {
     $this->objectWriter->writeHexadecimalString('foo');
 }