[
https://issues.apache.org/jira/browse/PDFBOX-5649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17759787#comment-17759787
]
Tilman Hausherr commented on PDFBOX-5649:
-----------------------------------------
I tried to use these {{PropertyType}} annotations by making a change to
{{addNewNameSpace}}:
{code}
if (isDefinedNamespace(ns))
{
// PDFBOX-5649: get mapping from what is known about this schema
if (isStructuredTypeNamespace(ns))
{
Types type = structuredNamespaces.get(ns);
PropertiesDescription pd = structuredMappings.get(type);
if (pd != null)
{
mapping = pd;
}
}
}
{code}
That doesn't work either:
org.apache.xmpbox.xml.XmpParsingException: Type not structured : Text
at
org.apache.xmpbox.xml.DomXmpParser.instanciateStructured(DomXmpParser.java:902)
at
org.apache.xmpbox.xml.DomXmpParser.parseLiDescription(DomXmpParser.java:618)
at
org.apache.xmpbox.xml.DomXmpParser.parseLiElement(DomXmpParser.java:529)
> NPE in DomXmpParser.parseLiDescription
> --------------------------------------
>
> Key: PDFBOX-5649
> URL: https://issues.apache.org/jira/browse/PDFBOX-5649
> Project: PDFBox
> Issue Type: Bug
> Components: XmpBox
> Affects Versions: 2.0.29, 3.0.0 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Labels: regression
> Attachments: metadata.xml, pdfExemple.pdf
>
>
> org.apache.xmpbox.xml.XmpParsingException: ctype is null, first:
> [stEvt:action: null], DomHelper.getQName(first):
> {http://ns.adobe.com/xap/1.0/sType/ResourceEvent#}action
> at
> org.apache.xmpbox.xml.DomXmpParser.parseLiDescription(DomXmpParser.java:611)
> at
> org.apache.xmpbox.xml.DomXmpParser.parseLiElement(DomXmpParser.java:529)
> at org.apache.xmpbox.xml.DomXmpParser.manageArray(DomXmpParser.java:487)
> at
> org.apache.xmpbox.xml.DomXmpParser.createProperty(DomXmpParser.java:352)
> at
> org.apache.xmpbox.xml.DomXmpParser.parseChildrenAsProperties(DomXmpParser.java:319)
> at
> org.apache.xmpbox.xml.DomXmpParser.parseDescriptionRoot(DomXmpParser.java:248)
> at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:201)
> at
> org.apache.tika.parser.xmp.XMPMetadataExtractor.parse(XMPMetadataExtractor.java:57)
> I'll throw a parsing exception for now. It happens with the file
> testIndesign.idml of the Tika project.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]