PDF Accessibility | 'Title - Failed' Error in Acrobat Pro while generating PDF using XSL-FO

╄→尐↘猪︶ㄣ 提交于 2019-12-11 11:24:29

问题


I am generating a PDF document from an XML using XSL template in Apache FOP API. My applications requires the PDF documents to be generated dynamically.

Despite of adding the title (code snippet below), I am getting 'Title - Failed' error when checked for Accessibility (full check) in Adobe Acrobat Pro 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>

回答1:


In Adobe Acrobat If I go to File --> Properties --> Initial View --> Select 'Document Title' in Show, the error is fixed. But I am not able to find anything to do the same thing programmatically, neither in XSL template nor in java code.




回答2:


It looks like this issue has been fixed, probably in version 2.1. I just upgraded to FOP 2.2 after having this same issue while using version 1.1, and I'm pleased to report that everything works as expected now after opening a dynamically-generated PDF-UA file with Adobe Acrobat XI Pro.



来源:https://stackoverflow.com/questions/34923188/pdf-accessibility-title-failed-error-in-acrobat-pro-while-generating-pdf-u

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!