From c11a12898a6d457573744992d3d83071f4bab6cc Mon Sep 17 00:00:00 2001 From: maztch Date: Fri, 26 May 2017 12:55:34 +0200 Subject: [PATCH] samples --- readme.md | 4 ++++ samples/validatepdfa_advanced.php | 4 ++-- samples/validatepdfa_basic.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index c9f4629..260636a 100644 --- a/readme.md +++ b/readme.md @@ -52,6 +52,10 @@ $myTask->execute(); $myTask->download(); ``` +## Samples + +See samples folder. + ## Documentation Please see https://developer.ilovepdf.com/docs for up-to-date documentation. \ No newline at end of file diff --git a/samples/validatepdfa_advanced.php b/samples/validatepdfa_advanced.php index d3a0f08..a57125c 100644 --- a/samples/validatepdfa_advanced.php +++ b/samples/validatepdfa_advanced.php @@ -16,8 +16,8 @@ $file->setConformance('pdfa-2a'); // process files -$result = $myTask->execute(); +$myTask->execute(); -foreach($result->validations as $file){ +foreach($myTask->result->validations as $file){ var_dump($file); } \ No newline at end of file diff --git a/samples/validatepdfa_basic.php b/samples/validatepdfa_basic.php index 1542cc0..b21ca40 100644 --- a/samples/validatepdfa_basic.php +++ b/samples/validatepdfa_basic.php @@ -13,8 +13,8 @@ $file = $myTask->addFile('/path/to/file/document.pdf'); // process files -$result = $myTask->execute(); +$myTask->execute(); -foreach($result->validations as $file){ +foreach($myTask->result->validations as $file){ var_dump($file); } \ No newline at end of file