Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
smalot committed Jan 25, 2014
1 parent c6c1e02 commit 9a15fb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/Element/ElementHexa.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function decode($value, Document $document = null)
} else {
for ($i = 0; $i < $length; $i += 2) {
$hex = substr($value, $i, 2);
$text .= '&#' . str_pad(hexdec($hex), 2, '0', STR_PAD_LEFT) . ';';
$text .= chr(hexdec($hex));
}
}

Expand Down
1 change: 0 additions & 1 deletion src/Smalot/PdfParser/Tests/Units/Element/ElementHexa.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public function testParse()
$this->assert->integer($offset)->isEqualTo(31);
$offset = 0;
$element = \Smalot\PdfParser\Element\ElementHexa::parse(" \n <443a3230313331323137313334303435303027303027> ", null, $offset);
$this->assert->castToString($element)->isEqualTo('ReportBuilder');
$this->assert->object($element)->isInstanceOf('\Smalot\PdfParser\Element\ElementDate');
$this->assert->castToString($element)->isEqualTo('2013-12-17T13:40:45+00:00');
$this->assert->integer($offset)->isEqualTo(49);
Expand Down

0 comments on commit 9a15fb8

Please sign in to comment.