Skip Menu |

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

Report information
The Basics
Id: 43790
Status: open
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: ac0v [...] sys-network.de
Cc:
AdminCc:

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



Hi Chris, changepagestring.pl doesn't work as expected. I try to replace some placeholders in the pdf in.pdf (see attached file). But nothing is replaced. perl c:\Perl\site\bin\changepagestring.pl in.pdf "\[% item %\]" "test" out.pdf Any Suggestions? Regards, Andreas
Subject: in.pdf
Download in.pdf
application/pdf 13.6k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #43790]
Date: Mon, 2 Mar 2009 17:45:07 -0600
To: bug-CAM-PDF [...] rt.cpan.org
From: Chris Dolan <chris [...] chrisdolan.net>
On Mar 2, 2009, at 4:59 PM, Andreas 'ac0v' Specht via RT wrote: Show quoted text
> Mon Mar 02 17:59:07 2009: Request 43790 was acted upon. > Transaction: Ticket created by ACID > Queue: CAM-PDF > Subject: (No subject given) > Broken in: 1.52 > Severity: Normal > Owner: Nobody > Requestors: ac0v@sys-network.de > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43790 > > > > Hi Chris, > > changepagestring.pl doesn't work as expected. I try to replace some > placeholders in the pdf in.pdf (see attached file). But nothing is > replaced. > > perl c:\Perl\site\bin\changepagestring.pl in.pdf "\[% item %\]" "test" > out.pdf > > Any Suggestions? > > Regards, > Andreas > <in.pdf>
I should document it better... The search is a heuristic and is error- prone. The problem is that PDF is inherently graphic-oriented, so text that appears together on the page is not necessarily grouped in the document. Kerning and font styling really confuses it. So, I'm afraid you're out of luck. I'm not aware of any open-source tools that do a good job of this task (if you find one, please let me know!)