ilovepdf / ilovepdf-php

iLovePDF Rest Api - PHP Library (https://developer.ilovepdf.com)
147 stars 39 forks source link

[Solved] Call to undefined function execute() #25

Closed danuri closed 3 years ago

danuri commented 4 years ago

I have following code from example use Ilovepdf\Ilovepdf;

$ilovepdf = new Ilovepdf('xxx','xxx'); $myTaskConvertOffice = $ilovepdf->newTask('officepdf'); $file1 = $myTaskConvertOffice->addFile('uploads/'.$filename); $myTaskConvertOffice>execute(); $myTaskConvertOffice->download('uploads/');

And this error response: Call to undefined function execute()

Any rules Iam miss?

danuri commented 4 years ago

Sorry, there typo in my code $myTaskConvertOffice>execute(); to $myTaskConvertOffice->execute();

qant commented 3 years ago

Because this typo in docs on this page https://developer.ilovepdf.com/docs/guides/office-to-pdf-api, copy past protection =)))

maztch commented 3 years ago

New developers website is coming!