Mar 18 2021 07:20 PM
Hi Everyone
We have commissioned a Business Central v18.0 environment and added a Azure Universal Printer to it, which works outside of Business Central. When printing a report from Business Central via the Azure Universal Printer we get this error:
Could not upload the document to print job 9. Unsupported document-format: application/pdf. Supported formats: Attribute document-format-supported: SimpleIppValue-Type:MimeMediaType-Value:application/oxps
I get the same error when attempting this from the mobile app on iOS as well.
In Universal Print Portal in Azure the jobs show up with a status of Paused. If it makes a difference we are using a Connector
Mar 30 2021 11:01 AM
Apr 07 2021 03:17 AM
@Rani_Abdellatif Thanks for that. I am wondering how anyone is able to use the new Universal Print in Business Central? If reports generated from Business Central are in PDF format and Universal Print only supports oxps, or am I missing something? Dynamics 365 BC 2021 Wave 1 - just released - has added support for Azure Universal Print but I don't see how it is possible to leverage that?
Apr 07 2021 02:49 PM
SolutionThank you for keeping the conversation going.
Universal Print supports both PDF and XPS. The target printer is what affects whether those formats are supported or not. I'll explain more:
The new version of BC works today in 3 ways
The piece we're working on is adding support for PDF in the Microsoft connector (by converting the PDF sent by BC, or any other app, to an XPS that could be sent to printers installed on the connector).
Please try the pre-release feature in the connector and give us feedback. The steps to enable it are in the troubleshooting guide here: "Unsupported document format: application/pdf" error
We're making some improvements and will soon release this feature in the connector.
Thank you.
Rani
Apr 07 2021 04:06 PM
Apr 14 2021 05:10 AM
May 07 2021 02:21 AM - edited May 07 2021 02:24 AM
How did you get it to work @SamSpronk .
After executing
C:\Windows\PrintConnectorSvc\UpdateConnectorConfigJson.ps1 -Feature Connector -Name enable-documentconversion -Value true
The error message only Changed to
Document Conversion is disabled. (Universal Print Connector 1.43.7761.21726)
My config.json (C:\windows\PrintConnectorSvc\config.json) contains only these 2 values:
{
"enable-hybrid-ad-aad-environment": "false",
"enable-pdftoxps": "true"
}
Oct 10 2022 03:00 AM - edited Oct 10 2022 03:01 AM
might be a bit outdated but maybe for others to help:
I experienced the same issue with unsupported document-format: application/pdf when printing from Business Central 20.5.
However the first step in Troubleshooting - Universal Print | Microsoft Learn then did the trick for me.
There is the setting document conversion in the Azure Portal / Universal Print - when I enabled this setting, then printing worked out fine for me in BC.
Apr 07 2021 02:49 PM
SolutionThank you for keeping the conversation going.
Universal Print supports both PDF and XPS. The target printer is what affects whether those formats are supported or not. I'll explain more:
The new version of BC works today in 3 ways
The piece we're working on is adding support for PDF in the Microsoft connector (by converting the PDF sent by BC, or any other app, to an XPS that could be sent to printers installed on the connector).
Please try the pre-release feature in the connector and give us feedback. The steps to enable it are in the troubleshooting guide here: "Unsupported document format: application/pdf" error
We're making some improvements and will soon release this feature in the connector.
Thank you.
Rani