Skip to content

Commit 941be80

Browse files
committed
Prepare 0.3.1 release
1 parent eafae0d commit 941be80

File tree

7 files changed

+16
-5
lines changed

7 files changed

+16
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ use mikehaertl\pdftk\Pdf;
6060

6161
// Fill form with data array
6262
$pdf = new Pdf('form.pdf');
63-
$pdf->fillForm(array('name'=>'ÄÜÖ äüö мирано čárka'))
63+
$pdf->fillForm(array(
64+
'name'=>'ÄÜÖ äüö мирано čárka',
65+
'nested.name' => 'valX',
66+
))
6467
->needAppearances()
6568
->saveAs('filled.pdf');
6669

src/Command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* and adds pdftk specific features to add options and operations.
1111
*
1212
* @author Michael Härtl <haertl.mike@gmail.com>
13-
* @version 0.2.3-dev
1413
* @license http://www.opensource.org/licenses/MIT
1514
*/
1615
class Command extends BaseCommand

src/FdfFile.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* with valid unicode characters.
1111
*
1212
* @author Michael Härtl <haertl.mike@gmail.com>
13-
* @version 0.2.3-dev
1413
* @license http://www.opensource.org/licenses/MIT
1514
*/
1615
class FdfFile extends File

src/Pdf.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* but you may have to use slightly different page rotation options (e.g 'E' instead 'east').
1313
*
1414
* @author Michael Härtl <haertl.mike@gmail.com>
15-
* @version 0.2.3-dev
1615
* @license http://www.opensource.org/licenses/MIT
1716
*/
1817
class Pdf

src/XfdfFile.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*
1212
* @author Tomas Holy <holy@interconnect.cz>
1313
* @author Michael Härtl <haertl.mike@gmail.com>
14-
* @version 0.2.3-dev
1514
* @license http://www.opensource.org/licenses/MIT
1615
*/
1716
class XfdfFile extends File

tests/XfdfFileTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public function testXfdfFileCreation() {
1313
'radio 1' => 2,
1414
'address.street' => 'some street',
1515
"umlauts-in-value" => "öäüÖÄÜ",
16+
'some.other.value' => 'val1',
17+
'some.other.value2' => 'val2',
1618
"öäüÖÄÜ" => "umlauts in key",
1719
"special-in-value" => "ۧ&()",
1820
"€ key" => "special in key",

tests/files/XfdfFileTest.xfdf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
<field name="umlauts-in-value">
2727
<value>öäüÖÄÜ</value>
2828
</field>
29+
<field name="some">
30+
<field name="other">
31+
<field name="value">
32+
<value>val1</value>
33+
</field>
34+
<field name="value2">
35+
<value>val2</value>
36+
</field>
37+
</field>
38+
</field>
2939
<field name="öäüÖÄÜ">
3040
<value>umlauts in key</value>
3141
</field>

0 commit comments

Comments
 (0)