Skip Menu |

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

Report information
The Basics
Id: 5063
Status: resolved
Priority: 0/
Queue: PDF-Reuse

People
Owner: larslund [...] cpan.org
Requestors: darkjanos [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.22
Fixed in: (no value)

Attachments


Subject: Can't Set Field Value
PDF::Reuse v0.22 ActiveState Perl 5.6.1 Windows 2000 SP4 When I run the following code against the attached PDF, the corresponding field in the output PDF isn't set. use strict; use PDF::Reuse; prDocDir('.'); prFile('output.pdf'); prDoc('acord_75.pdf'); prField('InsuredAddress', "11 South LaSalle"); prEnd(); Is there something wrong with the PDF?
Download acord_75.pdf
application/pdf 81.8k

Message body not shown because it is not plain text.

Hello, Your script looks ok. The field should be set if it is correctly spelled. Could you send my a copy of 'acord_75.pdf' or a similar file, so I could find the reason ? There are might be conditions around the process that influence the outcome of script. If the document 'output.pdf' is read via the net it usually works fine with Acrobat Reader 5.0.5 or higher. If the user has Acrobat on the other hand, there is a problem. Acrobat has a plugin 'webpdf.api', which converts all documents, also impeccable PDF-documents and strips off all JavaScript. Then the field will not be set. Also the one who opens the document, needs to have the option the option "Allow File Open Actions and Launching File Attachments" checked under "Preferences". (Normally it is set like that.) Best Regards Lars Lundberg
The problem occurred when prDoc came before sentences with JavaScript. There should have been a error and an warning that prField came too late in the script. With version 0.24 of PDF::Reuse, that warning is triggered when the functions with JavaScript come too late, so the problem should be resolved now today when version 0.24 is uploaded.