Thread CAM::PDF und fillFormFields() (14 answers)
Opened by bianca at 2013-09-17 07:09

bianca
 2013-09-17 07:09
#170331 #170331
User since
2009-09-13
6977 Artikel
BenutzerIn

user image
Bezug: msg #170279
Macht jetzt nicht so wirklich einen guten ersten Eindruck.

Mit dem Beispiel des Autors aus deinem Link:
Quote
C:\strawberry\perl\bin>perl fillpdffields.pl test_cam_pdf.pdf test_cam_pdf_out.pdf Test Aqua
Bad request for object 34484692 at position 0 in the file


Mit meinem Code das gleiche Ergebnis:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use CAM::PDF 1.60;

my $pdf = CAM::PDF->new('test_cam_pdf.pdf');
$pdf->fillFormFields('Test' => 'test ersetzung');
$pdf->cleanoutput('test_cam_pdf_out.pdf');

Quote
d:>perl test_cam_pdf.pl
Bad request for object 31701308 at position 0 in the file


In beiden Fällen wird die Datei test_cam_pdf_out.pdf angelegt, ist auch ein klein wenig größer als die test_cam_pdf.pdf aber das Feld ist nicht befüllt.

Modulversion 1.60 mit Strawberry 5.10.1 auf Win7 32Bit.

Kann das jemand nachvollziehen und hat vielleicht sogar eine Idee dazu?
Anhänge
application/pdf
test_cam_pdf.pdf
application/pdf
test_cam_pdf_out.pdf
10 print "Hallo"
20 goto 10

View full thread CAM::PDF und fillFormFields()