From a136c6faa5991fbfc60c64998da50e26a8f6660c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 24 Jan 2011 09:55:52 +0000 Subject: [PATCH] FAQ entry for anti-aliasing artifacts in Adobe Acrobat. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1062710 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/faq.xml | 40 ++++++++++++ .../acrobat-anti-aliasing-artifacts.png | Bin 0 -> 8128 bytes .../images/anti-aliasing-artifacts-demo.fo | 57 ++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 src/documentation/resources/images/acrobat-anti-aliasing-artifacts.png create mode 100644 src/documentation/resources/images/anti-aliasing-artifacts-demo.fo diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index c2f6cb7ca..2fd6e16ca 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -1016,6 +1016,46 @@ Can I control this?

+ + How can I get rid of strange single-pixel lines inside table borders or between table cells in Adobe Acrobat? + +

+ Since Apache FOP supports the collapsed border model, every border segment consists + of two separate shapes. This is due to the fact that each side of the border + segment can have a different color. Now, Adobe Acrobat may display thin (1 pixel wide) + lines inside the border segment or sometimes even between to adjacent + colored rectangles making up the background of a block or table cell. + This effect is due to the way Adobe Acrobat does anti-aliasing. Adobe's algorithm + seems to cause these artifacts. Other PDF viewers don't have that problem. Or at least + we haven't had any reports in that direction. +

+

+ First of all, these artifacts do not appear in print since no anti-aliasing is done + by Adobe Acrobat in this case (except maybe if you tell Acrobat to print the page + as a bitmap in which case Adobe fully composes the page itself). So, if the artifacts appear + on screen, it doesn't mean they have to appear in print, too. +

+

+ To get rid of the artifacts, you can call up the "Preferences" dialog of + Adobe Acrobat and select the tab "Page display". Enabling "Enhance thin lines" + may help in some situations. Otherwise, you can disable "Smooth line art". + You may have to disable "Use 2D graphics acceleration", too, so you can disable + "Smooth line art" in the first place. +

+

+ Here an example of how the effect can look like (left: anti-aliasing on, right: anti-aliasing off): +

+
+

+ Unfortunately, it is not possible to control the above settings from within the PDF file. + The user has to change these settings himself. Improving FOP to avoid this kind of problem + would be possible although rather hard to achieve because we'd need to add a considerable + amount of code to combine the various line segments. Something like that has been tried already + years ago showing that this is a tricky task. Also, the improvement may not justify the amount + of effort required. +

+ + IEx specific stuff diff --git a/src/documentation/resources/images/acrobat-anti-aliasing-artifacts.png b/src/documentation/resources/images/acrobat-anti-aliasing-artifacts.png new file mode 100644 index 0000000000000000000000000000000000000000..db9c23a2a46f0e4c864c686a2de18da2adb4c4ac GIT binary patch literal 8128 zcma)>by!>5wzmU?Ql!x0QlJzo?ozZkf#6o$-QA_Q6qn)@3GM_a-eN88?(R@rg4|^9 zv(IrL3A|~uP@&zKy%9*Q0 zz-|c6%2J|$%HcPA006lcP+UaSWBw@1`;&@B-j&8X30akW6ag|sEkQ~eC)`-f*LP~$ zpa9C<_dzn~AyUlG#kEN*l4RRPhd-gGvVO{PY862$At;w%a>eDO$hYW-h}h!1Dv6l2 z!V_iUMWaIt*@RM}&U{3)DF!aD2uFLL#4WiWxp!C}wJ}3}|CWY#3j>1`8+IdngYw`n zBP*MW3{X;1(#K~00;@c~#fi${YXfZwQqfVAR|T7XR?zz-kQw@keWbSgO+LS3)< z-qHf9+hMQ1yqqxSU2cI69BCg(qr=Ln6X8imvHgx%Xq>;yiN}XkQO-plhi{yS^VjPU z8q5@O`ozaYbH(R`6!gjS=IX$wqelCBVJkoA?aph$q|;3xRD35^a)YG{car_aLaJEM zOc|?A4FLf7VJD&rA0lw^XmPhG3J0Q~1t)Q|}b)08CS;eD6J zqIAGhf>qQ;Hu!QN*-CPcv)*;Re2^2EQR0hbiud#|Evi--8QWU{72d9+ z3Wgv(XRWXG^f|TAUdTIB*&_L(i9J5;q#b0($^=NG5Fu-(lu>8oqFPj79Ro_So{z55 zIuRagv|ag}?r+^Al6&)v_eD}?z9p}Hka^k^3w+8aCi2R0yVNn4S;l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