Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Unrecognised document type! #9

Open
tibortoth9182 opened this issue Nov 30, 2016 · 1 comment
Open

Unrecognised document type! #9

tibortoth9182 opened this issue Nov 30, 2016 · 1 comment

Comments

@tibortoth9182
Copy link

tibortoth9182 commented Nov 30, 2016

Hey!

Firstly, I got the "same String class" error, but i fixed that.

Than i got this:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unrecognised document type!' in C:\xampp\htdocs\gyak\IBC\PDFGear\vendor\gears\pdf\src\Pdf.php:133 Stack trace: #0 C:\xampp\htdocs\PDFGear\vendor\gears\pdf\src\Pdf.php(161): Gears\Pdf->__construct('/dir/document.d...', Array) #1 C:\xampp\htdocs\PDFGear\index.php(4): Gears\Pdf::convert('/dir/document.d...', 'document.pdf') #2 {main} thrown in C:\xampp\htdocs\PDFGear\vendor\gears\pdf\src\Pdf.php on line 133

My code:

Did I something wrong?

@Hiros101
Copy link

In my case it happen due to wrong path to import file, so just check if file exists and path is correct.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants