CC: | zmughal [...] cpan.org |
Subject: | Parsing of string containg backslash |
Hello,
I am attempting to test the text extraction features of CAM::PDF and I
created a PDF with LaTeX which contains the string "(\134)". If I am
reading the PDF specification correctly, this should be parse as a
literal backslash, but the value returned in CAM::PDF's content tree is
an empty string. I have attached a minimal test to demonstrate this with
the parseAny() method.
Regards,
- Zakariyya Mughal
Subject: | backslash.t |
#!/usr/bin/env perl
use Test::More tests => 2;
use CAM::PDF;
for my $str (q{(\\\\)}, q{(\134)}) {
is( CAM::PDF->parseAny(\$str)->{value},
'\\' ,
"parsing: $str" );
}
done_testing;