You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.
So arguably this is likely a documentation issue more than a problem (I hope), but the docs mention that you just pass a File as the content (and presumably application/pdf as the content type), but I canntot get that to work (I get errors about "no implicit conversion of nil into String" from within net/http/generic_request).
I also see other issues where it looks like folks are encoding the PDF content into base64 ahead of time - not sure if that is a choice of a necessity.
So any chance of an example of what you need to minimally print a PDF file via the gem would be much appreciated!
The text was updated successfully, but these errors were encountered:
Well, it appears that PDF print works OK (had to think it did or theer would have been a bigger deal in the issues), but you do have to include a ticket hash. So assuming you have a PDF file called test.pdf,
Seems to be the minimum. There are plenty of options to the printer job (copies, using the duplexer, scaling/fitting, etc) that are described in the CJT (Cloud Job Ticket) section of the google cloud print API docs.
So arguably this is likely a documentation issue more than a problem (I hope), but the docs mention that you just pass a File as the content (and presumably application/pdf as the content type), but I canntot get that to work (I get errors about "no implicit conversion of nil into String" from within net/http/generic_request).
I also see other issues where it looks like folks are encoding the PDF content into base64 ahead of time - not sure if that is a choice of a necessity.
So any chance of an example of what you need to minimally print a PDF file via the gem would be much appreciated!
The text was updated successfully, but these errors were encountered: