bernerdschaefer/pdf-reader — comment on commit 42ad3e411c1b74ef68f826f0605e28abbc6361d8
File: lib/pdf/reader/parser.rb line 114
By bernerdschaefer:

How about:

```ruby
tok.gsub!(/#([A-Fa-f0-9]{2})/) do |match|
match[1, 2].hex.chr
end
```