atticus
atticus

Reputation: 180

mutool / mulib edit text (with a c programm)

currently, I'm trying to write a program (in C), which would allow me to search/replace text of pdfs. I already can search for the string and edit the string itself, but somehow I cannot find a way to really edit the object of the document.

Does someone know, how to "send" the changes back to the document in the library of mutool/mupdf?

Upvotes: 1

Views: 450

Answers (1)

InUser
InUser

Reputation: 1137

If you consider using Command Line Tools you can use Mutool clean.

mutool-clean

Using this tool you can rewrite content streams.

"The clean command pretty prints and rewrites the syntax of a PDF file. It can be used to repair broken files, expand compressed streams, filter out a range of pages, etc."

Upvotes: 2

Related Questions