I
I
Ivan2018-08-08 13:47:53
Browsers
Ivan, 2018-08-08 13:47:53

Is it possible to implement printing of documents of different formats uploaded to a form on the site directly from this form?

If possible, what technologies?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-08-08
@Stalker_RED

For most popular formats, yes.
If the browser itself knows this format, then you can print it using the browser itself. If not, you will have to connect some scripts to render the contents of the file.
For example, for pdf https://www.google.com/search?q=js+pdf+viewer
Or for excel https://www.google.com/search?q=js+xls+viewer
And so on.
When it turned out to draw the print itself, it starts easily: window.print()
https://developer.mozilla.org/en-US/docs/Web/API/W...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question