我使用Apache FOP API中的XSL模板從XML生成PDF文檔。我的應用程序需要動態生成PDF文檔。PDF可訪問性|在使用XSL-FO生成PDF時,Acrobat Pro中的「標題 - 失敗」錯誤
儘管添加標題(下面的代碼片段),我得到「標題 - 失敗」的以Adobe Acrobat檢查時輔助功能(全面檢查)臨11
<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/">
<!-- Dublin Core properties go here -->
<dc:title>Document title</dc:title>
<dc:creator>Document author</dc:creator>
<dc:description>Document subject</dc:description>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<!-- XMP properties go here -->
<xmp:CreatorTool>Tool used to make the PDF</xmp:CreatorTool>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
</fo:declarations>
您使用哪種FOP版本?你的'fo:layout-master-set'和第一個'fo:page-sequence'之間的'fo:declarations'是什麼? –
FOP版本1.1&是的,我在您提到的標記塊之間進行聲明。 – kek
我出來的想法,因爲我擁有的唯一信息是http://xmlgraphics.apache.org/fop/1.1/metadata.html,你似乎也從這個工作。 –