pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-2471) AES encryption failing to write Acroform field names and values
Date Sat, 01 Nov 2014 14:44:33 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193210#comment-14193210

Tilman Hausherr commented on PDFBOX-2471:

Bad padding exception, details in PDFBOX-2456

java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

> AES encryption failing to write Acroform field names and values
> ---------------------------------------------------------------
>                 Key: PDFBOX-2471
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2471
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm, Writing
>    Affects Versions: 2.0.0
>            Reporter: Stephen Hendrix
>              Labels: AES256, AcroForm
>         Attachments: PDFBOX-2471_Fix__AES_256_bit_encryption_of_COSString.diff
> When writing a PDF using AES 256 bit encryption, the field names / values from the Acroform
are not being persisted correctly. If I encrypt using RC4 128 bit, they are persisted correctly.
I am using snapshot pdfbox:2.0.0-20141023.180319-636.
> I dug into this, and it looks to me the problem is with COSWriter.visitFromString, which
invokes  SecurityHandler.decryptString (there is no SecurityHandler.encryptString).

This message was sent by Atlassian JIRA

View raw message