XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
92 stars 66 forks source link

Invoice PDF returning as corrupted PDF #293

Closed dcapslock closed 2 years ago

dcapslock commented 2 years ago

Version 2.14.1 (Latest)

Describe the bug getInvoiceAsPDF return a 26 byte file. https://www.dropbox.com/s/f4vdcyl0y5796r1/Test.pdf?dl=0

PHP 8.1.8, fpm-fcgi

Any ideas?

dcapslock commented 2 years ago

OK. Turns out I was using 2.13 with a hack to get around the bug with deseriaisation of the file. All good. Thank you.