user1488399
user1488399

Reputation: 1

php-pdftk is deleting all data when inserting background or stamp

I am using php-pdftk for filling out a form and i try to insert a stamp (also tried as a background).

Inserting data in fields works perfect. When i insert a stamp, the stamp shows up in resulting PDF - but all fields are emtpy again... The same happens when using a background.

The Stamp/Background is a valid PDF-File.

Does anyone have a idea or a solution for that problem?

Thank's a lot in forward ;-)

Here's my (very simple) code-snippet:

$pdf = new Pdf($transitionFormTplPath);
$pdf->fillForm($formFieldDataArray)
        ->needAppearances()
        ->stamp($transitionStampPath)
        ->saveAs($transitionFormOutPath);

Upvotes: 0

Views: 11

Answers (0)

Related Questions