Skip Menu |

This queue is for tickets about the CAM-PDF CPAN distribution.

Report information
The Basics
Id: 83018
Status: resolved
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: zmughal [...] cpan.org
Cc: zmughal [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.58
Fixed in: (no value)



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;
Subject: Re: [rt.cpan.org #83018] AutoReply: Parsing of string containg backslash
Date: Mon, 28 Jan 2013 17:39:50 -0600
To: Bugs in CAM-PDF via RT <bug-CAM-PDF [...] rt.cpan.org>
From: Zakariyya Mughal <zaki.mughal [...] gmail.com>
I have created a patch against v1.58 along with some corresponding tests that appear to fix the issue. Regards, - Zakariyya Mughal

Message body is not shown because sender requested not to inline it.

Thanks for the patch! I applied it (with one trivial correction) and uploaded CAM::PDF 1.59 to CPAN.