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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" standalone="no"?>
  2. <!--
  3. Copyright 2006 The Apache Software Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <!-- $Id$ -->
  15. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "document-v20.dtd">
  16. <document>
  17. <header>
  18. <title>PDF/A (ISO 19005)</title>
  19. <version>$Revision: 389563 $</version>
  20. <authors>
  21. <person name="Jeremias Märki" email="jeremias@apache.org"/>
  22. </authors>
  23. </header>
  24. <body>
  25. <section id="overview">
  26. <title>Overview</title>
  27. <warning>
  28. Support for PDF/A is available beginning with version 0.92.
  29. </warning>
  30. <p>
  31. PDF/A is a standard which turns PDF into an "electronic document file
  32. format for long-term preservation". PDF/A-1 is the first part of the
  33. standard and is documented in
  34. <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>.
  35. Work on PDF/A-2 is in progress at
  36. <a href="http://www.aiim.org/standards.asp?ID=25013">AIIM</a>.
  37. </p>
  38. <p>
  39. Design documentation on PDF/A can be found on FOP's Wiki on the
  40. <a href="http://wiki.apache.org/xmlgraphics-fop/PDFA1ConformanceNotes">PDFA1ConformanceNotes</a> page.
  41. </p>
  42. </section>
  43. <section id="status">
  44. <title>Implementation Status</title>
  45. <p>
  46. <strong>PDF/A-1b</strong> is implemented to the degree that FOP supports
  47. the creation of the elements described in ISO 19005-1.
  48. </p>
  49. <p>
  50. There is a restriction with
  51. XMP metadata. If an XMP metadata packet is present in the fo:declarations
  52. element of an FO file, the values from the XMP packet are not synchronized
  53. with the Info PDF object as is mandated by chapter 6.7.3 of the ISO document.
  54. However, if no XMP packet is supplied FOP automatically generates an XMP
  55. packet from the values in the Info PDF object.
  56. </p>
  57. <p>
  58. Tests have been performed against jHove and Adobe Acrobat 7.0.7 (Preflight function).
  59. </p>
  60. <p>
  61. <strong>PDF/A-1a</strong> is not implemented, yet. This is mostly because of the requirement
  62. for tagged PDF which is not available in FOP, yet.
  63. </p>
  64. </section>
  65. <section id="command-line">
  66. <title>Usage (command line)</title>
  67. <p>
  68. If you specify "-pdfa1b" instead of "-pdf" for the output format on the
  69. command line, support for PDF/A-1b is activated. If there is a violation of
  70. one of the validation rules for PDF/A, an error message is presented and the
  71. processing stops.
  72. </p>
  73. </section>
  74. <section id="embedded">
  75. <title>Usage (embedded)</title>
  76. <p>
  77. When FOP is embedded in another Java application you can set a special option
  78. on the renderer options in the user agent to activate the PDF/A-1b profile.
  79. Here's an example:
  80. </p>
  81. <source><![CDATA[
  82. FOUserAgent userAgent = fopFactory.newFOUserAgent();
  83. userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");
  84. Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
  85. [..]]]></source>
  86. <p>
  87. If one of the validation rules of PDF/A is violated, an PDFConformanceException
  88. (descendant of RuntimeException) is thrown.
  89. </p>
  90. </section>
  91. <section id="rules">
  92. <title>PDF/A in Action</title>
  93. <p>
  94. There are a number of things that must be looked after if you activate a PDF/A
  95. profile. If you receive a PDFConformanceException, have a look at the following
  96. list (not necessarily comprehensive):
  97. </p>
  98. <ul>
  99. <li>
  100. Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica)
  101. you need to obtain a license for them and embed them like any other font.
  102. </li>
  103. <li>
  104. Don't use PDF encryption. PDF/A doesn't allow it.
  105. </li>
  106. <li>
  107. Don't use CMYK images without an ICC color profile. PDF/A doesn't allow mixing
  108. color spaces and FOP currently only properly supports the sRGB color space. Please
  109. note that FOP embeds a standard sRGB ICC profile (sRGB IEC61966-2.1) as the
  110. primary output intent for the PDF.
  111. </li>
  112. <li>
  113. Don't use non-RGB colors in SVG images. Same issue as with CMYK images.
  114. </li>
  115. <li>
  116. Don't use EPS graphics with fo:external-graphic. Embedding EPS graphics in PDF
  117. is deprecated since PDF 1.4 and prohibited by PDF/A.
  118. </li>
  119. <li>
  120. PDF is forced to version 1.4 if PDF/A-1 is activated.
  121. </li>
  122. <li>
  123. No filter must be specified explicitely for metadata objects. Metadata must be
  124. embedded in clear text so non-PDF-aware applications can extract the XMP metadata.
  125. </li>
  126. </ul>
  127. </section>
  128. </body>
  129. </document>