Support PDF documents in Graph API for Universal Print
Hello,
please add support for PDF document types to the "Upload Data" Graph API.
Currently, only OXPS documents are supported. But for real world document the OXPS format is not used.
This is an very important feature for automating printing process from Dynamics CRM and Business Central. We are working on a warehouse label priniting solution for Dynamics and this missing features breaks our planned solution.
Regards,
Stefan
11 Comments
- Rani_AbdellatifFormer EmployeeStatus changed:In progresstoCompleted
- elvinristiCopper Contributor
We stopped using Azure in December and went with PrintNode which has very simple api and you can send PDF with single call. You can choose between sending pdf as base64 or URL to pdf which was pre-generated or raw printing.
Service what makes printers available was for both Windows and Mac.
- https://www.printnode.com/en/docs
We have used now four months this in production for warehouse waybill and shipping labels printing, so far it has been proved to be better and simpler option.
- jimmlCopper Contributor
Thank you for starting this and making it available in preview. The quality of output is degraded as compared to the original PDF doc directly printed on same printer, even with the print settings set to high quality/600dpi. Converting same PDF doc to OXPS and then sending it via Universal Print UPI yields a pixel perfect print. We are trialing a 3rd party .net library for that.
- Rani_AbdellatifFormer EmployeeStatus changed:In progresstoIn progress
- jimmlCopper Contributor
The API has very few real world scenarios that it can be applied to if the only thing it supports is XPS. This has to be a priority for the API to get any real adoption or some real samples need to be provided to show the average developer how to do this. PDF is what most apps I see generate, but it's hardly the only option. I've never seen XPS used in the wild.
- Rik RobertsCopper Contributor
Hey, is there any update to this? I see there is a changelog note of a bugfix for PDF printing via API in January 2021 - but still doesn't seem to be possible?
- Jeff HeldBrass Contributor
You've got to be **bleep**'n me.
- Rani_AbdellatifFormer Employee
Thanks for following up. We're still working on it. It's currently in testing, but we still don't have an estimate of when it will be ready.
Rani
- elvinristiCopper Contributor
Hello Rani_Abdellatif .
What is the progress of adding application/pdf support to createUploadSession?
graph call: print/shares/{{PrinterShareId}}/jobs/{{JobId}}/documents/{{DocumentId}}/createUploadSession
graph call `print/shares` returns on `capabilities.supportedDocumentMimeTypes` and `capabilities.contentTypes` only `application/oxps`.
Dropdown in portal also has only `application/oxps` option.
https://support.google.com/chrome/a/answer/9633006?hl=en#:~:text=Google%20Cloud%20Print%20will%20be,print%20using%20Google%20Cloud%20Print. its service next month and we need to decide if we can continue with integrating Universal Print or drop its usage and build another integration.
Thank you!
- SKriegerBrass Contributor
Great news. I can hardly wait to try it out.
Regards,
Stefan