Skip to main content
March 5, 2024
Question

Print document via API

  • March 5, 2024
  • 7 replies
  • 2 views

Hi Team,

I have requirement to send PDF for print.

Ask is to send a document to printer with a button click and not after downloading document.

I see a print in document viewer but we want to do it online.

Say user selects a document and then click on print button, Appian should be able to initiate print by calling the printer via API.

Has anyone done that or better suggestion?

    7 replies

    stefanhelzle0001
    Brainy
    March 5, 2024

    That button could start a process in the background and do whatever is necessary to print that document. But that seems almost too obvious. What did you try so far?

    March 5, 2024

    Thank you for reply. Yes you are correct, I am trying to understand if anyone have tried sending a document directly to a remote printer which is not connected to your laptop or local computer via a API call or integration (not sure yet)

    More of proof of concept question to see if anyone have done it ? I am also going to try [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    stefanhelzle0001
    Brainy
    March 5, 2024

    I never implemented direct printing from Appian. In the internet, I found this

    https://developers.hp.com/print-fundamentals-developers/blog/printing-web-app-directly-printer?language=en

    Option 1 and 2 seem pretty simple, but this really depends on the IT architecture of your client or company.

    davidj137213
    Brainy
    March 5, 2024

    Is the document stored in a Document Management System or is it a document uploaded by the user? 

    March 5, 2024

    Thank you for the reply, it is in document management system

    davidj137213
    Brainy
    March 5, 2024

    In that case, I would suggest exploring the alternatives provided by Stefan to see if any meet your requirements.

    Otherwise, you can create a smart service that gets the document from the CMS in binary and sends it to the printer API , without needing to download it to Appian as a document.

    mathieud0001
    Brainy
    March 5, 2024