Skip to content

Commit

Permalink
Use the raw bytes if the stream is a filter and call getBytes if it's…
Browse files Browse the repository at this point in the history
… a regular stream.
  • Loading branch information
brendandahl committed Aug 4, 2017
1 parent 0f5604e commit 83f6bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maker/maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ var maker = (function () {
var ret = '';
ret += visit(node.dict, refsToVisit, visitedRefs);
ret += '\nstream\n';
var bytes = node.getBytes();
var bytes = node instanceof Stream ? node.getBytes() : node.bytes;
for (var i = 0; i < bytes.length; i++) {
ret += String.fromCharCode(bytes[i]);
}
Expand Down

0 comments on commit 83f6bd1

Please sign in to comment.