Support PDF documents in Graph API for Universal Print

Support PDF documents in Graph API for Universal Print
15

Upvotes

Upvote

 Aug 26 2020
11 Comments (11 New)
Completed

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

Comments
Microsoft
Status changed to: In progress
 
Brass Contributor

Great news. I can hardly wait to try it out.

Regards,

Stefan

Copper 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.

up-screenshot.png

Google Cloud Print will deprecate 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!

Microsoft

@elvinristi,

 

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

Brass Contributor

You've got to be **bleep**'n me.

Copper 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?

Copper 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.

Microsoft
Status changed to: In progress
 
Copper 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.

Copper 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.

Microsoft
Status changed to: Completed