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 2009/10/24 20:18:13 UTC
DO NOT REPLY [Bug 48048] New: [PATCH] AFP renderer outputs incorrect
values for GBAR ( Graphics Begin Area )
https://issues.apache.org/bugzilla/show_bug.cgi?id=48048
Summary: [PATCH] AFP renderer outputs incorrect values for GBAR
( Graphics Begin Area )
Product: Fop
Version: all
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: dave@dwink.net
Created an attachment (id=24414)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24414)
Patch
Per the AFP GOCA specification at
http://www.outputlinks.com/SpecialInterest/AFPColorConsortium/ibm_goca_ha3n1r01.pdf
, the GBAR order should output two bytes: 0x68 (the order code) and a 1-byte
set of bit flags.
The current FOP implementation interprets the specification in a
least-significant-bit fashion: bit 0 is the least-valued bit, and bit 1 is the
next-least-valued bit to the left. This makes the valid values (in hex) either
0x01 or 0x03, and the constants are set to generate these values.
However, according to the preface to the specification (page iv, or #6 in the
PDF) , "bits are specified with bit 0 meaning the most significant bit".
Interpreting the specification this way makes the valid values for the second
byte either 0x80 or 0xC0.
The attached patch updates the Graphics Begin Area code to use the proper
constant values.
Many AFP viewers and printers ignore the bit field entirely, but those that
interpret it strictly reject FOP's generated AFP output.
To reproduce: Render an FO containing an SVG into AFP format; then examine the
output using an AFP interpreter or hex editor.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48048] [PATCH] AFP renderer outputs incorrect
values for GBAR ( Graphics Begin Area )
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48048
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:56:28 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48048] [PATCH] AFP renderer outputs incorrect
values for GBAR ( Graphics Begin Area )
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48048
Jeremias Maerki <je...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeremias Maerki <je...@apache.org> 2009-11-25 07:05:24 UTC ---
Thanks for spotting this and sending a patch! It is applied now:
http://svn.apache.org/viewvc?rev=884129&view=rev
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.