Answer the question
In order to leave comments, you need to log in
Split PDF document into pages in browser?
Goodnight! There is a need to simplify our lives, every day at work we generate a PDF document with 2 types of pages, each of the types has a clear sign individual for the type.
The task is to determine the number of pages that belong to a certain type and display all the numbers on the screen, write to a file, and the ideal option would be to print from the browser.
Where to dig? I only know PHP
Answer the question
In order to leave comments, you need to log in
The question is kind of tricky.
Working with PDF is one thing. Allocation of pages on signs - another. Printing is the third.
PDF can be made, for example, using wkhtmltopdf - there are bindings for PHP.
Selecting pages by features is purely business logic and it's up to you to decide how to do it.
Printing a PDF is purely a user-invoked action. If you do not make your own PDF viewer like Google Docs, then you will not be able to initialize the print yourself.
For example, in a recent project where I was generating PDF documents, I had two links: PDF and print. The first led to a PDF download, and the second led to the same document, but in the form of HTML (before wkhtmltopdf processing), where printing was initialized using JS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question