You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/11/19 17:47:05 UTC
[Bug 54169] New: [PATCH] Resolution for Acrobat Pro bug with FOP
PDF's due to nums array size
https://issues.apache.org/bugzilla/show_bug.cgi?id=54169
Bug ID: 54169
Summary: [PATCH] Resolution for Acrobat Pro bug with FOP PDF's
due to nums array size
Product: Fop
Version: all
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: pdf
Assignee: fop-dev@xmlgraphics.apache.org
Reporter: rmeyer@hotmail.co.uk
Classification: Unclassified
Created attachment 29609
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29609&action=edit
Patch to split the nums array to avoid issue with Acrobat Pro
A bug exists in Acrobat Pro where if the nums array is deemed to be too large
when saving, Acrobat will split the array. If however, the array is broken on
an odd element the odd item is split where it's ID is kept in the first array
and its value is placed on the second leading to a "Bad Parameter" error when
checking compatibility. There is no maximum size of the nums array given in the
PDF specification, so why Acrobat is doing this is unknown (performance
benefits maybe). To ensure that anyone editing a FOP PDF in Acrobat Pro does
not come across this problem, this patch addresses it by splitting the nums
array if it exceeds a value (50).
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54169] [PATCH] Resolution for Acrobat Pro bug with FOP PDF's
due to nums array size
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54169
Robert Meyer <rm...@hotmail.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #29609|0 |1
is obsolete| |
--- Comment #1 from Robert Meyer <rm...@hotmail.co.uk> ---
Created attachment 29610
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29610&action=edit
Forgot the test case
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54169] [PATCH] Resolution for Acrobat Pro bug with FOP PDF's
due to nums array size
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54169
Vincent Hennebert <vh...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Vincent Hennebert <vh...@gmail.com> ---
Patch applied in rev. 1411352:
http://svn.apache.org/viewvc?rev=1411352&view=rev
I removed the re-definition of the getNums method in PDFPageLabels that had
become identical to the original one (in PDFNumberTreeNode). This avoids a
FindBugs warning.
Thanks for your patch!
Vincent
--
You are receiving this mail because:
You are the assignee for the bug.