RE: Namespaces are dropped in XMP stream. XML invalid

Joao Andre Goncalves <[email protected]> Wed, 6 Nov 2024 21:26:24 +0000
Newsgroups gmane.text.xml.fop.user
Message-ID <AM9PR04MB8604BAB25EC743ED42EBE607DD532@AM9PR04MB8604.eurprd04.prod.outlook.com>
--_000_AM9PR04MB8604BAB25EC743ED42EBE607DD532AM9PR04MB8604eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

can you share the full FO? I tried to replicate your issue but my file is c=
ompatible with PDFA 3b. I used https://avepdf.com/en/pdfa-validation to ver=
ify the pdf.

Regards

From: J=F6rn Willh=F6ft <[email protected]>
Sent: Tuesday, November 5, 2024 5:26 AM
To: [email protected]
Subject: Namespaces are dropped in XMP stream. XML invalid

You don't often get email from [email protected]<mailto:jwi@willhoeft-it=
.com>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentific=
ation>
Dear list members,

I need to create PDF/A-3B compliant documents with special references to an=
 embedded document (ZUGFeRD compliant invoices). Currently, this fails in V=
eraPDF with some very vague and rather misleading validation errors:
* "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 5
All metadata streams present in the PDF shall conform to the XMP Specificat=
ion. The XMP package must be encoded as UTF-8"
* "Specification: ISO 19005-3:2012, Clause: 6.6.4, Test number: 1
The PDF/A version and conformance level of a file shall be specified using =
the PDF/A Identification extension schema"
* "Specification: ISO 19005-3:2012, Clause: 6.6.2.1, Test number: 4
All metadata streams present in the PDF shall conform to the XMP Specificat=
ion. All content of all XMP packets shall be well-formed, as defined by Ext=
ensible Markup Language (XML) 1.0 (Third Edition), 2.1, and the RDF/XML Syn=
tax Specification (Revised)"

I finally tracked this down to FOP, which dropped some necessary namespaces=
 in the created XMP stream. This can be reproduced with the corresponding e=
xample from the FOP homepage (https://xmlgraphics.apache.org/fop/2.10/metad=
ata.html). E.g. here is the fo:

<fo:simple-page-master master-name=3D"simple">

  <fo:region-body/>

  <pdf:page page-numbers=3D"*">

    <x:xmpmeta xmlns:x=3D"adobe:ns:meta/">

      <rdf:RDF xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" xm=
lns:abc=3D"http://www.abc.de/abc/">

        <rdf:Description rdf:about=3D"" abc:def=3D"val"/>

        <rdf:Description rdf:about=3D"" xmlns:pdfaExtension=3D"http://www.a=
iim.org/pdfa/ns/extension/"

                         xmlns:pdfaSchema=3D"http://www.aiim.org/pdfa/ns/sc=
hema#"

                         xmlns:pdfaProperty=3D"http://www.aiim.org/pdfa/ns/=
property#">

          <pdfaExtension:schemas>

            <rdf:Bag>

              <rdf:li rdf:parseType=3D"Resource">

                <pdfaSchema:property>

                  <rdf:Seq>

                    <rdf:li rdf:parseType=3D"Resource">

                      <pdfaProperty:name>split</pdfaProperty:name>

                    </rdf:li>

                  </rdf:Seq>

                </pdfaSchema:property>

              </rdf:li>

            </rdf:Bag>

          </pdfaExtension:schemas>

        </rdf:Description>

      </rdf:RDF>

    </x:xmpmeta>

  </pdf:page>

</fo:simple-page-master>
And this is returned when I run pdfinfo -meta example.pdf:
<?xpacket begin=3D"" id=3D"W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x=3D=
"adobe:ns:meta/">
  <rdf:RDF xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:RDF xmlns:abc=3D"http://www.abc.de/abc/" abc:def=3D"val" rdf:abou=
t=3D""/>
     <rdf:RDF xmlns:dc=3D"http://purl.org/dc/elements/1.1/" rdf:about=3D"">
        <dc:format>application/pdf</dc:format>
        <dc:language>
           <rdf:Bag>
              <rdf:li>x-unknown</rdf:li>
           </rdf:Bag>
        </dc:language>
        <dc:date>
           <rdf:Seq>
              <rdf:li>2024-11-05T11:46:27+01:00</rdf:li>
           </rdf:Seq>
        </dc:date>
     </rdf:RDF>
     <rdf:RDF xmlns:pdf=3D"http://ns.adobe.com/pdf/1.3/" rdf:about=3D"">
        <pdf:Producer>Apache FOP Version 2.10</pdf:Producer>
        <pdf:PDFVersion>1.4</pdf:PDFVersion>
     </rdf:RDF>
     <rdf:RDF xmlns:pdfaExtension=3D"http://www.aiim.org/pdfa/ns/extension/=
" rdf:about=3D"">
        <pdfaExtension:schemas>
           <rdf:Bag>
              <rdf:li rdf:parseType=3D"Resource">
                 <pdfaSchema:property>
                    <rdf:Seq>
                       <rdf:li rdf:parseType=3D"Resource">
                          <pdfaProperty:name>split</pdfaProperty:name>
                       </rdf:li>
                    </rdf:Seq>
                 </pdfaSchema:property>
              </rdf:li>
           </rdf:Bag>
        </pdfaExtension:schemas>
     </rdf:RDF>
     <rdf:RDF xmlns:pdfaid=3D"http://www.aiim.org/pdfa/ns/id/" rdf:about=3D=
"">
        <pdfaid:conformance>B</pdfaid:conformance>
        <pdfaid:part>3</pdfaid:part>
     </rdf:RDF>
     <rdf:RDF xmlns:xmp=3D"http://ns.adobe.com/xap/1.0/" rdf:about=3D"">
        <xmp:MetadataDate>2024-11-05T11:46:27+01:00</xmp:MetadataDate>
        <xmp:CreateDate>2024-11-05T11:46:27+01:00</xmp:CreateDate>
     </rdf:RDF>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end=3D"r"?>
As you can see, the two namespaces xmlns:pdfaSchema=3D"http://www.aiim.org/=
pdfa/ns/schema#"   and xmlns:pdfaProperty=3D"http://www.aiim.org/pdfa/ns/pr=
operty#"
are dropped from the metadata, while the prefixes are still used. Thus, the=
 XML is invalid and so is the PDF/A.
This is pretty unfortunate, as I don't have any workaround for this. I am u=
sing Apache FOP 2.10 in the context of Apache Camel 4.8.1. Any help would b=
e greatly appreciated.


With kind regards,

   J=F6rn Willh=F6ft

________________________________
Joao Andre Goncalves
Customer Developer

t | m 07733161880
[email protected]
smartcommunications.com<https://www.smartcommunications.com/>

[https://scale.smartcommunications.com/rs/041-BQO-927/images/024_Esignature=
-2024-Benchmark.png?version=3D0]<https://www.smartcommunications.com/resour=
ces/benchmark-report/?utm_source=3Doutlook&utm_medium=3Demail&utm_campaign=
=3Dbenchmark_report_2024_webpage>

The largest study of its kind! Unlock unparalleled insights into customer p=
references and stay ahead in today's market. Download now!<https://www.smar=
tcommunications.com/resources/benchmark-report/?utm_source=3Doutlook&utm_me=
dium=3Demail&utm_campaign=3Dbenchmark_report_2024_webpage>   Smart Communic=
ations is a trading name of SmartComms SC Limited which is registered in En=
gland under No. 4303041 whose registered office is at Suite 23, LCLB, 95 Mo=
rtimer Street, London, W1W 7GB. Please consider the environment before prin=
ting. The contents of this e-mail are intended for the named addressee only=
. It contains confidential information. Unless you are the named addressee =
or an authorized designee, you may not copy or use it, or disclose it to an=
yone else. If you received it in error please notify us immediately and the=
n destroy it. Smart Communications will process your data as described in t=
he Smart Communications' External Privacy Policy.<https://www.smartcommunic=
ations.com/external-privacy-policy/>

Follow us on LinkedIn<https://www.linkedin.com/company/15166060/admin/> and=
 Twitter<https://twitter.com/ccminnovators?lang=3Den>

--_000_AM9PR04MB8604BAB25EC743ED42EBE607DD532AM9PR04MB8604eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:12.0pt;
	font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	font-size:10.0pt;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Consolas",serif;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-GB" link=3D"blue" vlink=3D"purple" style=3D"word-wrap:brea=
k-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language=
:EN-US">Hi,
<br>
<br>
can you share the full FO? I tried to replicate your issue but my file is c=
ompatible with PDFA 3b. I used
<a href=3D"https://avepdf.com/en/pdfa-validation">https://avepdf.com/en/pdf=
a-validation</a> to verify the pdf.<br>
<br>
Regards<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language=
:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo=
nt-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang=3D"EN-=
US" style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> =
J=F6rn Willh=F6ft &lt;[email protected]&gt;
<br>
<b>Sent:</b> Tuesday, November 5, 2024 5:26 AM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> Namespaces are dropped in XMP stream. XML invalid<o:p></o:p=
></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" align=3D"left" width=3D"100%" style=3D"width:100.0%">
<tbody>
<tr>
<td width=3D"0" style=3D"width:.3pt;background:#A6A6A6;padding:5.25pt 1.5pt=
 5.25pt 1.5pt">
</td>
<td width=3D"100%" style=3D"width:100.0%;background:#EAEAEA;padding:5.25pt =
3.75pt 5.25pt 11.25pt;aspect-ratio: revert !important;background:revert !im=
portant;block-size: revert !important;border:revert !important;bottom: reve=
rt !important;color:revert !important;color-scheme: revert !important;conte=
nt-visibility: revert !important;cursor:revert !important;direction:revert =
!important;display:revert !important;font-size:revert !important;height:rev=
ert !important;hyphens: revert !important;letter-spacing:revert !important;=
line-height:revert !important;margin:revert !important;opacity: revert !imp=
ortant;order: revert !important;outline: revert !important;overflow:revert =
!important;padding:revert !important;position:revert !important;resize: rev=
ert !important;rotate: revert !important;scale: revert !important;tab-size:=
 revert !important;table-layout:revert !important;text-align:revert !import=
ant;text-indent:revert !important;text-orientation: revert !important;text-=
overflow: revert !important;text-shadow:revert !important;text-transform:re=
vert !important;text-wrap: revert !important;top:revert !important;transiti=
on: revert !important;user-select: revert !important;vertical-align:revert =
!important;visibility:revert !important;white-space:revert !important;width=
:revert !important;word-break:revert !important;word-spacing:revert !import=
ant;writing-mode:revert !important;zoom: revert !important">
<div>
<p class=3D"MsoNormal" style=3D"mso-element:frame;mso-element-frame-hspace:=
2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-el=
ement-anchor-horizontal:column;mso-height-rule:exactly">
<span style=3D"font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;=
color:#212121">You don't often get email from
<a href=3D"mailto:[email protected]">[email protected]</a>. <a href=
=3D"https://aka.ms/LearnAboutSenderIdentification">
Learn why this is important</a> <o:p></o:p></span></p>
</div>
</td>
<td width=3D"75" style=3D"width:56.25pt;background:#EAEAEA;padding:5.25pt 3=
.75pt 5.25pt 3.75pt;aspect-ratio: revert !important;background:revert !impo=
rtant;block-size: revert !important;border:revert !important;bottom: revert=
 !important;color:revert !important;color-scheme: revert !important;content=
-visibility: revert !important;cursor:revert !important;direction:revert !i=
mportant;display:revert !important;font-size:revert !important;height:rever=
t !important;hyphens: revert !important;letter-spacing:revert !important;li=
ne-height:revert !important;margin:revert !important;opacity: revert !impor=
tant;order: revert !important;outline: revert !important;overflow:revert !i=
mportant;padding:revert !important;position:revert !important;resize: rever=
t !important;rotate: revert !important;scale: revert !important;tab-size: r=
evert !important;table-layout:revert !important;text-align:revert !importan=
t;text-indent:revert !important;text-orientation: revert !important;text-ov=
erflow: revert !important;text-shadow:revert !important;text-transform:reve=
rt !important;text-wrap: revert !important;top:revert !important;transition=
: revert !important;user-select: revert !important;vertical-align:revert !i=
mportant;visibility:revert !important;white-space:revert !important;width:r=
evert !important;word-break:revert !important;word-spacing:revert !importan=
t;writing-mode:revert !important;zoom: revert !important;align: left !impor=
tant">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class=3D"MsoNormal">Dear list members, <o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">&nbsp; <o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I need to create PDF/A-3B compliant documents with s=
pecial references to an embedded document (ZUGFeRD compliant invoices). Cur=
rently, this fails in VeraPDF with some very vague and rather misleading va=
lidation errors:
<o:p></o:p></p>
</div>
<div>
<div>
<p class=3D"MsoNormal">* &quot;Specification: ISO 19005-3:2012, Clause: 6.6=
.2.1, Test number: 5
<br>
All metadata streams present in the PDF shall conform to the XMP Specificat=
ion. The XMP package must be encoded as UTF-8&quot;
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">* &quot;Specification: ISO 19005-3:2012, Clause: 6.6=
.4, Test number: 1
<br>
The PDF/A version and conformance level of a file shall be specified using =
the PDF/A Identification extension schema&quot;
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">* &quot;Specification: ISO 19005-3:2012, Clause: 6.6=
.2.1, Test number: 4
<br>
All metadata streams present in the PDF shall conform to the XMP Specificat=
ion. All content of all XMP packets shall be well-formed, as defined by Ext=
ensible Markup Language (XML) 1.0 (Third Edition), 2.1, and the RDF/XML Syn=
tax Specification (Revised)&quot;
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">&nbsp; <o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I finally tracked this down to FOP, which dropped so=
me necessary namespaces in the created XMP stream. This can be reproduced w=
ith the corresponding example from the FOP homepage (<a href=3D"https://xml=
graphics.apache.org/fop/2.10/metadata.html">https://xmlgraphics.apache.org/=
fop/2.10/metadata.html</a>).
 E.g. here is the fo: <o:p></o:p></p>
</div>
<div>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&lt;fo:simple-=
page-master master-name=3D&quot;simple&quot;&gt;<o:p></o:p></span></em></pr=
e>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp; &lt;fo:=
region-body/&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp; &lt;pdf=
:page page-numbers=3D&quot;*&quot;&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp; &lt;x:xmpmeta xmlns:x=3D&quot;adobe:ns:meta/&quot;&gt;<o:p></o:p></spa=
n></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; &lt;rdf:RDF xmlns:rdf=3D&quot;<a href=3D"http://www.w3.org=
/1999/02/22-rdf-syntax-ns#"><span style=3D"font-style:normal">http://www.w3=
.org/1999/02/22-rdf-syntax-ns#</span></a>&quot; xmlns:abc=3D&quot;<a href=
=3D"http://www.abc.de/abc/"><span style=3D"font-style:normal">http://www.ab=
c.de/abc/</span></a>&quot;&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Description rdf:about=3D&quot;&quot; a=
bc:def=3D&quot;val&quot;/&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Description rdf:about=3D&quot;&quot; x=
mlns:pdfaExtension=3D&quot;<a href=3D"http://www.aiim.org/pdfa/ns/extension=
/"><span style=3D"font-style:normal">http://www.aiim.org/pdfa/ns/extension/=
</span></a>&quot;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:pdfaSchema=3D=
&quot;<a href=3D"http://www.aiim.org/pdfa/ns/schema#"><span style=3D"font-s=
tyle:normal">http://www.aiim.org/pdfa/ns/schema#</span></a>&quot;<o:p></o:p=
></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:pdfaProperty=
=3D&quot;<a href=3D"http://www.aiim.org/pdfa/ns/property#"><span style=3D"f=
ont-style:normal">http://www.aiim.org/pdfa/ns/property#</span></a>&quot;&gt=
;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pdfaExtension:schemas&gt;<o:p>=
</o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Bag&gt;<o:p></=
o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:li=
 rdf:parseType=3D&quot;Resource&quot;&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; &lt;pdfaSchema:property&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;rdf:Seq&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:li rdf:parseType=3D&quot;Resource&quot;&g=
t;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pdfaProperty:name&gt;split&lt;/pd=
faProperty:name&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:li&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&lt;/rdf:Seq&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; &lt;/pdfaSchema:property&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:l=
i&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:Bag&gt;<o:p><=
/o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/pdfaExtension:schemas&gt;<o:p=
></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:Description&gt;<o:p></o:p></span></em=
></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; &lt;/rdf:RDF&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&n=
bsp; &lt;/x:xmpmeta&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&nbsp; &lt;/pd=
f:page&gt;<o:p></o:p></span></em></pre>
<pre><em><span style=3D"font-family:&quot;Courier New&quot;">&lt;/fo:simple=
-page-master&gt;<o:p></o:p></span></em></pre>
</div>
<div>
<p class=3D"MsoNormal">And this is returned when I run pdfinfo -meta exampl=
e.pdf: <o:p>
</o:p></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-f=
amily:&quot;Courier New&quot;;color:black;background:white">&lt;?xpacket be=
gin=3D&quot;&quot; id=3D&quot;W5M0MpCehiHzreSzNTczkc9d&quot;?&gt;&lt;x:xmpm=
eta xmlns:x=3D&quot;adobe:ns:meta/&quot;&gt;
</span><span style=3D"font-family:&quot;Courier New&quot;"><br>
&nbsp;&nbsp;&lt;rdf:RDF xmlns:rdf=3D&quot;<a href=3D"http://www.w3.org/1999=
/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>&quot=
;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:abc=3D&quot;<a href=3D"http=
://www.abc.de/abc/">http://www.abc.de/abc/</a>&quot; abc:def=3D&quot;val&qu=
ot; rdf:about=3D&quot;&quot;/&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:dc=3D&quot;<a href=3D"http:=
//purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>&quot; rdf=
:about=3D&quot;&quot;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dc:format&gt;applicatio=
n/pdf&lt;/dc:format&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dc:language&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:B=
ag&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&lt;rdf:li&gt;x-unknown&lt;/rdf:li&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:=
Bag&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dc:language&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dc:date&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:S=
eq&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&lt;rdf:li&gt;2024-11-05T11:46:27+01:00&lt;/rdf:li&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:=
Seq&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dc:date&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:pdf=3D&quot;<a href=3D"http=
://ns.adobe.com/pdf/1.3/">http://ns.adobe.com/pdf/1.3/</a>&quot; rdf:about=
=3D&quot;&quot;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdf:Producer&gt;Apache =
FOP Version 2.10&lt;/pdf:Producer&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdf:PDFVersion&gt;1.4&l=
t;/pdf:PDFVersion&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:pdfaExtension=3D&quot;<a hr=
ef=3D"http://www.aiim.org/pdfa/ns/extension/">http://www.aiim.org/pdfa/ns/e=
xtension/</a>&quot; rdf:about=3D&quot;&quot;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdfaExtension:schemas&g=
t; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:B=
ag&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&lt;rdf:li rdf:parseType=3D&quot;Resource&quot;&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdfaSchema:property&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:Seq&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:li r=
df:parseType=3D&quot;Resource&quot;&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&lt;pdfaProperty:name&gt;split&lt;/pdfaProperty:name&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:li&=
gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:Seq&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/pdfaSchema:property&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&lt;/rdf:li&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:=
Bag&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/pdfaExtension:schemas&=
gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:pdfaid=3D&quot;<a href=3D"h=
ttp://www.aiim.org/pdfa/ns/id/">http://www.aiim.org/pdfa/ns/id/</a>&quot; r=
df:about=3D&quot;&quot;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdfaid:conformance&gt;B=
&lt;/pdfaid:conformance&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pdfaid:part&gt;3&lt;/pd=
faid:part&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rdf:RDF xmlns:xmp=3D&quot;<a href=3D"http=
://ns.adobe.com/xap/1.0/">http://ns.adobe.com/xap/1.0/</a>&quot; rdf:about=
=3D&quot;&quot;&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xmp:MetadataDate&gt;202=
4-11-05T11:46:27+01:00&lt;/xmp:MetadataDate&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xmp:CreateDate&gt;2024-=
11-05T11:46:27+01:00&lt;/xmp:CreateDate&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&nbsp;&nbsp;&lt;/rdf:RDF&gt; <br>
&lt;/x:xmpmeta&gt; <br>
&lt;?xpacket end=3D&quot;r&quot;?&gt;</span><o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">As you can see, the two namespaces <em><span style=
=3D"font-family:&quot;Aptos&quot;,sans-serif">xmlns:pdfaSchema=3D&quot;<a h=
ref=3D"http://www.aiim.org/pdfa/ns/schema#"><span style=3D"font-style:norma=
l">http://www.aiim.org/pdfa/ns/schema#</span></a>&quot;&nbsp;&nbsp; and xml=
ns:pdfaProperty=3D&quot;<a href=3D"http://www.aiim.org/pdfa/ns/property#"><=
span style=3D"font-style:normal">http://www.aiim.org/pdfa/ns/property#</spa=
n></a>&quot;</span></em>
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">are dropped from the metadata, while the prefixes ar=
e still used. Thus, the XML is invalid and so is the PDF/A.
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">This is pretty unfortunate, as I don't have any work=
around for this. I am using Apache FOP 2.10 in the context of Apache Camel =
4.8.1. Any help would be greatly appreciated.
<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">&nbsp; <o:p></o:p></p>
</div>
</div>
<div>
<p>With kind regards,<o:p></o:p></p>
<p>&nbsp;&nbsp; J=F6rn Willh=F6ft<o:p></o:p></p>
</div>
</div>
</div>
<style type=3D"text/css">=0A=
a:link {color:#20407f;text-decoration:none;}=0A=
a:visited {color:#20407f;text-decoration:none;}=0A=
</style>
<table style=3D"width:400px">
<tbody>
<tr>
<td colspan=3D"2">
<hr size=3D"4" color=3D"fec432" width=3D"30%" align=3D"left">
</td>
</tr>
<tr>
<td width=3D"65%" ;=3D"" style=3D"FONT-FAMILY: Arial Black; COLOR: #20407f;=
 FONT-SIZE: 11px">
Joao Andre Goncalves<br>
Customer Developer<br>
<br>
</td>
</tr>
<tr>
<td style=3D"FONT-FAMILY: Arial; COLOR: #20407f; FONT-SIZE: 9px">t | m 0773=
3161880<br>
[email protected]<br>
<a href=3D"https://www.smartcommunications.com/">smartcommunications.com</a=
><br>
<br>
</td>
</tr>
</tbody>
</table>
<table style=3D"width:400px">
<tbody>
<tr>
<td width=3D"100%" ;=3D"" colspan=3D"2"><a href=3D"https://www.smartcommuni=
cations.com/resources/benchmark-report/?utm_source=3Doutlook&amp;utm_medium=
=3Demail&amp;utm_campaign=3Dbenchmark_report_2024_webpage"><img src=3D"http=
s://scale.smartcommunications.com/rs/041-BQO-927/images/024_Esignature-2024=
-Benchmark.png?version=3D0" width=3D"" 450=3D"" height=3D"160"></a><br>
<br>
</td>
</tr>
<tr>
<td width=3D"28%" ;=3D"" style=3D"FONT-FAMILY: Arial Black; COLOR: #20407f;=
 FONT-SIZE: 10px">
<a href=3D"https://www.smartcommunications.com/resources/benchmark-report/?=
utm_source=3Doutlook&amp;utm_medium=3Demail&amp;utm_campaign=3Dbenchmark_re=
port_2024_webpage">The largest study of its kind! Unlock unparalleled insig=
hts into customer preferences and stay ahead in
 today&#8217;s market. Download now!</a></td>
<td width=3D"72%" ;=3D"" style=3D"FONT-FAMILY: Arial; COLOR: #939597; line-=
height: 13px; FONT-SIZE: 9px">
Smart Communications is a trading name of SmartComms SC Limited which is re=
gistered in England under No. 4303041 whose registered office is at Suite 2=
3, LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environme=
nt before printing. The contents
 of this e-mail are intended for the named addressee only. It contains conf=
idential information. Unless you are the named addressee or an authorized d=
esignee, you may not copy or use it, or disclose it to anyone else. If you =
received it in error please notify
 us immediately and then destroy it. Smart Communications will process your=
 data as described in the Smart Communications'
<a href=3D"https://www.smartcommunications.com/external-privacy-policy/">Ex=
ternal Privacy Policy.</a></td>
</tr>
<tr>
<td width=3D"100%" ;=3D"" colspan=3D"2" style=3D"FONT-FAMILY: Arial Black; =
COLOR: #20407f; FONT-SIZE: 10px">
<br>
Follow us on <a href=3D"https://www.linkedin.com/company/15166060/admin/">L=
inkedIn</a> and
<a href=3D"https://twitter.com/ccminnovators?lang=3Den">Twitter</a></td>
</tr>
</tbody>
</table>
</body>
</html>

--_000_AM9PR04MB8604BAB25EC743ED42EBE607DD532AM9PR04MB8604eurp_--