simon steiner commented on FOP-2662:

<?xml version="1.0" standalone="no"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
    <fo:simple-page-master master-name="page">
    <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="" 
          <dc:description><rdf:Alt><rdf:li xml:lang="x-default">Document 
  <fo:page-sequence master-reference="page">   
    <fo:flow flow-name="xsl-region-body" >    
              <fo:block font-family="Arial">test</fo:block>    


> 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

Reply via email to