yasirsiddiqui / php-google-cloud-print

PHP class to print documents using Google Cloud Print with OAuth2 authorization
91 stars 42 forks source link

Document has been sent to printer but is nowhere to be found #26

Closed Kalkutasensei closed 7 years ago

Kalkutasensei commented 8 years ago

Hello thank you for your hard work ! And I'm sorry if I ask something stupid there.

So I tried your class and when I hit example.php I got this message :

Document has been sent to printer and should print shortly.

But the document pdf.pdf isn't print anywhere nor it is in google docs. So I tried to display all printers with print_r($printers); And I got this :

Array ( [0] => Array ( [id] => googledocs [name] => Save to Google Docs [displayName] => Enreg. dans Drive [ownerName] => [connectionStatus] => ONLINE ) )

Can you help me ? Thank you !

Kalkutasensei commented 8 years ago

still haven't find the answer please help me !

yasirsiddiqui commented 8 years ago

Pdf file is not in the package you need to provide a valid pdf file path and it will work

On Sunday, 6 November 2016, Kalkutasensei notifications@github.com wrote:

still haven't find the answer please help me !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yasirsiddiqui/php-google-cloud-print/issues/26#issuecomment-258688901, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7iGD96fuPSluyUZklc4NjvJekC51oxks5q7fSsgaJpZM4KkWfF .

Sent from Gmail Mobile

Kalkutasensei commented 7 years ago

Thank you for your answer it seems that the problem was that I wasn't log in with the google account attached to the printer when I got this error. I change account and then it worked.

Thank you for your very great class.