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 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" 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>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. <warning>
  30. Support for PDF/A is available beginning with version 0.92.
  31. </warning>
  32. <p>
  33. PDF/A is a standard which turns PDF into an "electronic document file
  34. format for long-term preservation". PDF/A-1 is the first part of the
  35. standard and is documented in
  36. <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>.
  37. Work on PDF/A-2 is in progress at
  38. <a href="http://www.aiim.org/standards.asp?ID=25013">AIIM</a>.
  39. </p>
  40. <p>
  41. Design documentation on PDF/A can be found on FOP's Wiki on the
  42. <a href="http://wiki.apache.org/xmlgraphics-fop/PDFA1ConformanceNotes">PDFA1ConformanceNotes</a> page.
  43. </p>
  44. </section>
  45. <section id="status">
  46. <title>Implementation Status</title>
  47. <p>
  48. <strong>PDF/A-1b</strong> is implemented to the degree that FOP supports
  49. the creation of the elements described in ISO 19005-1.
  50. </p>
  51. <p>
  52. Tests have been performed against jHove and Adobe Acrobat 7.0.7 (Preflight function).
  53. FOP does not validate completely against Apago's PDF Appraiser. Reasons unknown due to
  54. lack of a full license to get a detailed error protocol.
  55. </p>
  56. <p>
  57. <strong>PDF/A-1a</strong> is not implemented, yet. This is mostly because of the requirement
  58. for tagged PDF which is not available in FOP, yet.
  59. </p>
  60. </section>
  61. <section id="command-line">
  62. <title>Usage (command line)</title>
  63. <p>
  64. To activate PDF/A-1b from the command-line, specify "-pdfprofile PDF/A-1b"
  65. as a parameter. If there is a violation of one of the validation rules for
  66. PDF/A, an error message is presented and the processing stops.
  67. </p>
  68. </section>
  69. <section id="embedded">
  70. <title>Usage (embedded)</title>
  71. <p>
  72. When FOP is embedded in another Java application you can set a special option
  73. on the renderer options in the user agent to activate the PDF/A-1b profile.
  74. Here's an example:
  75. </p>
  76. <source><![CDATA[
  77. userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");
  78. Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
  79. [..]]]></source>
  80. <p>
  81. If one of the validation rules of PDF/A is violated, an PDFConformanceException
  82. (descendant of RuntimeException) is thrown.
  83. </p>
  84. </section>
  85. <section id="rules">
  86. <title>PDF/A in Action</title>
  87. <p>
  88. There are a number of things that must be looked after if you activate a PDF/A
  89. profile. If you receive a PDFConformanceException, have a look at the following
  90. list (not necessarily comprehensive):
  91. </p>
  92. <ul>
  93. <li>
  94. Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica)
  95. you need to obtain a license for them and embed them like any other font.
  96. </li>
  97. <li>
  98. Don't use PDF encryption. PDF/A doesn't allow it.
  99. </li>
  100. <li>
  101. Don't use CMYK images without an ICC color profile. PDF/A doesn't allow mixing
  102. color spaces and FOP currently only properly supports the sRGB color space. Please
  103. note that FOP embeds a standard sRGB ICC profile (sRGB IEC61966-2.1) as the
  104. primary output intent for the PDF if no other output intent has been specified
  105. in the configuration.
  106. </li>
  107. <li>
  108. Don't use non-RGB colors in SVG images. Same issue as with CMYK images.
  109. </li>
  110. <li>
  111. Don't use EPS graphics with fo:external-graphic. Embedding EPS graphics in PDF
  112. is deprecated since PDF 1.4 and prohibited by PDF/A.
  113. </li>
  114. <li>
  115. PDF is forced to version 1.4 if PDF/A-1 is activated.
  116. </li>
  117. <li>
  118. No filter must be specified explicitely for metadata objects. Metadata must be
  119. embedded in clear text so non-PDF-aware applications can extract the XMP metadata.
  120. </li>
  121. </ul>
  122. </section>
  123. <section id="profile-compatibility">
  124. <title>PDF profile compatibility</title>
  125. <p>
  126. The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" are compatible and can both be
  127. activated at the same time.
  128. </p>
  129. </section>
  130. <section id="interoperability">
  131. <title>Interoperability</title>
  132. <p>
  133. There has been some confusion about the namespace for the PDF/A indicator in the XMP
  134. metadata. At least three variants have been seen in the wild:
  135. </p>
  136. <table>
  137. <tr>
  138. <td>http://www.aiim.org/pdfa/ns/id.html</td>
  139. <td><strong>obsolete</strong>, from an early draft of ISO-19005-1, used by Adobe Acrobat 7.x</td>
  140. </tr>
  141. <tr>
  142. <td>http://www.aiim.org/pdfa/ns/id</td>
  143. <td><strong>obsolete</strong>, found in the original ISO 19005-1:2005 document</td>
  144. </tr>
  145. <tr>
  146. <td>http://www.aiim.org/pdfa/ns/id/</td>
  147. <td><strong>correct</strong>, found in the technical corrigendum 1 of ISO 19005-1:2005</td>
  148. </tr>
  149. </table>
  150. <p>
  151. If you get an error validating a PDF/A file in Adobe Acrobat 7.x it doesn't mean that
  152. FOP did something wrong. It's Acrobat that is at fault. This is fixed in Adobe Acrobat 8.x
  153. which uses the correct namespace as described in the technical corrigendum 1.
  154. </p>
  155. </section>
  156. </body>
  157. </document>