Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Printers] Route to start printing #10

Open
dantetemplar opened this issue Dec 17, 2024 · 0 comments
Open

[Printers] Route to start printing #10

dantetemplar opened this issue Dec 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dantetemplar
Copy link
Member

Describe the feature

We need fastapi api with route to start printing. It should check whether file is pdf, if it is then prepare printing job and return id with meta (user should be able to preview printing details and decline job), otherwise try to convert to pdf and then return all needed data.

Suggested solution

Use fastapi UploadFile.

To get file extension you can use suffix of filename or puremagic (preferable).

For storing files before printing you may use tempfile.

Additional context

No response

@dantetemplar dantetemplar added the enhancement New feature or request label Dec 17, 2024
@dantetemplar dantetemplar moved this to 📋 Backlog in InNoHassle Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant