xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r508561 [3/5] - in /xmlgraphics/site/deploy/fop: ./ trunk/
Date Fri, 16 Feb 2007 20:25:26 GMT
Modified: xmlgraphics/site/deploy/fop/trunk/graphics.html
URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/trunk/graphics.html?view=diff&rev=508561&r1=508560&r2=508561
==============================================================================
--- xmlgraphics/site/deploy/fop/trunk/graphics.html (original)
+++ xmlgraphics/site/deploy/fop/trunk/graphics.html Fri Feb 16 12:25:25 2007
@@ -195,7 +195,7 @@
 <a href="#native">FOP Native</a>
 </li>
 <li>
-<a href="#batik-codecs">Batik codecs</a>
+<a href="#batik-codecs">"Internal" codecs</a>
 </li>
 <li>
 <a href="#imageio">Image I/O (JDK 1.4 or higher)</a>
@@ -207,7 +207,7 @@
 <a href="#jai">JAI (Java Advanced Imaging API)</a>
 </li>
 <li>
-<a href="#batik">Batik</a>
+<a href="#batik">Apache Batik</a>
 </li>
 </ul>
 </li>
@@ -233,7 +233,7 @@
 <a href="#svg-pdf-graphics">Placing SVG Graphics into PDF</a>
 </li>
 <li>
-<a href="#svg-pdf-text">Placing SVG Text into PDF</a>
+<a href="#svg-pdf-text">Placing SVG Text into PDF and PostScript</a>
 </li>
 <li>
 <a href="#svg-scaling">Scaling</a>
@@ -247,6 +247,9 @@
 <a href="#tiff">TIFF</a>
 </li>
 <li>
+<a href="#emf">EMF</a>
+</li>
+<li>
 <a href="#resolution">Graphics Resolution</a>
 </li>
 <li>
@@ -322,7 +325,7 @@
           <td colspan="1" rowspan="1">(X)</td>
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1"></td>
-          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1">X</td>
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1"></td>
         
@@ -335,7 +338,7 @@
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1">X</td>
-          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1">X</td>
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1"></td>
         
@@ -361,12 +364,25 @@
           <td colspan="1" rowspan="1">(X)</td>
           <td colspan="1" rowspan="1"></td>
           <td colspan="1" rowspan="1">X</td>
-          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1">X</td>
           <td colspan="1" rowspan="1">X</td>
           <td colspan="1" rowspan="1"></td>
           <!--td><a href="#native">FOP native</a> or <a href="#jai">JAI</a>,
depending on the subformat. See <a href="#tiff">TIFF</a> for more details.(JIMI
also supports TIFF, but this has not been implemented within FOP).</td-->
         
 </tr>
+        
+<tr>
+          
+<td colspan="1" rowspan="1"><a href="#emf">EMF</a> (Windows Enhanced Metafile)</td>
+          <td colspan="1" rowspan="1">vector (with embedded bitmaps)</td>
+          <td colspan="1" rowspan="1">(X)</td>
+          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1"></td>
+          <td colspan="1" rowspan="1"></td>
+        
+</tr>
       
 </table>
 <div class="note">
@@ -375,20 +391,20 @@
 </div>
 </div>
     
-<a name="N10181"></a><a name="packages"></a>
+<a name="N101AD"></a><a name="packages"></a>
 <h2 class="underlined_10">Graphics Packages</h2>
 <div class="section">
-<a name="N10187"></a><a name="native"></a>
+<a name="N101B3"></a><a name="native"></a>
 <h3 class="underlined_5">FOP Native</h3>
 <p>
           FOP has native ability to handle some graphic file formats.
         </p>
-<a name="N10191"></a><a name="batik-codecs"></a>
-<h3 class="underlined_5">Batik codecs</h3>
+<a name="N101BD"></a><a name="batik-codecs"></a>
+<h3 class="underlined_5">"Internal" codecs</h3>
 <p>
-          Apache Batik contains codecs for PNG and TIFF access. FOP can use these.
+          Apache XML Graphics Commons contains codecs for PNG and TIFF access. FOP can use
these.
         </p>
-<a name="N1019B"></a><a name="imageio"></a>
+<a name="N101C7"></a><a name="imageio"></a>
 <h3 class="underlined_5">Image I/O (JDK 1.4 or higher)</h3>
 <p>
           For JDKs 1.4 or higher, FOP provides a wrapper to load images through the 
@@ -396,13 +412,13 @@
           Image I/O allows to dynamically add additional image codecs. An example of such
an add-on library are the
           <a target="_blank" class="fork" href="http://java.sun.com/products/java-media/jai/">JAI
Image I/O Tools</a> available from Sun.
         </p>
-<a name="N101AF"></a><a name="jimi"></a>
+<a name="N101DB"></a><a name="jimi"></a>
 <h3 class="underlined_5">JIMI</h3>
 <p>
           Because of licensing issues, the JIMI image library is not included in the FOP
distribution. First, <a target="_blank" class="fork" href="http://java.sun.com/products/jimi">download</a>
and install it.
 Then, copy the file "JimiProClasses.zip" from the archive to {fop-install-dir}/lib/jimi-1.0.jar.
Please note that FOP binary distributions are compiled with JIMI support, so there is no need
for you to build FOP to add the support. If jimi-1.0.jar is installed in the right place,
it will automatically be used by FOP, otherwise it will not.
         </p>
-<a name="N101BE"></a><a name="jai"></a>
+<a name="N101EA"></a><a name="jai"></a>
 <h3 class="underlined_5">JAI (Java Advanced Imaging API)</h3>
 <div class="warning">
 <div class="label">Warning</div>
@@ -413,8 +429,8 @@
 To use it, install <a href="http://java.sun.com/products/java-media/jai">JAI</a>,
then copy the jai_core.jar and the jai_codec.jar files to {fop-install-dir}/lib.
 JAI is much faster than JIMI, but is not available for all platforms. See <a href="http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html#platforms">What
platforms are supported?</a> on the JAI FAQ page for more details.
         </p>
-<a name="N101D3"></a><a name="batik"></a>
-<h3 class="underlined_5">Batik</h3>
+<a name="N101FF"></a><a name="batik"></a>
+<h3 class="underlined_5">Apache Batik</h3>
 <p>Current FOP distributions include a distribution of the Apache <a target="_blank"
class="fork" href="http://xmlgraphics.apache.org/batik/">Batik</a> version 1.6.
 It is automatically installed with FOP.
 Because Batik's API changes frequently, it is highly recommended that you use the version
that ships with FOP, at least when running FOP.</p>
@@ -437,13 +453,13 @@
 </ul>
 </div>
     
-<a name="N101FF"></a><a name="bmp"></a>
+<a name="N1022B"></a><a name="bmp"></a>
 <h2 class="underlined_10">BMP</h2>
 <div class="section">
 <p>FOP native support for BMP images is limited to the RGB color-space.</p>
 </div>
     
-<a name="N10209"></a><a name="eps"></a>
+<a name="N10235"></a><a name="eps"></a>
 <h2 class="underlined_10">EPS</h2>
 <div class="section">
 <p>FOP provides support for two output targets:</p>
@@ -460,6 +476,14 @@
         </li>
       
 </ul>
+<div class="warning">
+<div class="label">Warning</div>
+<div class="content">
+        Please note that the EPS embedding feature has been <strong>deprecated</strong>
in the
+        PDF specification version 1.4. You should not use this feature anymore, especially

+        since newer PDF tools don't support embedded EPS files anymore.
+      </div>
+</div>
 <p>
         Other output targets can't be supported at the moment because
         FOP lacks a PostScript interpreter. Furthermore, FOP is not able
@@ -467,29 +491,38 @@
       </p>
 </div>
     
-<a name="N1021F"></a><a name="jpeg"></a>
+<a name="N10251"></a><a name="jpeg"></a>
 <h2 class="underlined_10">JPEG</h2>
 <div class="section">
-<p>FOP native support of JPEG does not include all variants, especially those containing
unusual color lookup tables and color profiles.
-If you have trouble with a JPEG image in FOP, try opening it with an image processing program
(such as Photoshop or Gimp) and then saving it.
-Specifying 24-bit color output may also help.
-For the PDF and PostScript renderers most JPEG images can be passed through without decompression.
-User reports indicate that grayscale, RGB, and CMYK color-spaces are all rendered properly.
+<p>
+        FOP native support of JPEG does not include all variants, especially those containing

+        unusual color lookup tables and color profiles.
+        If you have trouble with a JPEG image in FOP, try opening it with an image processing

+        program (such as Photoshop or Gimp) and then saving it. Specifying 24-bit color output

+        may also help. For the PDF and PostScript renderers most JPEG images can be passed

+        through without decompression. User reports indicate that grayscale, RGB, and 
+        CMYK color-spaces are all rendered properly.
       </p>
 </div>
     
-<a name="N10229"></a><a name="png"></a>
+<a name="N1025B"></a><a name="png"></a>
 <h2 class="underlined_10">PNG</h2>
 <div class="section">
-<p>If using JAI for PNG support, only RGB and RGBA color-spaces are supported for FOP
rendering.</p>
+<p>
+        If using JAI for PNG support, only RGB and RGBA color-spaces are supported for 
+        FOP rendering.
+      </p>
+<p>
+        Transparency is supported but not guaranteed to work with every output format.
+      </p>
 </div>
     
-<a name="N10233"></a><a name="svg"></a>
+<a name="N10268"></a><a name="svg"></a>
 <h2 class="underlined_10">SVG</h2>
 <div class="section">
-<a name="N10239"></a><a name="svg-intro"></a>
+<a name="N1026E"></a><a name="svg-intro"></a>
 <h3 class="underlined_5">Introduction</h3>
-<p>FOP uses <a href="#batik">Batik</a> for SVG support.
+<p>FOP uses <a href="#batik"> Apache Batik</a> for SVG support.
 This format can be handled as an <span class="codefrag">fo:instream-foreign-object</span>
or in a separate
 file referenced with <span class="codefrag">fo:external-graphic</span>.</p>
 <div class="note">
@@ -497,85 +530,100 @@
 <div class="content">   
 Batik's SVG Rasterizer utility may also be used to convert standalone SVG
 documents into PDF.  For more information please see the
-<a href="http://xml.apache.org/batik/svgrasterizer.html">SVG Rasterizer documentation</a>
+<a href="http://xmlgraphics.apache.org/batik/svgrasterizer.html">SVG Rasterizer documentation</a>
 on the Batik site.
       </div>
 </div>
-<a name="N10254"></a><a name="svg-pdf-graphics"></a>
+<a name="N10289"></a><a name="svg-pdf-graphics"></a>
 <h3 class="underlined_5">Placing SVG Graphics into PDF</h3>
 <p>
 The SVG is rendered into PDF by using PDF commands to draw and fill
 lines and curves. This means that the graphical objects created with
-this remain as vector graphics.
+this remain as vector graphics. The same applies to PostScript output.
+For other output formats the SVG graphic will be converted to a bitmap
+image.
         </p>
 <p>
 There are a number of SVG things that cannot be converted directly into
 PDF. Parts of the graphic such as effects, patterns and images are inserted
-into the PDF as a raster graphic. The resolution of this graphic may not
-be ideal depending on the FOP dpi (72dpi) and the scaling for that graphic.
-We hope to improve this in the future.</p>
+into the PDF as a raster graphic. The resolution of these raster images can
+          be controlled through the "target resolution" setting in the 
+          <a href="configuration.html">configuration</a>.</p>
 <p>
-Currently transparency is not supported in PDF so many svg images that
-contain effects or graphics with transparent areas will not be displayed
+Currently transparency is limited in PDF so many svg images that
+contain effects or graphics with transparent areas may not be displayed
 correctly.
         </p>
-<a name="N10264"></a><a name="svg-pdf-text"></a>
-<h3 class="underlined_5">Placing SVG Text into PDF</h3>
-<p>If possible, Batik will use normal PDF text when inserting text. It does
+<a name="N1029D"></a><a name="svg-pdf-text"></a>
+<h3 class="underlined_5">Placing SVG Text into PDF and PostScript</h3>
+<p>If possible, Batik will use normal PDF or PostScript text when inserting text. It
does
 this by checking if the text can be drawn normally and the font is
 supported. This example svg <a href="../dev/svg/text.svg">text.svg</a> /
 <!--link href="../dev/svg/text.pdf"-->text.pdf<!--/link-->
 shows how various types and effects with text are handled.
 Note that tspan and outlined text are not yet implemented.</p>
 <p>
-Otherwise, text is converted and drawn as a set of shapes by batik, using the stroking text
painter.
+Otherwise, text is converted and drawn as a set of shapes by Batik, using the stroking text
painter.
 This means that a typical character will
 have about 10 curves (each curve consists of at least 20 characters).
-This can make the pdf files large and when the pdf is viewed the
-viewer does not normally draw those fine curves very well (turning on
-Smooth Line Art in the Acrobat preferences will fix this).
-If the text is inserted into the PDF using the inbuilt text commands
-for PDF it will use a single character.
+This can make the output files large and when it is viewed the
+viewer may not normally draw those fine curves very well (In Adobe Acrobat, turning on
+"Smooth Line Art" in the preferences will fix this).
+If the text is inserted into the output file using the inbuilt text commands
+it will use a single character.
         </p>
-<p>Note that because SVG text can be rendered as either text or a vector graphic, you
may need to consider settings in your viewer for both.
-The Acrobat viewer has both "smooth line art" and "smooth text" settings that may need to
be set for SVG images to be displayed nicely on your screen (see Edit / Preferences / Display).
-This setting will not affect the printing of your document, which should be OK in any case,
but will only affect the quality of the screen display.</p>
-<a name="N1027C"></a><a name="svg-scaling"></a>
+<p>
+          Note that because SVG text can be rendered as either text or a vector graphic,
you 
+          may need to consider settings in your viewer for both. The Acrobat viewer has both

+          "smooth line art" and "smooth text" settings that may need to be set for SVG images

+          to be displayed nicely on your screen (see Edit / Preferences / Display).
+          This setting will not affect the printing of your document, which should be OK
in 
+          any case, but will only affect the quality of the screen display.</p>
+<a name="N102B5"></a><a name="svg-scaling"></a>
 <h3 class="underlined_5">Scaling</h3>
-<p>Currently, SVG images are rendered with the dimensions specified <em>in the
SVG file</em>, within the viewport specified in the fo:external-graphic element.
-For everything to work properly, the two should be equal.
-The SVG standard leaves this issue as an implementation detail.
-FOP will probably implement a scaling mechanism in the future.</p>
-<a name="N10289"></a><a name="svg-problems"></a>
+<p>
+          Currently, SVG images are rendered with the dimensions specified <em>in the
SVG 
+          file</em>, within the viewport specified in the fo:external-graphic element.
+          For everything to work properly, the two should be equal. The SVG standard leaves

+          this issue as an implementation detail. FOP will probably implement a scaling 
+          mechanism in the future. 
+        </p>
+<p>
+          If you use pixels to specify the size of an SVG graphic the "source resolution"
setting
+          in the <a href="configuration.html">configuration</a> will be used
to determine the
+          size of a pixel. The use of pixels to specify sizes is discouraged as they may
+          be interpreted differently in different environments.
+        </p>
+<a name="N102C9"></a><a name="svg-problems"></a>
 <h3 class="underlined_5">Known Problems</h3>
 <ul>
           
 <li>
-soft mask transparency is combined with white so that it looks better
+Soft mask transparency is combined with white so that it looks better
 on pdf 1.3 viewers but this causes the soft mask to be slightly lighter
-or darker on pdf 1.4 viewers
+or darker on pdf 1.4 viewers.
           </li>
           
 <li>
-there is some problem with a gradient inside a pattern causing a pdf
-error when viewed in acrobat 5
+There is some problem with a gradient inside a pattern causing a PDF
+error when viewed in acrobat 5.
           </li>
           
 <li>
-text is not always handled correctly, it may select the wrong font
-especially if characters have multiple fonts in the font list
+Text is not always handled correctly, it may select the wrong font
+especially if characters have multiple fonts in the font list.
           </li>
           
 <li>
-more pdf text handling could be implemented
+More PDF text handling could be implemented.
 It could draw the string using the attributed character iterator
 to handle tspans and other simple changes of text.
           </li>
           
 <li>
-JPEG images are not inserted directly into the pdf document
+JPEG images are not inserted directly into the pdf document.
 This area has not been implemented yet since the appropriate
-method in batik is static
+method in batik is static.
           </li>
           
 <li>
@@ -586,10 +634,14 @@
 </ul>
 </div>
     
-<a name="N102A6"></a><a name="tiff"></a>
+<a name="N102E6"></a><a name="tiff"></a>
 <h2 class="underlined_10">TIFF</h2>
 <div class="section">
-<p>FOP-native TIFF support is limited to PDF and PostScript output only. Also, according
to user reports, FOP's native support for TIFF is limited to images with the following characteristics
(all must be true for successful rendering):</p>
+<p>
+        FOP-native TIFF support is limited to PDF and PostScript output only. Also, 
+        according to user reports, FOP's native support for TIFF is limited to images with
the 
+        following characteristics (all must be true for successful rendering):
+      </p>
 <ul>
         
 <li>single channel images (i.e., bi-level and grayscale only)</li>
@@ -599,42 +651,61 @@
 <li>images using white-is-zero encoding in the TIFF PhotometricInterpretation tag</li>
       
 </ul>
+<div class="note">
+<div class="label">Note</div>
+<div class="content">
+        Native support in this case means that the images can be embedded into the output
format
+        without decoding it.
+      </div>
+</div>
 <p>
 <em>JAI:</em> Supports RGB and RGBA only for FOP rendering.</p>
 </div>
     
-<a name="N102C1"></a><a name="resolution"></a>
-<h2 class="underlined_10">Graphics Resolution</h2>
+<a name="N10304"></a><a name="emf"></a>
+<h2 class="underlined_10">EMF</h2>
 <div class="section">
-<p>Some bitmapped image file formats store a dots-per-inch (dpi) or other resolution
value. Since PDF and most output formats do not have a concept of resolution, but only of
absolute image units (i.e. pixels) FOP ignores the resolution values as well. Instead, FOP
uses the dimensions of the image as specified in the fo:external-graphic element to render
the image:</p>
-<ul>
-        
-<li>If no dimensions are given, FOP uses a default value of 72 dpi to compute the graphic's
dimensions. For example, suppose a graphic 300 pixels wide and 400 pixels high. FOP will render
the graphic at 4.167 inches wide, 5.555 inches high, with an apparent resolution of 72 dpi.</li>
-        
-<li>If only one dimension is given, FOP by default uses the same aspect ratio to compute
the other dimension (to avoid the appearance of stretching). For example, suppose a graphic
300 pixels wide and 400 pixels high, for which content-width = ".5in". FOP will compute the
content-height = .667 inches, and will render the graphic at that size, with an apparent resolution
of 600 dpi.</li>
-        
-<li>If both dimensions are given, FOP simply renders the image in that space. For example,
suppose a graphic 300 pixels wide and 400 pixels high, for which content-width = "3in" and
content-height = "4in". FOP will render the graphic at that size, with an apparent resolution
of 100 dpi.</li>
-      
-</ul>
-<p>If you need a higher apparent output resolution for bitmapped images, first make
sure that at least one dimension of the image is defined in your XSL-FO input. Apart from
that, resolution problems are in the image file itself, and must be corrected there: use or
create a higher-resolution image file.</p>
-<div class="note">
-<div class="label">Note</div>
-<div class="content">The explanation above describes only the basic default behavior.
There are other attributes of the fo:external-graphic element that can affect the behavior
described above.</div>
+<p>Windows Enhanced Metafiles (EMF) are only supported in RTF output.</p>
 </div>
+    
+<a name="N1030E"></a><a name="resolution"></a>
+<h2 class="underlined_10">Graphics Resolution</h2>
+<div class="section">
+<p>
+        Some bitmapped image file formats store a dots-per-inch (dpi) or other resolution

+        values. FOP tries to use this resolution information whenever possible to determine
+        the image's intrinsic size. This size is used during the layout process when it is
not
+        superceeded by an explicit size on fo:external-graphic (content-width and content-height

+        properties).
+      </p>
+<p>
+        Please note that not all images contain resolution information. If it's not available
+        72 dpi is assumed (the default resolution of PDF and PostScript).
+      </p>
+<p>
+        Bitmap images are generally embedded into the output format at their original resolution
+        (as is). No resampling of the image is performed. Explicit resampling is on our wishlist,

+        but hasn't been implemented, yet. Bitmaps included in SVG graphics may be resampled
to 
+        the resolution specified in the "target resolution" setting in the 
+        <a href="configuration.html">configuration</a> if SVG filters are applied.
This can be
+        used as a work-around to resample images in FO documents. 
+      </p>
 </div>
     
-<a name="N102DD"></a><a name="caching"></a>
+<a name="N10322"></a><a name="caching"></a>
 <h2 class="underlined_10">Image caching</h2>
 <div class="section">
 <p>
-        FOP caches images between runs. The URL is used as a key to identify images which
means that when
-        a particular URL appears again, the image is taken from the cache. If you have a
servlet that
-        generates a different image each time it is called with the same URL you need to
use a constantly 
+        FOP caches images between runs. There is one cache per FopFactory instance. The URI
is 
+        used as a key to identify images which means that when a particular URI appears again,

+        the image is taken from the cache. If you have a servlet that generates a different

+        image each time it is called with the same URL you need to use a constantly 
         changing dummy parameter on the URL to avoid caching.
       </p>
 <p>
-        The image cache has been improved considerably in the redesigned code. Therefore,
a resetCache() method
-        has become unnecessary. If you still experience OutOfMemoryErrors, please notify
us.
+        The image cache has been improved considerably in the redesigned code. Therefore,
a 
+        resetCache() method like in earlier versions of FOP has become unnecessary. If you

+        still experience OutOfMemoryErrors, please notify us.
       </p>
 </div>
   



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message