Bug 43041 - [PATCH] AFP Renderer - output resolution control
Summary: [PATCH] AFP Renderer - output resolution control
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 03:35 UTC by Adrian Cumiskey
Modified: 2012-04-01 06:50 UTC (History)
0 users



Attachments
patch file (180.36 KB, patch)
2007-08-06 03:36 UTC, Adrian Cumiskey
Details | Diff
patch file (148.10 KB, patch)
2007-08-07 06:34 UTC, Adrian Cumiskey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Cumiskey 2007-08-06 03:35:04 UTC
* Introduced a a new configuration element
<renderer-resolution>240</renderer-resolution> which is a child of <renderer
mime="application/x-afp"> which allows you to configure the output resolution of
the AFP renderer - I guess other renderers could follow this scheme if they wish
to provide this feature.

* For every class that was touched in the process of adding this new feature, I
have done my best to fix any checkstyle problems (except for violations such as
number of arguments in method > 7 etc).  This should make it easier for the
patch reviewer to check I have not introduced any additional checkstyle problems
(only removed them).
Comment 1 Adrian Cumiskey 2007-08-06 03:36:20 UTC
Created attachment 20601 [details]
patch file
Comment 2 Adrian Cumiskey 2007-08-07 06:34:54 UTC
Created attachment 20612 [details]
patch file

This patch supersedes the previous one.  I discovered a subversion merge
problem on AFPRenderer.java which is now fixed.
Comment 3 Jeremias Maerki 2007-10-04 06:44:02 UTC
I've got a question for those who use AFP: Adrian introduced a
renderer-resolution setting. All the other renderers use target-resolution [1].
Since the AFP renderer's default resolution is 240dpi instead of 72 dpi like for
the other renderers. Switching to target-resolution would decrease the output
quality for those who use the AFP renderer at its default settings. But
introducing renderer-resolution adds a third resolution setting which could lead
to confusion. Should we perhaps let each renderer try to give the user agent its
default target resolution?

Opinions? Ideas?

[1] http://xmlgraphics.apache.org/fop/0.94/configuration.html#general-elements
Comment 4 Jeremias Maerki 2007-10-04 07:15:34 UTC
Never mind my previous question. Looks like there was already a discussion:
http://marc.info/?l=fop-dev&m=118597659210348&w=2
Comment 5 Jeremias Maerki 2007-10-05 02:06:41 UTC
Patch applied with modification:
Bugfix: SVGs were rendered in the wrong size when the target-resolution and the
renderer-resolution differ.
http://svn.apache.org/viewvc?rev=582131&view=rev

Adrian, thanks for the patch! I know I once asked you to install Checkstyle and
you took that to heart, but I'd be grateful if you wouldn't do too much
Checkstyle cleanup as part of a patch. It makes it difficult to spot the actual
modifications in all the differences.
Comment 6 Glenn Adams 2012-04-01 06:50:13 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed