P
P
posters2020-11-23 16:54:27
PHP
posters, 2020-11-23 16:54:27

How to edit PDF files in php?

Is it possible somehow to get the content of a pdf file and edit it using php? PDF is text with illustrations ( not a scan of a printed document).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2020-11-23
@posters

In general, it is possible to save as a pdf, although you will have to decently fool around to get a digestible design.
But to read ... in general, you can, there is PDFParser and some other libraries (more than a dozen variations of pdf2text, for example). You can also convert it into a picture (everything is ok with this) and drive it through the tesseract, even though it is Pythonic inside. Well, or a finereader.
The problem is that all these recognition readers give a very mediocre output quality. If only the formatting crumbles - you're in luck. If you suddenly need to parse the tablet - suffering is almost guaranteed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question