Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Print Server

A simple print server that allows you to print to a local printer using a rest API.

Api Endpoints

Error Response

A error response will always have a success field set to false and a message field with a error message.

{
    "success": false,
    "message": "Error message"
}

Status

GET /
Returns the status of the print server

Response

{
    "success": true|false,
    "message": "Server is running"
}

Queue

GET /queue
Returns the current print queue

Response

{
    "success": true|false,
    "jobs": [
        {
            "PrinterName": "Microsoft Print to PDF",
            "DocumentNumber": "{{uuid}}",
            "PrinterStatuses": [], //Array of printer statuses
            "IsPrinting": true|false,
            "IsError": true|false,
            "IsPaused": true|false,
        }
    ]
}

Print

POST /print Prints a document to the printer.

Request

{
    "success": true|false,
    "jobId": "{{uuid}}",
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages