[ 
https://issues.apache.org/jira/browse/PDFBOX-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Lonc updated PDFBOX-1468:
-------------------------------

    Description: 
I have received encrypted PDF which contains several string objects but not all 
of them are encrypted.
I am not sure whether it is or it is not compliant with pdf reference.

But I have created fix so pdfbox can handle this.
If string contains only chars between 32-127 then decryption is not necessary 
(I know, this is not true in 100% of cases but I think it is swallowable)

Some strings are encrypted:
/CreationDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
/ModDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
/Producer(\241\350\210\035\001\352\224\3219\(0\247\006\333\2537\225\334\300\232\265)

Some are not:
/Registry(Adobe)
/Ordering(Identity)

  was:
I have received encrypted PDF which contains several string objects but not all 
of them are encrypted.
I am not sure whether it is or it is not compliant with pdf reference.

But I have created fix so pdfbox can handle this.
If string contains only chars between 32-127 then decryption is not necessary 
(I know, this is not true in 100% of cases but I think it is swallowable)

Some string are encrypted:
/CreationDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
/ModDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
/Producer(\241\350\210\035\001\352\224\3219\(0\247\006\333\2537\225\334\300\232\265)

Some are not:
/Registry(Adobe)
/Ordering(Identity)

    
> Decrypting unencrypted strings
> ------------------------------
>
>                 Key: PDFBOX-1468
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1468
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.7.1
>            Reporter: Juraj Lonc
>         Attachments: PDFBOX-1468.diff, Protokol o kontrole originality - 
> Drabikova.pdf
>
>
> I have received encrypted PDF which contains several string objects but not 
> all of them are encrypted.
> I am not sure whether it is or it is not compliant with pdf reference.
> But I have created fix so pdfbox can handle this.
> If string contains only chars between 32-127 then decryption is not necessary 
> (I know, this is not true in 100% of cases but I think it is swallowable)
> Some strings are encrypted:
> /CreationDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
> /ModDate(\222\202\376k\003\372\306\236\(IP\327C\215\375k\357)
> /Producer(\241\350\210\035\001\352\224\3219\(0\247\006\333\2537\225\334\300\232\265)
> Some are not:
> /Registry(Adobe)
> /Ordering(Identity)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to