SVG Output

Antenna House Formatter V7.4 outputs SVG that is compliant to W3C Scalable Vector Graphics (SVG) 2 specification. It also outputs SVG Tiny and SVG Basic in the Mobile SVG Profiles.

Customers must purchase “Antenna House Formatter SVG Output Option” to output SVG. For more details, see also Antenna House website.

SVG Output Format

In Antenna House Formatter V7.4 any of SVG 2, SVG 1.1, SVG Basic and SVG Tiny can be outputted as an SVG profile. When a profile is not specified, it is considered SVG 2.

Mobile SVG Profiles are the specifications for mobile computing devices or cellular phones which have restrictions in the throughput of the hardware, the memory capacity and the number of colors that can be displayed.

Since SVG Tiny is for hardware with the most restrictions, like a cellular phone, the supported elements and attributes are quite limited. Therefore, the reproduction level of the original document may be low.

SVG Basic is for more high-efficient pocket devices, such as high-efficient PDA, and has fewer restrictions than SVG Tiny. For more details, see also Mobile SVG Profiles.

Antenna House Formatter V7.4 outputs SVG Tiny and SVG Basic on the basis of the output for SVG 1.1 by disregarding the unsupported elements.

When the document composed of multiple pages is converted into SVG, each page will be output as individual files. It is possible to output them collectively to one file by setting Command-line Interface etc. However, when it is output as standard out, it is always output to one file.

Handling Images

For more information about supported graphic images, see the “Graphics”.

With SVG Output, there are three types of methods for handling images. These methods can be specified with the Command-line Interface or the Option Setting File, etc.

  • Embedding

    Raster images are embedded in SVG as Base64 encoding. Vector images are outputted as SVG.

  • Linking

    Images are linked using the URI of the link origin without change.

  • Copying and linking

    Images are copied to the place where they are specified and are described as a link there. the copy destination can be specified by copy-image-path, etc. in the Option Setting File.

There are two types of images in FO.

  • Images by external reference

    Images are referenced externally by <fo:external-graphic> or <img> of HTML.

  • Images embedded

    Images encoded by Base64 using the data scheme by <fo:external-graphic> or <img> of HTML is embedded, or the images are embedded in FO by <fo:instream-foreign-object>.

In Antenna House Formatter V7.4, all the images referred by outputted SVG are converted into JPEG or PNG or SVG. For this reason, images embedded or externally referenced are handled as follows:

EmbedLinkCopy and Link
JPEGExternalRefEmbeds images without change.Links images without change.Copies and links images without change.
EmbeddedEmbeds images without change.
PNGExternalRefLinks images without change.
EmbeddedEmbeds images without change.
BMPExternalRefEmbeds images after converting into JPEG or PNG.Copies and links images after converting into JPEG or PNG.
Embedded
TIFFExternalRef
Embedded
GIFExternalRef
Embedded
JPEG 2000ExternalRef
Embedded
WebPExternalRef
Embedded
SVGExternalRefEmbeds images as SVG.Links images without change.Copies and links images without change.
EmbeddedEmbeds images as SVG.
WMFExternalRefEmbeds images after converting into SVG.Copies and links images after converting into SVG.
Embedded
EMFExternalRef
Embedded
PDFExternalRef
Embedded
MathMLExternalRef Embeds images after converting into SVG. It's invalid if Antenna House Formatter MathML Option is not installed with Antenna House Formatter V7.4 Lite. Copies and links images after converting into SVG. It's invalid if Antenna House Formatter MathML Option is not installed with Antenna House Formatter V7.4 Lite.
Embedded
CGMExternalRef Embeds images after converting into SVG. It's invalid if Antenna House Formatter CGM Option is not installed. Copies and links images after converting into SVG. It's invalid if Antenna House Formatter CGM Option is not installed.
Embedded
EPSExternalRefEmbeds images after converging into JPEG or PNG in Windows versions. In non-Windows versions, if the preview image included in EPS is the TIFF format, it's embedded after being changed into JPEG or PNG, if it is the WMF format, it's embedded after being changed into SVG. Copies and links images after converging into JPEG or PNG in Windows versions. In non-Windows versions, if the preview image included in EPS is the TIFF format, it's copied and linked after being changed into JPEG or PNG, if it is the WMF format, it's copied and linked after being changed into SVG.
Embedded

Restrictions

SVG Tiny

Since many elements in SVG Tiny are not supported, it may be difficult to reproduce output that stays true to the original document. Antenna House Formatter V7.4 reproduces the original as much as possible by substituting the elements with alternative expressions to the extent possible. The following are the main restrictions of SVG Tiny:

  • SVG Tiny does not support fills that contain gradation. Plain color is used as a substitute.
  • Writing mode is not supported by SVG Tiny. When a document contains vertical writing, the position for every character will be specified. For this reason, the size of the document may become greater than the one outputted by SVG 2.
  • Many SVG Tiny viewers do not support the rotation of characters. Those viewers will ignore the rotated character.