Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to save a modified PDF using MuPDF?

Tags:

mupdf

I have edited a PDF using some of MuPDFs modification API and I cannot figure out how to save this modified PDF to disk. Is this possible? If so how can I save this PDF?

like image 832
Trevor Avatar asked Jul 16 '12 15:07

Trevor


1 Answers

You need to call pdf_write_document. However this was added after the release of version 1.0 so you need to get the latest source code from the Git repository if you want to use it.

I'm told there is code in mupdfclean.c that demonstrates the use of the function.

like image 71
KenS Avatar answered Sep 23 '22 17:09

KenS