コード例 #1
0
ファイル: PdfWriter.php プロジェクト: jeremiahsmall/BaconPdf
 /**
  * Writes the footer.
  *
  * @param int $xrefOffset
  */
 private function writeFooter($xrefOffset)
 {
     $this->objectWriter->ensureBlankLine();
     $this->objectWriter->writeRawLine('startxref');
     $this->objectWriter->writeRawLine((string) $xrefOffset);
     $this->objectWriter->writeRawLine("%%%EOF");
 }
コード例 #2
0
ファイル: ObjectWriterTest.php プロジェクト: sachsy/BaconPdf
 public function testWriteRawLine()
 {
     $this->objectWriter->writeRawLine('foo');
     $this->assertSame("foo\n", $this->getFileObjectData());
 }
コード例 #3
0
ファイル: ObjectWriterEvent.php プロジェクト: sachsy/BaconPdf
 /**
  * @iterations 10000
  */
 public function writeRawLine()
 {
     $this->objectWriter->writeRawLine('foo');
 }