PDF output is a standard function of AH Formatter V7.0. The PDF versions that can be output are as follows:
AH Formatter V7.0 outputs PDFs with the following features:
For more details, see also PDF Output Settings.
PDF/X is defined in ISO 15930 and is a subset of PDF that aims to exchange the data for printing. Basically all the information for printing is included in the PDF file. AH Formatter V7.0 is available for outputting the following version of PDF/X. It's impossible to output PDF/X with AH Formatter V7.0 Lite.
The following shows the main features for PDF/X.
PDF/X-1a | PDF/X-2 | PDF/X-3 | PDF/X-4 | PDF/X-4p | |
---|---|---|---|---|---|
All fonts must be embedded | yes | yes | yes | yes | yes |
The output intent must be specified | yes | yes | yes | yes | yes |
ICC profiles specified as the output intent must be embedded | no | no | no | yes | no |
Supports CMYK, Spot color | yes | yes | yes | yes | yes |
Supports Grayscale | yes | yes | yes | yes | yes |
Supports RGB | no | yes | yes | yes | yes |
Supports transparency | no | no | no | yes | yes |
Supports PDFs with encryption; setting of password, the restriction for printing and the restriction for changing must not be done | no | no | no | no | no |
PDF may contain links or annotations, etc. in the print area | no | no | no | no | no |
PDF may contain elements that include actions such as bookmarks, etc. | no | no | no | no | no |
In PDF/X, all fonts must be embedded. When the font that is not allowed to embed is used, PDF/X cannot be generated.
PDF/X adopts the appropriate information by ignoring the most of the information set by users, such as font embedding, etc. For example the version of the output PDF is specified to PDF/X, Font Embedding in the PDF Option Setting Dialog will be displayed in gray color.
When an image incompatible as PDF/X is specified, the processing changes depending on error-on-pdfx-fault specified in PDF Output Settings. See also error-on-pdfx-fault.
In PDF/X, the output intent must be specified. There are two ways to specify the output intent. One is to directly specify the ICC profile and the other one is to specify the output condition identifier.
In order to specify the output intent by ICC profile, use the URL of the ICC profile to the src property for <fo:color-profile>. In this case, omit the color-profile-name property or specify "#CMYK", "#GrayScale" or "#RGB". If this property is omitted, it is considered to be "#CMYK". For example:
In PDF/X, the output intent which can be specified is only one. When multiple output intents are specified, it is unsure which one is adopted.
In PDF/X, the only ICC profile of the output intent which can be embedded is the one whose device class is “prtr”. Any ICC profiles other than “prtr” cannot be used. Specifying an ICC profile other than “prtr” will report the following error:
With PDF/X-1 to PDF/X-3, the output condition identifier can also be specified with the src property of <fo:color-profile>. The setting is done in the form of the fragmentation of URI. For example:
The first character must be “#”. After that, the parameters are lined and separated by &. Each parameter is in the form of name=value. The name of the parameters are as follows (by mapping to the items of the Outputlntent dictionary for PDF/X).
It's also possible to give the information of the profile by describing the format of the fragment parameter following to the ICC profile. The base URI specified by axf:base-uri can also be specified.
<fo:declarations axf:base-uri="url('file:///C:/WINDOWS/system32/spool/drivers/color/')"> <fo:color-profile src="url('Photoshop5DefaultCMYK.icc#Info=Photoshop5')"/> </fo:declarations>
When the output intent is specified by the output condition identifier, the output intent is not embedded in PDF/X. When it is specified by the ICC profile, the ICC profile is embedded in PDF/X.
The standard output intent is the standard ICC profile defined below.
☞ | CMYK Characterization Data |
---|
You can specify any of these for the output condition identifier. The standard output intents that can be specified with AH Formatter V7.0 are as follows and they are all for CMYK.
|
|
|
|
|
|
The ICC profile specified by the URL is judged whether it is the standard output intent from its contents. When the standard output intent is specified with a URL, with PDF/X-1 to 3, it's possible to select whether the ICC profile is embedded or not by embed-std-output-intent of the PDF Output Settings, because the embedding of the ICC profile is not required. However, with PDF/X-4, this setting is disregarded and the ICC profile is always embedded. With PDF/X-1 to 3, when specified by the output condition identifier, it's not embedded regardless of the setting of embed-std-output-intent.
When the output intent is not specified in FO, default-output-intent in the PDF Output Settings will be adopted.
The standard ICC profile can be downloaded from Adobe.
☞ | Adobe ICC profiles |
---|
The profile that can be downloaded may be already bundled with Adobe Acrobat and has already been installed on your system. If your OS is Windows, search the %windir%\system32\spool\drivers\color directory.
PDF/A is defined by ISO 19005 and it is the specification intended to be suitable for long-term preservation of electronic documents. AH Formatter V7.0 is available for outputting the following version of PDF/A. It's impossible to output PDF/A with AH Formatter V7.0 Lite.
The following shows the main features for PDF/A:
PDF/A-1a | PDF/A-1b | PDF/A-2a | PDF/A-2b | PDF/A-2u | PDF/A-3a | PDF/A-3b | PDF/A-3u | |
---|---|---|---|---|---|---|---|---|
All fonts must be embedded | yes | yes | yes | yes | yes | yes | yes | yes |
ICC profiles must be embedded | yes | yes | yes | yes | yes | yes | yes | yes |
Files must be tagged | yes | no | yes | no | no | yes | no | no |
Files must include XMP compliant metadata | yes | yes | yes | yes | yes | yes | yes | yes |
Files may include encryption | no | no | no | no | no | no | no | no |
Files may include LZW Compression | no | no | no | no | no | no | no | no |
Files may include Transparent images | no | no | yes | yes | yes | yes | yes | yes |
Files may refer to the external content | no | no | no | no | no | no | no | no |
Files may include JavaScript | no | no | no | no | no | no | no | no |
Unicode must be used for text | yes | no | yes | no | yes | yes | no | yes |
Files may attach PDF/A as annotations | no | no | yes | yes | yes | yes | yes | yes |
Files may attach any files other than PDF/A as annotations | no | no | no | no | no | yes | yes | yes |
PDF/A as well as PDF/X require that all fonts are embedded; if a font cannot be embedded due to security restrictions or other issues, a PDF/A or PDF/X will not be generated. Also, the embedding of the ICC profile is required with PDF/A, so when specifying the output intent, only the URL specification of the ICC profile is effective.
Most information (including embedding of fonts etc.) is adopted precisely and user settings are ignored. In PDF/A-1a or PDF/A-2a or PDF/A-3a, the tagging is done compulsorily. See also Tagged PDF.
XMP metadata is automatically generated from the document information of PDF. The original XMP can also be specified by <axf:document-info name="xmp">.
In order to attach a file as an annotation, use axf:annotation-file-attachment. Although it is [yes] in the above table, there are the following restrictions when attaching a file to PDF/A. There are no restrictions other than PDF/A.
Since fonts cannot be embedded in forms in PDF, PDF/A cannot be generated. However, only in the following cases, PDF/A can be generated even if there is a form.
PDF/UA is defined by ISO 14289-1 and is the specification intended for improving the accessibility of PDF based on the ISO 32000-1 specification. AH Formatter V7.0 is available for outputting the following version of PDF/UA. It's impossible to output PDF/UA with AH Formatter V7.0 Lite.
The following shows the main features of PDF/UA.
Usual PDF does not have the document structure in the contents. For example, the sentences are cut off per each line. In the column, the first line of the right column follows the first line of the left column. Therefore, even if a person with sight problems, etc. is going to read PDF using some kind of reader, it is very difficult to read a text in the right order. The same thing is applied to the text extraction from PDF. Tagged PDF is effective with PDF1.4 or later.
Tagged PDF adds structure to PDF documents by embedding tags into the PDF. The structure added to the document makes the information in the PDF more reusable. For this reason, Tagged PDF is required to create accessible PDF documents. See also the following to know more about Tagged PDF specifications.
Tagged PDF is an important element of PDF accessibility. For accessible PDF, there are some requirements in addition to tagged PDF, as a whole, it is defined in PDF/UA.
AH Formatter V7.0 embeds the following tags (StructElem) for each FO element. Note that FO elements assigned to regions other than region-body are tagged as Artifact.
FO element | PDF element | Comment |
---|---|---|
fo:root | Document | |
fo:page-sequence | Part | |
fo:flow | Sect or Div | Div when PDF2.0 or later |
fo:static-content | Sect or Aside | Aside when PDF2.0 or later |
fo:block | P or Div | P when it has the content of inline-level, otherwise Div |
fo:block-container | Div or Sect, Aside | Sect when absolute-position="fixed" or "absolute", otherwise Div. In PDF2.0 or later, it will be Aside instead of Sect. |
fo:inline | Span or Reference | Reference when the child of <fo:footnote>, otherwise Span. In PDF2.0 or later, the child of <fo:footnote> is also Span. |
fo:inline-container | Span | |
fo:leader | Span | |
fo:page-number | Span | |
fo:page-number-citation | Span | |
fo:page-number-citation-last | Span | |
fo:scaling-value-citation | Span | |
fo:index-page-citation-list | Span | |
fo:bidi-override | Span | |
fo:footnote | The footnote-reference-area embeds Sect that contains all the footnotes on the page. In PDF2.0 or later, Aside is embedded. | |
fo:footnote-body | Note or FENote | |
fo:float | Sect or Aside | |
fo:external-graphic | Figure or Formula | Formula in case of MathML, otherwise Figure |
fo:instream-foreign-object | Figure or Formula | Formula in case of MathML, otherwise Figure |
fo:basic-link | Link | |
fo:list-block | L | |
fo:list-item | LI | |
fo:list-item-label | Lbl | |
fo:list-item-body | LBody | |
fo:table | Table | |
fo:table-caption | Caption | |
fo:table-header | THead | |
fo:table-footer | TFoot | |
fo:table-body | TBody | |
fo:table-row | TR | |
fo:table-cell | TH or TD | TH within <fo:table-header>, otherwise TD |
axf:form-field | Form | |
axf:ruby | Ruby | |
axf:ruby-base | RB | |
axf:ruby-text | RT |
AH Formatter V7.0 embeds the following tags (StructElem) for each HTML element.
HTML element | PDF element | Comment |
---|---|---|
html | Document | |
div | Div | |
h1 | H1 | |
h2 | H2 | |
h3 | H3 | |
h4 | H4 | |
h5 | H5 | |
h6 | H6 | |
p | P | |
ul | L | |
ol | L | |
li | LI | |
li::marker | Lbl | list label |
dl | L | |
dt | Lbl | |
dd | LBody | |
blockquote | BlockQuote or P | P when PDF2.0 or later |
caption | Caption | |
table | Table | |
tr | TR | |
td | TD | |
th | TH | |
thead | THead | |
tfoot | TFoot | |
tbody | TBody | |
ruby | Ruby | |
rb | RB | |
rt | RT | |
span | Span | |
img | Figure | |
a[href] | Link | |
section | Sect or Part | Part when PDF2.0 or later V7.0 |
article | Art or ASide | ASide when PDF2.0 or later V7.0 |
code | Code or P | P when PDF2.0 or later V7.0 |
other block elements | Div | |
other inline elements | Span |
There are some tags that are not structural elements.
PDF element | Comment |
---|---|
Artifact | It is mapped to the contents distinguished from the text of a page. <fo:static-content> that is repeatedly outputted at each page break, and <fo:table-header> (except the one at the beginning of the table) and <fo:table-footer> (except the one at the end of the table) serve as Artifact. The same applies when axf:pdftag="Artifact" is specified. |
ReversedChars | It is mapped to the text which runs from right to left, such as Arabic, etc. |
Span | It is used for setting up the character string before being processed for the display as ActualText. It is different from Span in the structural element. The character strings before being processed mean the character string before the hyphenation is processed, or the character string before complicated glyph substitution is done in Thai etc., for example. |
In order to create Tagged PDF, you can check Tagged PDF in the PDF Option Setting Dialog, or you can specify -tpdf with the Command-line Interface.
Using the axf:pdftag extension property, you can specify an arbitrary tag name to PDF.
In AH Formatter V7.0, Role Map can be specified. Role Map is a feature to set the alias of the tag element name. In AH Formatter V7.0, tag-role-map in the Option Setting File enables highly readable tagging while conforming to standard tags. V7.0
AH Formatter V7.0 processes as follows for each check item (in the case of Acrobat 7.0) of the Adobe Acrobat's Accessibility Full Check.
Alternate text can be specified with the extension property, axf:alttext.
<fo:external-graphic src="..." axf:alttext="AltText"/>
If axf:alttext is not specified or is empty, the content of text is treated as an alternate text. However, for empty elements such as <fo:external-graphic>, the content of text is empty. If the content of text is empty and HTML, the value of the title property is treated as an alternate text. If the value of the title property is also empty or not HTML, the value of the role property is treated as an alternate text. However, this is not recommended as it is not the original usage of the role property. If the value of the role property is also empty, one white-space character (U+0020) is treated as an alternate text. This prevents an accessibility checker from generating an error when alternate text is not provided on, for example, an unimportant image. It is the FO/HTML creator's responsibility to provide meaningful alternate text.
In order to check whether an alternate text is given to the image, you can choose View in the Navigation Tabs, then click Tags to open the Tags tab with Acrobat, then see the alternate text item by opening the property of the <Figure> element.
The alternate text of the link can be specified with the extension property axf:annotation-contents. If axf:annotation-contents is not specified or is empty, axf:alttext will be used as an alternate text. When axf:alttext is not specified or is empty, it is processed in the same way as the alternate text of the image.
If any of the properties for specifying the language (language, country, xml:lang) are provided in the FO, they will be used to set the language of the corresponding structure elements in the Tagged PDF. For example, if you display the tags of the following Tagged PDF with Acrobat,
<fo:block language="ja">日本語です</fo:block>
and view the properties of the <P> element in this paragraph, you will see the language as Japanese.
The text is outputted in Unicode, there is no problem.
See the tags in the above table.
If the axf:field-description extension property is specified, the text will be assigned, if not, the form name is assigned.
<fo:list-block> is for the list structure of Tagged PDF and <fo:table> is for the table structure.
AH Formatter V7.0 outputs tags in the right order.
See also PDF Embedding to know more about embedding tagged PDF in tagged PDF or the restrictions by the PDF versions.
It's impossible to output Tagged PDF with AH Formatter V7.0 Lite.
CAUTION: | In PDF2.0 or later, constraints have been added to the parent-child relationship of tags, but AH Formatter V7.0 may perform tagging that violates the constraints. You can check whether the output PDF violates the constraint by enabling check-tag-relationship. |
---|
A linearized PDF file makes viewing of the generated PDF on the web faster. Features of linearized PDF include the following:
PDF that is optimized for fast web view indicates this linearized PDF.
CAUTION: | It has been confirmed that some viewers might judge that linearized PDF with file size of less than or equal to 4 KB is not optimized. |
---|
XMP (Extensible Metadata Platform) is an XML specification that represents metadata, and is defined in ISO 16684. PDF1.4 or later contains XMP. XMP is generated from the information specified in <axf:document-info>. Any XMP can be specified with <axf:document-info xmp>, but its contents are adjusted so that there is no conflict. The following contents are adjusted:
Namespaces that appear here are:
No other adjustments other than above are made. Even if an element of an unknown namespace is included in the specified XMP, it will not be deleted. If such elements are included in PDF/A, etc., compliance violations may occur.
Possible to embed PDF document in the other PDF. Fillable PDF forms can also be embedded.
It is performed by using <fo:external-graphic> like handling an image. See Graphics.
<fo:external-graphic src="embedded.pdf#page=3"/>
As described above, specify the page number which you want to embed to the URI. Specify the page in the form of #page=<FirstPage>-<LastPage>. When there is no page number specified, the first page will be embedded.
When there is no size specified, it's embedded in the page size of the PDF where it's embedded. However if you want to scale the size, content-width or content-height can be specified as follows:
<fo:external-graphic src="embedded.pdf#page=3" content-width="50%"/>
Possible to embed multiple pages continuously.
<fo:external-graphic src="embedded.pdf#page=3-5"/>
As described above, embed from the 3rd page to 5th page continuously. If you want to embed all pages, specify as follows:
<fo:external-graphic src="embedded.pdf#page=1-"/>
CAUTION: | When the page size of the embedded PDF is relatively large, pages of embedded PDF may overflow. That is because <fo:external-graphic> is an inline element and is affected by the widows/orphans properties. You should specify widows="1" orphans="1" for the block. |
---|
When specifying PDF by utilizing the data scheme (RFC2397), the page number can be specified as the parameter of the media type as follows:
<fo:external-graphic src="data:application/pdf;page=3;base64,JVBERi0xLjQKJeLjz9M..."/>
Moreover, it's also possible to embed PDF as a background. This can be used when making a list form as a background and formatting only the content data on it. When specifying PDF as a background, specify axf:background-repeat="no-repeat" to <fo:simple-page-master> or <fo:page-sequence> as follows:
<fo:simple-page-master axf:background-image="background.pdf" axf:background-repeat="no-repeat" ...
axf:background-repeat="repeat" cannot be specified. In CSS, specify the background to @page.
When embedding PDF against the background, it's possible to embed not only one page but also two or more pages continuously. Specify axf:background-repeat="paginate" as follows:
<fo:simple-page-master axf:background-image="background.pdf#page=3-5" axf:background-repeat="paginate" ...
In this example, pages from the 3rd to the 5th are embedded as the background. When the number of pages generated from the contents of <fo:flow> is less than the number of embedded PDF pages, pages are added so that all pages of embedded PDF may be outputted. Therefore, if the contents of <fo:flow> is empty, there would be no problem. When there is more number of pages generated from the contents of <fo:flow>, the background image of the page beyond the number of embedded PDF pages will drop off. Specify the page in the form of #page=<FirstPage>-<LastPage>. When axf:background-repeat="paginate" is not specified, the -<LastPage> portion is disregarded.
CAUTION: | When axf:background-repeat="paginate" is specified and a background image is also specified for a blank page and so on, the embedding of PDF ends when the blank page is adopted. |
---|
When axf:background-image or axf:background-repeat are specified to both <fo:page-sequence> and <fo:simple-page-master>, <fo:simple-page-master> takes priority. It's possible to embed PDF to <fo:region-*> by specifying to <fo:simple-page-master>.
axf:background-repeat="paginate" is not available to specify with AH Formatter V7.0 Lite.
The version of embedded PDF must be less than or equal to the version of PDF to output. The following table shows the acceptable combination with PDF/X, etc. Combinations not in the table are not acceptable.
Embedded PDF | PDF1.3 to 1.7 | PDF2.0 | PDF/X | |||||||
---|---|---|---|---|---|---|---|---|---|---|
1a:2001 | 3:2002 | 1a:2003 | 2:2003 | 3:2003 | 4:2010 | 4p:2010 | ||||
Output PDF | PDF1.3 to 1.7 | yes | yes | yes | yes | yes | yes | yes | yes | |
PDF2.0 | yes | |||||||||
PDF/X-1a:2001 | yes | |||||||||
PDF/X-3:2002 | yes | yes | ||||||||
PDF/X-1a:2003 | yes | yes | ||||||||
PDF/X-2:2003 | yes | yes | yes | yes | yes | |||||
PDF/X-3:2003 | yes | yes | yes | yes | ||||||
PDF/X-4:2010 | yes | yes | yes | yes | yes | yes | ||||
PDF/X-4p:2010 | yes | yes | yes | yes | yes | yes |
Embedded PDF | PDF/A | PDF/UA | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
1a:2005 | 1b:2005 | 2a:2011 | 2b:2011 | 2u:2011 | 3a:2012 | 3b:2012 | 3u:2012 | 1:2014 | ||
Output PDF | PDF1.3 to 1.7 | yes | yes | yes | yes | yes | yes | yes | yes | yes |
PDF/A-1a:2005 | ||||||||||
PDF/A-1b:2005 | yes | yes | ||||||||
PDF/A-2a:2011 | ||||||||||
PDF/A-2b:2011 | yes | yes | yes | yes | yes | |||||
PDF/A-2u:2011 | yes | yes | yes | |||||||
PDF/A-3a:2012 | ||||||||||
PDF/A-3b:2012 | yes | yes | yes | yes | yes | yes | yes | yes | ||
PDF/A-3u:2012 | yes | yes | yes | yes | yes | |||||
PDF/UA-1:2014 |
Even if it is [yes] in the above table when embedding PDF, there are the following restrictions:
CAUTION: | If you embed a page with an annotation multiple times at different positions, the position of the annotation will not be guaranteed. |
---|
CAUTION: | When tagged PDF is embedded in tagged PDF, the validity of the tag in the embedded PDF is not guaranteed. |
---|
Adobe Type 1 fonts (including Adobe Standard 14 Fonts), TrueType fonts (including OpenType fonts with TrueType Outlines), OpenType fonts (PostScript Outline), WOFF (Web Open Font Format), WOFF2 and Macintosh TrueType font data fork suitcase are supported for PDF output. Other font formats are not supported. For more details, see the “Fonts”.
AH Formatter V7.0 requires that the fonts, which are specified in documents, are installed on your system in order to use them correctly. See Windows help or follow the installation instructions attached to the fonts for the method of installing the font in the Windows version. The font placed aside from the font folder can be outputted to PDF in the Windows version. At this time, you need to specify some setting in the Font Configuration File.
CAUTION: | When the PDF includes a transparent image that is displayed with Adobe Acrobat/Reader, the character might appear somewhat bolder. This is a known problem of Adobe Acrobat/Reader. |
---|
The following character sets are supported:
Encoding of all characters is processed as Unicode within AH Formatter V7.0. In the case of Chinese, Japanese, Korean (CJK), AH Formatter V7.0 maps the Unicode to glyph in each CJK character sets by using the following CMap:
The characters that do not belong to the above character sets are embedded in the PDF by getting the glyphs from the font files. This process is done only for TrueType, OpenType fonts.
Embedding font makes it possible to display PDF files even in the environment where there are no fonts.
In the default setting of TrueType font processing, only the outline of glyphs that are not defined by CMap is embedded. In cases where embedding TrueType fonts are prohibited by a font vendor, error occurs and processing stops. This error can be avoided by replacing it with a white space and output PDF. You can also specify the option that all glyphs of a font are to be embedded whether the character is defined by CMap or not.
In the default setting of Adobe Type 1 font processing, only the outline of a font that has font specific encoding is embedded. The option to embed all glyphs of a font can also be specified whether the font has standard or font specific encoding.
You cannot embed the font in PDF if the font is not allowed to embed. See also PDF Output Settings to learn how to specify the font you want to embed.
Regardless of the setting, there may be a case that a font may always be embedded. In the following cases, the font is always embedded. If the font is not allowed to embed, you cannot use the font.
For more information about supported graphic images, see the “Graphics”.
The following vector images outputted to PDF as vector primitives are replaced with PDF operators:
In Windows version, vector images other than the above are transformed into the raster images and outputted to PDF. The resolution of the raster can be set in the result PDF with the value of dpi. See rasterize-resolution in PDF Output Settings. In non-Windows versions, the vector image which cannot be outputted to PDF is disregarded.
For details, see EPS in Graphics.
CAUTION: | In AH Formatter V7.0 Lite, MathML cannot be outputted without “AH Formatter MathML Option”. |
---|
CAUTION: | CGM cannot be outputted without “AH Formatter CGM Option”. |
---|
Generally the raster graphic data is compressed using a compression algorithms in the graphic file. If the compression method and the original (uncompressed) image format are both compatible with the PDF file format, the compressed raster graphic data will be directly embedded into the PDF file. If the compression method or original image format are not compatible with the PDF format, the graphic data will be uncompressed and converted to a PDF compatible bitmap format for output. If graphic data cannot be uncompressed, its data cannot be processed. Bitmap graphic will be compressed using JPEG or ZLIB compression and embedded into the PDF file. See color-compression, color-jpeg-quality attributes in PDF Output Settings of the Option Setting File. If raster image data is directly embedded into the PDF file, these attributes will not be applied.
The raster images which can be embedded directly in a PDF are as follows:
These are the following restrictions:
In AH Formatter V7.0, the down sampling of the raster images embedded in PDF can be down sampled.
How it's down sampled can be specified in Compression in the PDF Option Setting Dialog or in Option Seting File.
The compression has the following restrictions:
JPEG compression is available when the following criteria are met; if not, ZLIB compression is used.
JPEG 2000 compression is available when the following criteria are met; if not, JPEG compression is used.
The multimedia data, such as video, audio, etc. can be embedded or linked in PDF. The following shows the example using <fo:external-graphic>.
<fo:external-graphic src="video.mpg" content-type="video/mpeg" axf:multimedia-treatment="embed" axf:poster-image="poster.jpg" axf:show-controls="true" width="640pt" height="400pt"/>
In HTML, <object> or <video> can be used.
<object data="video.mpg" type="video/mpeg" width="640" height="400" style="-ah-poster-image:url('poster.jpg'); -ah-show-controls:true"> </object>
or
<video src="video.mpg" type="video/mpeg" width="640" height="400" poster="poster.jpg" controls="controls"> </video>
The setting of content-type (or type attribute in HTML) is required. AH Formatter V7.0 assumes that the data specified as src follows the content-type. The contents of data are not checked. A poster image can be specified by axf:poster-image (or poster attribute in HTML <video>). A poster image can be displayed in the GUI. When width and height are not set, the size of the reference area is assumed. Whether to embed or link multimedia can be specified with axf:multimedia-treatment.
CAUTION: | In PDF, multimedia is embedded as a type of annotations. Specify axf:annotation-flags="Print" to print a poster image. |
---|
When axf:show-controls (or controls attribute in HTML <video>) is specified, a control bar is shown under the playing multimedia object. To prevent overlapping the control bar with another object, it is necessary to make enough space below the multimedia object.
CAUTION: | Whether the control bar is shown or not depends on the multimedia data, the viewer or the player. |
---|
The following shows the content types accepted as multimedia by default:
The additional content types other than these can be added by <multimedia> in the Option Setting File. The following example shows a combination of typical extensions and content types.
Extension | Content type |
---|---|
*.3g2 | video/x-msvideo |
*.3gp | video/x-msvideo |
*.aac | audio/basic |
*.aiff | audio/x-aiff |
*.asf | video/x-ms-asf |
*.au | audio/basic |
*.avi | video/x-ms-wm |
*.dv | video/x-dv |
*.f4v | video/mp4 |
*.flv | video/x-msvideo |
*.ivf | video/x-ivf |
*.m1v | video/x-mpeg |
*.m2v | video/x-mpeg |
*.m4a | audio/mp4 |
*.m4b | audio/x-m4b |
*.m4v | video/mp4 |
*.mid | audio/x-midi |
*.midi | |
*.mov | video/quicktime |
*.mp2 | audio/x-mpeg |
*.mp3 | audio/x-mp3 |
*.mp4 | video/mp4 |
*.mpe | video/mpeg |
*.mpeg | |
*.mpg | |
*.qt | video/quicktime |
*.swf | application/x-shockwave-flash |
*.wav | audio/x-wav |
*.wma | audio/x-ms-wma |
*.wmv | audio/x-ms-wmv |
*.wmx | audio/x-ms-wmx |
Whether these can be replayed correctly depends on the PDF viewer. When the shortage of players or shortage of codecs error occurs when replaying, it may be available to run again by introducing a corresponding player and codec.
Restrictions
The multimedia can be embedded as a rich media annotation (here we call such multimedia simply as the rich media). It does not require external players etc. for playback. Specify that it is rich media by axf:multimedia-treatment in <fo:external-graphic> as follows: In HTML, specify it by <object> or <video>. Also, there are differences in valid properties. For more details, see Images, Multimedia.
<fo:external-graphic src="video.mpg" content-type="video/mpeg" axf:multimedia-treatment="richmedia" axf:poster-image="poster.jpg" width="640pt" height="400pt"/>
The following multimedia can be embedded as the rich media.
Extension | Content type |
---|---|
*.3g2 | video/x-msvideo |
*.3gp | video/x-msvideo |
*.f4v | video/mp4 |
*.flv | video/x-msvideo |
*.m4v | video/mp4 |
*.mov | video/quicktime |
*.mp3 | audio/x-mp3 |
*.mp4 | video/mp4 |
*.swf | application/x-shockwave-flash |
Even though the container format is supported the video and audio codecs need to be compatible with Adobe Acrobat's flash player in order to play correctly.
Restrictions
In AH Formatter V7.0, when the language is specified in the root element of <fo:root> or <html>, it is outputted as a language information on PDF. When the language is not specified, if default-lang is specified to the Option Setting File, it is outputted as a language information on PDF.
With AH Formatter V7.0, High Compression Settings can be set to reduce the size of the output PDF file. The High Compression Settings can be set in Compression in PDF Option Setting Dialog in GUI. Note that the image quality will also be lowered according to the reduced PDF size. Setting values to be applied can be specified in color-compression-minimum, grayscale-compression-minimum and monochrome-compression-minimum, etc. in the Option Setting File. no-LT
In the High Compression Settings, default values are set as below:
<pdf-settings color-compression="auto2k" color-jpeg-quality="40" color-downsampling="bicubic" color-downsampling-target-dpi="150" color-downsampling-above-dpi="225" grayscale-compression="auto2k" grayscale-jpeg-quality="40" grayscale-downsampling="bicubic" grayscale-downsampling-target-dpi="150" grayscale-downsampling-above-dpi="225" monochrome-compression="zlib" monochrome-downsampling="bicubic" monochrome-downsampling-target-dpi="300" monochrome-downsampling-above-dpi="450" pass-through="none"/>
Compression results may vary depending on the factor such as a type, format, color space and compression ratio of the original image. The size may also be smaller if pass-through="all" is specified.