You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pdfa.xml 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "document-v20.dtd">
  18. <document>
  19. <header>
  20. <title>Apache™ FOP: PDF/A (ISO 19005)</title>
  21. <version>$Revision$</version>
  22. <authors>
  23. <person name="Jeremias Märki" email="jeremias@apache.org"/>
  24. </authors>
  25. </header>
  26. <body>
  27. <section id="overview">
  28. <title>Overview</title>
  29. <p>
  30. PDF/A is a standard which turns PDF into an "electronic document file
  31. format for long-term preservation". PDF/A-1 is the first part of the
  32. standard and is documented in
  33. <a href="http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=38920&amp;ICS1=37&amp;ICS2=100&amp;ICS3=99">ISO 19005-1:2005(E)</a>.
  34. Work on PDF/A-2 is in progress at
  35. <a href="http://www.aiim.org/standards.asp?ID=25013">AIIM</a>.
  36. </p>
  37. <p>
  38. Design documentation on PDF/A can be found on FOP's Wiki on the
  39. <a href="http://wiki.apache.org/xmlgraphics-fop/PDFA1ConformanceNotes">PDFA1ConformanceNotes</a> page.
  40. </p>
  41. </section>
  42. <section id="status">
  43. <title>Implementation Status</title>
  44. <p>
  45. <strong>PDF/A-1b</strong> is implemented to the degree that FOP supports
  46. the creation of the elements described in ISO 19005-1.
  47. </p>
  48. <p>
  49. Tests have been performed against jHove and Adobe Acrobat 7.0.7 (Preflight function).
  50. FOP does not validate completely against Apago's PDF Appraiser. Reasons unknown due to
  51. lack of a full license to get a detailed error protocol.
  52. </p>
  53. <p>
  54. <strong>PDF/A-1a</strong> is based on PDF-A-1b and adds accessibility features
  55. (such as Tagged PDF). This format is available within the limitation described on
  56. the <a href="accessibility.html">Accessibility page</a>.
  57. </p>
  58. </section>
  59. <section id="command-line">
  60. <title>Usage (command line)</title>
  61. <p>
  62. To activate PDF/A-1b from the command-line, specify "-pdfprofile PDF/A-1b"
  63. as a parameter. If there is a violation of one of the validation rules for
  64. PDF/A, an error message is presented and the processing stops.
  65. </p>
  66. <p>
  67. PDF/A-1a is enabled by specifying "-pdfprofile PDF/A-1a".
  68. </p>
  69. </section>
  70. <section id="embedded">
  71. <title>Usage (embedded)</title>
  72. <p>
  73. When FOP is embedded in another Java application you can set a special option
  74. on the renderer options in the user agent to activate the PDF/A-1b profile.
  75. Here's an example:
  76. </p>
  77. <source><![CDATA[
  78. userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");
  79. Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
  80. [..]]]></source>
  81. <p>
  82. If one of the validation rules of PDF/A is violated, an PDFConformanceException
  83. (descendant of RuntimeException) is thrown.
  84. </p>
  85. <p>
  86. For PDF/A-1a, just use the string "PDF/A-1a" instead of "PDF/A-1b".
  87. </p>
  88. </section>
  89. <section id="rules">
  90. <title>PDF/A in Action</title>
  91. <p>
  92. There are a number of things that must be looked after if you activate a PDF/A
  93. profile. If you receive a PDFConformanceException, have a look at the following
  94. list (not necessarily comprehensive):
  95. </p>
  96. <ul>
  97. <li>
  98. Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica)
  99. you need to obtain a license for them and embed them like any other font.
  100. </li>
  101. <li>
  102. Don't use PDF encryption. PDF/A doesn't allow it.
  103. </li>
  104. <li>
  105. Don't use CMYK images without an ICC color profile. PDF/A doesn't allow mixing
  106. color spaces and FOP currently only properly supports the sRGB color space. Please
  107. note that FOP embeds a standard sRGB ICC profile (sRGB IEC61966-2.1) as the
  108. primary output intent for the PDF if no other output intent has been specified
  109. in the configuration.
  110. </li>
  111. <li>
  112. Don't use non-RGB colors in SVG images. Same issue as with CMYK images.
  113. </li>
  114. <li>
  115. Don't use EPS graphics with fo:external-graphic. Embedding EPS graphics in PDF
  116. is deprecated since PDF 1.4 and prohibited by PDF/A.
  117. </li>
  118. <li>
  119. PDF is forced to version 1.4 if PDF/A-1 is activated.
  120. </li>
  121. <li>
  122. No filter must be specified explicitely for metadata objects. Metadata must be
  123. embedded in clear text so non-PDF-aware applications can extract the XMP metadata.
  124. </li>
  125. </ul>
  126. <note>
  127. There are additional requirements if you want to enabled PDF/A-1a (Tagged PDF). This is
  128. particularly the specification of the natural language and alternative descriptions for
  129. images. Please refer to the <a href="accessibility.html">Accessibility page</a> for details.
  130. </note>
  131. </section>
  132. <section id="profile-compatibility">
  133. <title>PDF profile compatibility</title>
  134. <p>
  135. The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" (or "PDF/A-1a") are compatible and can
  136. both be activated at the same time.
  137. </p>
  138. </section>
  139. <section id="interoperability">
  140. <title>Interoperability</title>
  141. <p>
  142. There has been some confusion about the namespace for the PDF/A indicator in the XMP
  143. metadata. At least three variants have been seen in the wild:
  144. </p>
  145. <table>
  146. <tr>
  147. <td>http://www.aiim.org/pdfa/ns/id.html</td>
  148. <td><strong>obsolete</strong>, from an early draft of ISO-19005-1, used by Adobe Acrobat 7.x</td>
  149. </tr>
  150. <tr>
  151. <td>http://www.aiim.org/pdfa/ns/id</td>
  152. <td><strong>obsolete</strong>, found in the original ISO 19005-1:2005 document</td>
  153. </tr>
  154. <tr>
  155. <td>http://www.aiim.org/pdfa/ns/id/</td>
  156. <td><strong>correct</strong>, found in the technical corrigendum 1 of ISO 19005-1:2005</td>
  157. </tr>
  158. </table>
  159. <p>
  160. If you get an error validating a PDF/A file in Adobe Acrobat 7.x it doesn't mean that
  161. FOP did something wrong. It's Acrobat that is at fault. This is fixed in Adobe Acrobat 8.x
  162. which uses the correct namespace as described in the technical corrigendum 1.
  163. </p>
  164. </section>
  165. </body>
  166. </document>