Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:14:51+00:00 2026-05-22T22:14:51+00:00

Have been asked to print to a remote printer via a socket connection, and

  • 0

Have been asked to print to a remote printer via a socket connection, and struggling with how to approach this. I’m already passing data back and forth to a computer on the same network (also via a socket connection), and generating a PDF and/or HTML file with it when necessary. The idea is for me to send that file from the web server to the local printer and print it without any action by the remote user.

I looked into some print libraries and an IPP/CUPS library, but I’m not sure if that code could live within my web app, or if it would have to live on a print server accessible by my web app that also can communicate with the printer (or something else – I’m really fumbling in the dark).

a) Does this sound plausible?

b) If so, can I control the printer entirely via the socket connection using code that lives on my web server, or will I need to write an application that lives on the client’s machine (or network)?

Very unfamiliar working with hardware, so please forgive anything that sounds naive.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:14:51+00:00Added an answer on May 22, 2026 at 10:14 pm

    I am not sure that this is a good idea.

    If I understand the question correctly, this is about printing from a web application. I suggest the users simply use the browser’s built-in print function for printing the generated HTML (or the PDF reader’s in the case of PDFs).

    UPDATE

    If you need to automatically print from your web application, I suggest you do the following in the web app:

    1. Generate PDFs on disk
    2. Shell out to lp: subprocess.Popen(['lp', '-d', printername, filename])

    The remote printers should be set up in CUPS on the web server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this kind of questions have been asked already many times before. The
I have been asked to lend a hand on a hobby project that a
I have been asked to standardize the screen saver and desktop background used by
I have been asked to develop some usercontrols in ASP.NET that will at a
I have been asked to audit any/all changes in a MySQL table. Does anyone
I have been asked to provide information on available techniques for assessing our current,
I have been asked to setup a course leaflet system for a college. For
I have been asked to find training resources to bring engineers up to speed
We have been asked to look into a fully open source solution for a
I have been asked up to come up with a state management strategy for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.