Quantcast
Channel: Adobe Community : Popular Discussions - XMP SDK
Viewing all 49231 articles
Browse latest View live

xmpGImg data to jpeg file

$
0
0
I am trying to extract the jpg data which is in the xapGImg:image element, I know I have to convert the data to Base64, but I am getting to much data (I think). The start seems ok "FFD8" and the "FFC4" (Huffman)is there, but from here it seems to go wrong, no "FFC0" and the file does not end with the "FFD9" (End of image), Any Ideas??

Problem with loading XMP with UTF-8 encoding

$
0
0
Hi guys,
I'm trying to load XMP information in PDFs using PDDocSetXAPMetadata of SDK 7.0.

I create the right XMP with UTF-8 encoding according to XMP Toolkit specification.

Everything seems OK but when I open the PDF with Acrobat Professional 7.0 in the Advanced Metadata panel of Document properties
I found the values "encoded" but I expect to see the string "decoded", human readable.
Example: for N° DOCUMENTO I found N=EF=BE=B0 DOCUMENTO that is the UTF-8 encoded string.

I use ASTextFromUnicode (str, kUTF8) to convert my UTF-8 string in ASText (I tried also with ASTextFromEncoded (str, AVAppGetLanguageEncoding()) ).

I edited the PDF with a binary editor and I saw exactly what I found in the Advanced metadata panel and I's right, the embedded data SHOULD be in UTF-8.
I tryed also to read the XMP with PDDocGetXAPMetadata and I had the same result.

At the end I tryed to export the XMP using the option Save in the Advanced Metadata panel. I changed the XMP using an XML editor and I reload it using CHANGE option.
I could load a string without problem and without UTF-8 encoding !
Also the display is right !

I hope in an advice...what's wrong ?
I'm loosing my mind !

Thanks a lot.
Domenico Barile

HTTP distributed XMP panel

$
0
0
Hi There...
Saw that you mentioned an HTTP distributed panel sounds very interesting to me...
can you give me more details on it??
Rgds
CEDRIC

designing my own metadata

$
0
0
At the moment I am working on my graduation project. The main task would be to build an ontology-assisted photo editor. During my search on the internet I got acquintainted with XMP and I am very curious whether XMP could be of use for the photo editor. Currently I have designed my own annotation template to describe the content and photo features. I am wondering if it is possible to use my own template. While reading the prodct specifications I thought that only things like production information (CreatorTools) and Rights (CopyRights) could be annotation by XMP. Therefore my main question at the moment is whether and ofcourse how I could annotated photographical images by my own template with XMP.

Reader backwards compatibility

$
0
0
Greetings,

Can anyone tell me what would happen if I try to open PDF 1.4 file with XMP data in a version of Acrobat Reader older than 5.0? Would I still be able to view most of the file, or would it not open at all? Better yet, can someone email me an XMP file so I can see for myself? I'm at arlo@typea.net.

Also, I should be able to open an existing PDF file and add XMP data to it, right? I mean, the XMP data doesn't necessarily need to be added when the file is originally created?

Thanks in advance for your help...

-Arlo

XMP packet embedded in PNG and GIF files

$
0
0
Hi,

I'm looking at integrating XMP processing into our PNG and GIF codecs. I have seemed to run into an issue with these formats, specifically how Photoshop embeds the XMP packet, in so much as it doesn't seem to follow the guideline as presented in XMPEmbedding.pdf.

Does anyone know where the packet is located for PNG... I can't seem to locate the iTXt chunk in the file that Photoshop produced? Same goes for GIF where Photoshop doesn't include an Application Block Ext?

Furthermore, looking at both the hex dump and running my XMP parser over the file fails to detect any XMP packet at all. I can only suspect that Photoshop has placed the packet elsewhere (perhaps encoded with the image data which has been compressed)?

thanks again
dave

UTF-16 and UTF-32 encoding

$
0
0
Hi again,

I would like some clarification with regard to libxmptk's handling of encoding schemes other than UTF-8. Looking through the documentation and reading some comments in this forum, it seem that MetaXAP will downgrade any encoding to UTF-8, it's internal representation? Furthermore, we can only get/set UTF-8 data to the MetaXAP object.

Basically, with the exception of UtilityXAP::CreateXMLPacket which will generate a packet header in USC-2 encoding, there doesn't seem to be any API to allow entry of UTF-16, UTF-32 data within the XMP packet?

I presume this is to be completed external from libxmptk?

thank again
dave

Read metadata from PDF via VBA

$
0
0
I wrote a VBA script that reads the custom properties of a collection of Word docs and writes the results to a file which I can then import to Excel.

Now I have to do the same thing for the PDF files created from the Word docs - that is, read the metadata from a collection of PDF files.
The fields that have to be read are always the same.

How can I read the metadata of a CLOSED PDF file from VBA?
For Word, the solution was to use DSOleFile.PropertyReader (part of the DS: OLE Document Properties 1.4 object library.

TIA

Help on text box height for custom xmp panel field?

$
0
0

This has to be simple, but I cannot figure it out, how can I set the field height for this?

 

thanks

Mike

 

</xmp_schema>

    <xmp_schema prefix="dc" namespace="http://purl.org/dc/elements/1.1/" label="$$$/stewart/Blank=">

        <xmp_property name="description/*[1]" category="external"
            label="$$$/stewart/descript=Caption and Tag:" type="text" xmp_path="description/*[1]"/>

XMP Viewer without CS

$
0
0

We have recently started using XMP panels. One of the things I am worried about is people being able to view the XMP in an asset if they do not have Creative Suite. Is there some kind of XMP viewer that can be used?

Update for XMP FileInfo SDK available

$
0
0

Dear customers,

 

with the 2014 release of the Creative Cloud applications there is also an update for the XMP FileInfo SDK available on the XMP Developer Center.

 

In Photoshop CC 2014, Illustrator CC 2014 and InDesign CC 2014 the Flash based FileInfo dialog has been replaced with a new implementation.

The new dialog continues to offer an extensibility mechanism to add custom metadata to your assets and related panels in the FileInfo dialog. The new mechanism is based on XML files instead of writing code in ActionScript. This is similar to the current “Generic” panels from the FileInfo SDK but with more functionality. The idea of this SDK is to provide a fast and simple way to extend CC applications to interact with custom metadata without the need to write and compile code. For those who need all the flexibility and functionality of the coding approach the recommendation is to use the new HTML5 based extension mechanism for CC applications. The XMP Developer Center site also provides an example that shows how to create an HTML5 extension that can manipulate XMP data.

For customers with existing FileInfo extensions, the new SDK contains a converter tool to automatically convert existing custom “Generic” panels to the new extension format. Unfortunately it is technically not possible to convert existing Flash based extensions.

 

We certainly appreciate all your feedback about the new version of the dialog and the SDK.

Kind regards

The Adobe XMP team

Adding "Spherical video" metadatas

$
0
0

Hello,

 

I'm trying to use the SDK to inject 360 metadatas into a mp4 video.

 

I've followed the examples, I can inject some top level metadatas and read them etc, but it's not clear for me how I can add this scheme (from google) :

"Spherical video metadata is stored in a uniquely-identified moov.trak.uuid box to avoid collisions with other potential metadata. This box shall cite the UUID value ffcc8263-f855-4a93-8814-587a02521fdd. The XML metadata itself is written within the uuid leaf as a UTF-8 string."

 

The rdf I want to put there is the following :

 

constchar * rdf =

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

    " xmlns:GSpherical='http://ns.google.com/videos/1.0/spherical/'>"

    "<GSpherical:Spherical>true</GSpherical:Spherical>"

    "<GSpherical:Stitched>true</GSpherical:Stitched>"

    "<GSpherical:StitchingSoftware>Spherical Metadata Tool</GSpherical:StitchingSoftware>"

    "<GSpherical:ProjectionType>equirectangular</GSpherical:ProjectionType>"

    "</rdf:SphericalVideo>";

 

 

But as explained above, it needs to be added in "moov.track.uuid" and I don't know how to create this scheme.

 

Thanks in advance !

XMP SDK error: duplicate property or field node 'pdf:Producer'

$
0
0

Since my original post was moved to an unrelated/wrong forum here again in the correct forum:

 

When reading a PDF programmatically with the XMP SDK (version 5.1.3) I get the following exception:

 

Caused by: com.adobe.xmp.XMPException: Duplicate property or field node 'pdf:Producer'      at com.adobe.xmp.impl.XMP
Node.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 opening the PDF with an text editor 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 where is the error?

 

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

XMP-Toolkit-SDK-CC201607 for iOS can't compiled by libc++ in Xcode 9.0

$
0
0

XMP-Toolkit-SDK-CC201607

1. in build/, run "GenerateXMPToolkitSDK_mac.sh"

2. select option 4., create iOS Xcode project

3. Both XMPCoreStatic and XMPFileStatic, In Xcode choose "C++ standard Library: libstdc++"

It's worked

 

But I want XMPCoreStatic and XMPFileStatic compile by libc++, XMPFileStatic can, but XMPCoreStatic can't.

 

any ideas?

 

Compile by libc++ log

-------------------------------------

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /c++/v1/map:820:5: Static_assert failed "Allocator::value_type must be same type as value_type"

/Downloads/XMP-Toolkit-SDK-CC201607/XMPCommon/source/ConfigurableImpl.cpp:123:16: Cannot initialize object parameter of type 'const AdobeXMPCore_Int::IConfigurable_I' with an expression of type 'AdobeXMPCore_Int::ConfigurableImpl'

Downloads/XMP-Toolkit-SDK-CC201607/XMPCommon/source/ConfigurableImpl.cpp:126:37: Cannot initialize object parameter of type 'const AdobeXMPCore_Int::IConfigurable_I' with an expression of type 'AdobeXMPCore_Int::ConfigurableImpl'

Internal error during saving pdf


Problems building the Toolkit in Windows with Visual Studio 2008

$
0
0

hi all,

 

I followed the instructions from XMP Toolkit SDK Programmes Guide for building the toolkit in Windows with Visual Studio 2008 but it says I have 8 errors, all the same : " error C3163:'_vsnprintf':attributes inconsistent with previous declaration".

 

Can someone help me with this problem? What should I do to fix it?

 

Thanks in advance!!

Java Implementation

$
0
0

I am just starting out with XMP. I have read through the documentation, downloaded and reviewed the SDK, and read through numerous forum entries. The API looks great, but I was wondering why only 1/2 the solution is provided for Java Developers? To me the more important (and technically challenging I think) is the XMPFiles piece. Parsing XML, while tedious, is comparatively straighforward.

 

Two questions:

1. Does Adobe plan to provide a Java implementation of XMPFiles any time soon?

2. Are there any open source OR at cost Java libraries that provide the XMPFiles capabilities?

 

Many Thanks,

Bruce.

ANN: C# XMP Toolkit

$
0
0
Adobe provides the XMP Toolkit that gives developers the ability to easily extract, modify and inject XMP into a multitude of file formats. Unfortunately for .NET developers, it is only available for C++ and Java.

This is where the C# XMP Toolkit fits in. It includes all the functionality from the XMP Toolkit and extends it with great new features.

  • Wraps XMPFiles, allowing easy extraction and injection of XMP.
  • Wraps XMPCore (XMPMeta, XMPIterator and XMPUtils), allowing easy editing of XMP.
  • Extends with new schema classes, for even easier editing of XMP.
  • Can be used by any .NET 2.0 application.
  • Freeware!

Please visit Hålligång website for more information and download.

Can't see my custom xmp panel in file info in PS CC 2014.

$
0
0

Has the "Custom File Info Panels" location moved with CC 2014?  For previous CC versions, location was (mac):

 

HD/users/username/Library/Application Support/Adobe/XMP/Custom File Info Panels/

 

Anyone know?  Thanks!

XMPTextInput control height ignored in Flex 3 Properties

$
0
0

I need to set my XMPTextInput controls so that they have a height of 32.  I have tried this in many different ways and none of them work.  In Flex 3 in "Design" mode I select the control, open the properties tab and set the height to 32.  The control changes to the correct height.  When I run the panel the control height of 32 is ignored and a small height is used.

 

I even tried starting from scratch with a form that contains only one XMPTextInput field and I am still unable to increase the height.

 

Any ideas??

 

Fred

Viewing all 49231 articles
Browse latest View live