Why not the same size with the original pdf when saving? #1821
-
|
I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This may happen for a number of reasons. |
Beta Was this translation helpful? Give feedback.
This may happen for a number of reasons.
First of all, even if you do nothing else than
fitz.open(file);fitz.save(newfile), this is not equivalent to simply doingcopy file -> newfilewith the means of your OS. Like every PDF package, MuPDF will reconstruct the PDF during save.So you must provide the save options you need. E.g. if the input was a linear PDF, the output won't be if you don't request it.
Second, while there is a range of garbage selection and fine-grained compression options, MuPDF does not support certain other compression features like creating
/ObjStmobjects.