Skip to content

Commit 007a63d

Browse files
committed
Issue #150 Use tempDir for Fdf, Xfdf and Info files
1 parent daf2037 commit 007a63d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pdf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function fillForm($data, $encoding = 'UTF-8', $dropXfa = true, $format =
258258
$this->constrainSingleFile();
259259
if (is_array($data)) {
260260
$className = '\mikehaertl\pdftk\\' . ($format === 'xfdf' ? 'XfdfFile' : 'FdfFile');
261-
$data = new $className($data, null, null, null, $encoding);
261+
$data = new $className($data, null, null, $this->tempDir, $encoding);
262262
}
263263
$this->getCommand()
264264
->setOperation('fill_form')
@@ -282,7 +282,7 @@ public function updateInfo($data, $encoding = 'UTF-8')
282282
{
283283
$this->constrainSingleFile();
284284
if (is_array($data)) {
285-
$data = new InfoFile($data, null, null, null, $encoding);
285+
$data = new InfoFile($data, null, null, $this->tempDir, $encoding);
286286
}
287287
$this->getCommand()
288288
->setOperation($encoding == 'UTF-8' ? 'update_info_utf8' : 'update_info')

0 commit comments

Comments
 (0)