Skip to content

Commit

Permalink
Merge pull request #39 from konadrian/2023/03/14/1
Browse files Browse the repository at this point in the history
Revert changes with adding startxref to pdf
  • Loading branch information
rskrzypczak committed Mar 14, 2023
2 parents de5b4f7 + c766e29 commit 38ce006
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -893,11 +893,11 @@ public function render(): string
$trailer = (new \YetiForcePDF\Objects\Trailer())
->setDocument($this)->setRootObject($this->catalog)->setSize($objectSize);
$this->buffer .= $trailer->render() . "\n";
// $this->buffer .= implode("\n", [
// 'startxref',
// $offset,
// '',
// ]);
$this->buffer .= implode("\n", [
'startxref',
$offset,
'',
]);
$this->buffer .= $this->getDocumentFooter();
$this->removeObject($trailer);
return $this->buffer;
Expand Down

0 comments on commit 38ce006

Please sign in to comment.