Skip to main content
Known Participant
Mar 5, 2024 9:16 AM UTC
Question

Print document via API

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
    Mar 5, 2024 9:28 AM UTC

    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?

    Known Participant
    Mar 5, 2024 9:44 AM UTC

    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
    Mar 5, 2024 9:47 AM UTC

    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
    Mar 5, 2024 9:36 AM UTC

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

    Known Participant
    Mar 5, 2024 9:45 AM UTC

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

    davidj137213
    Brainy
    Mar 5, 2024 9:55 AM UTC

    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
    Genius
    Mar 5, 2024 12:02 PM UTC