• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Duplicate property or field node 'pdf:Producer'

Contributor ,
Jul 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

When reading a PDF file I get the following exception:

Duplicate property or field node 'pdf:Producer'

Caused by: com.adobe.xmp.XMPException: Duplicate property or field node 'pdf:Producer'

    at com.adobe.xmp.impl.XMPNode.assertChildNotExisting(Unknown Source)

    at com.adobe.xmp.impl.XMPNode.addChild(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.addChildNode(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_LiteralPropertyElement(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_PropertyElement(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_PropertyElementList(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_NodeElement(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_NodeElementList(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.rdf_RDF(Unknown Source)

    at com.adobe.xmp.impl.ParseRDF.parse(Unknown Source)

    at com.adobe.xmp.impl.XMPMetaParser.parse(Unknown Source)

    at com.adobe.xmp.XMPMetaFactory.parseFromBuffer(Unknown Source)

    at com.adobe.xmp.XMPMetaFactory.parseFromBuffer(Unknown Source)

When I open the PDF there is indeed a redundant entry:

<x:xmpmeta x:xmptk="Adobe XMP Core 5.1.0-jc003" xmlns:x="adobe:ns:meta/">

  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

    <rdf:Description dc:format="application/pdf" pdf:Producer="Some producer" pdfaid:conformance="B" pdfaid:part="1" rdf:about="" ...>

...

<pdf:Producer>Some producer</pdf:Producer>

</rdf:Description>

</rdf:RDF>

I have found PDFs which contain one or the other but not both. So who is wrong? (I am using the XMP lib in version 5.1.3)

[Moved out of the XMP SDK forum and into a PDF-specific forum by a moderator]

TOPICS
Edit and convert PDFs

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

Looks like a bug in the XMP lib.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

I tried the latest version 6.1.10 with the same result. I mean the lib is right, there are two "pdf:producers" so my question is whether one of the above is invalid/forbidden?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

One is an attribute of a XML tag. The other is a XML tag.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

Yes that (as a developer) I know - the question is where the error is:

1. Both producer are valid - its a bug in XMP library

2. One producer is ok (the tag or the attribute version) but not two

3. The "xml attribute" producer is correct the other is not

4. The "xml tag" producer is correct the other is not

So which one is it? I browsed the adobe XMP spec but didn't find any concrete information about that. (But maybe i missed something)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

I don't know.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

You don't need to answer then

But since this is a forum somebody else might know

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 07, 2017 Jul 07, 2017

Copy link to clipboard

Copied

LATEST

[Moved out of the XMP SDK forum and into a PDF-specific forum by a moderator]

Why was this post moved to such in irrelevant forum?

I am using the Java XMP SDK and have a specific question about an error message which appears when I use the API! Please move this post back to where it belongs! This has nothing to do with "Editing or Exporting PDFs"!!!

Here is how I call the XMP SDK:

byte[] xmpMeta = //retrieve Metada from PDF

XMPMetaFactory.parseFromBuffer(xmpMeta);

This call fails with the above exception...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines