You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Eric Leleu (JIRA)" <ji...@apache.org> on 2013/01/20 17:36:12 UTC
[jira] [Comment Edited] (PDFBOX-1497) Preflight throws an exception
on DeviceN validation
[ https://issues.apache.org/jira/browse/PDFBOX-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558307#comment-13558307 ]
Eric Leleu edited comment on PDFBOX-1497 at 1/20/13 4:35 PM:
-------------------------------------------------------------
I added a test on the size of array when the getAttributes is called.
- If the array contains the attributes dictionary (size > DEVICEN_ATTRIBUTES), the getAttributes returns the PDDeviceNattributes using this dictionary
- otherwise, a new PDDeviceNattributes is created and it is pushed at te end of the array.
I created a new method to test if the DeviceN colorspace contains an attributes dictionary. This method is used by Preflight.
(In attachment the patch committed in the revision : r1435877)
BR,
Eric
was (Author: leleueri):
I added a test on the size of array when the getAttributes is called.
- If the array contains the attributes dictionary (size > DEVICEN_ATTRIBUTES), the getAttributes returns the PDDeviceNattributes using this dictionary
- otherwise, a new PDDeviceNattributes is created and it is pushed at te end of the array.
I created a new method to test if the DeviceN colorspace contains an attributes dictionary. This method is used by Preflight.
(In attachment the patch committed in the revision : r1435877)
> Preflight throws an exception on DeviceN validation
> ---------------------------------------------------
>
> Key: PDFBOX-1497
> URL: https://issues.apache.org/jira/browse/PDFBOX-1497
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.0
> Reporter: Eric Leleu
> Assignee: Eric Leleu
> Priority: Minor
> Fix For: 1.8.0
>
> Attachments: PDFBOX_1497.patch
>
>
> Preflight fails on the ColorSpace validation step if the DeviceN colorspace doesn't have an attributes array.
> The getAttributes throws an Array OutOfBound exception.
>
--
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