[ 
https://issues.apache.org/jira/browse/FOP-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865731#comment-15865731
 ] 

simon steiner commented on FOP-2662:
------------------------------------

Try
{code}
<?xml version="1.0" standalone="no"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
  xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page">
      <fo:region-body/>      
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:declarations>
    <x:xmpmeta xmlns:x="adobe:ns:meta/">
      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
        <rdf:Description rdf:about="" 
xmlns:dc="http://purl.org/dc/elements/1.1/";>
          <dc:title><rdf:Alt><rdf:li 
xml:lang="x-default">title</rdf:li></rdf:Alt></dc:title>
          <dc:creator><rdf:Seq><rdf:li>Document 
author</rdf:li></rdf:Seq></dc:creator>
          <dc:description><rdf:Alt><rdf:li xml:lang="x-default">Document 
subject</rdf:li></rdf:Alt></dc:description>
        </rdf:Description>
      </rdf:RDF>
    </x:xmpmeta>
  </fo:declarations>
  <fo:page-sequence master-reference="page">   
    <fo:flow flow-name="xsl-region-body" >    
              <fo:block font-family="Arial">test</fo:block>    
    </fo:flow>
  </fo:page-sequence>  
</fo:root>

{code}

> PDF with creator does not conform to PDF/A-1b although PDF/A-1b is requested
> ----------------------------------------------------------------------------
>
>                 Key: FOP-2662
>                 URL: https://issues.apache.org/jira/browse/FOP-2662
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 2.1
>         Environment: all
>            Reporter: Agneta Walterscheidt
>            Priority: Minor
>
> A PDF file that is created with FOP as PDF/A-1b does not conform to PDF/A-1b 
> when a creator is set in the FOUserAgent. This is due to the fact that the 
> XMPSchemaAdapter's allow a "compact" format which means that array elements 
> (sequence and bag) will only be written as such (i.e. within <rdf:Seq> and 
> <rdf:li> tags) when then array contains more than one element. The default is 
> compact=true and this is not changed by FOP's IFRenderer.
> This is wrong at least for the creator in PDF/A-1: the creator must be given 
> as one and only element of a sequence - see for instance 
> https://www.pdfa.org/wp-content/until2016_uploads/2011/08/tn0003_metadata_in_pdfa-1_2008-03-182.pdf:
> "Author
> If the Author entry (of PDF data type text string) is present in the document 
> information dictionary, the document’s Metadata must contain an equivalent 
> entry dc:creator of XMP data type seq ProperName where dc refers to the 
> Dublin Core schema (the prefix is actually arbitrary). While dc:creator is 
> defined as a seq type in XMP, in PDF/A-1 this sequence must contain exactly 
> one entry."



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to