summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index dd85b1a4..f46c4b76 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -754,7 +754,10 @@ int main(int argc, char **argv)
compactxref();
/* Make renumbering affect all indirect references and update xref */
- if (dogarbage >= 2)
+ /* Do not renumber objects if encryption is in use, as the object
+ * numbers are baked into the streams/strings, and we can't currently
+ * cope with moving them. See bug 692627. */
+ if (dogarbage >= 2 && xref->crypt == NULL)
renumberobjs();
writepdf();