Browse code

pdf: json now records if a document is encrypted and NOT decodable

Kevin Lin authored on 2015/03/21 05:44:14
Showing 1 changed files
... ...
@@ -3695,6 +3695,8 @@ static void pdf_export_json(struct pdf_struct *pdf)
3695 3695
         cli_jsonbool(pdfobj, "Encrypted", 1);
3696 3696
         if (pdf->flags & (1 << DECRYPTABLE_PDF))
3697 3697
             cli_jsonbool(pdfobj, "Decryptable", 1);
3698
+        else
3699
+            cli_jsonbool(pdfobj, "Decryptable", 0);
3698 3700
     }
3699 3701
 
3700 3702
     for (i=0; i < pdf->nobjs; i++) {