Paste XMP data into PNG using Objective-C

I need to embed my own XMP file in PNG in an iOS app. So far, I have managed to compile the Adobe XMP toolkit that generated the Xcode project, and I compiled the project correctly.

From there, I don't know how to use the library in my Xcode project and how to use it. I have found very little information about this on the Internet.

Anyone who has done the same thing he would like to help?

+4
source share
2 answers

If you downloaded the Adobe XMP Toolkit SDK, you can find an example of writing XMP metadata in "ModificationXMP.cpp" and an example of reading a file with an XMP file in the file "ReadingXMP.cpp". Please note that I am using the XMP-Toolkit-SDK-CC201607 version.

, iOS . , , , . [arm64, armv7, armv7s] [x86_64] , .

"ModifyingXMP.cpp" , . iOS Objective-C ++ ( .mm). , libXMPCoreStatic.a, libXMPFilesStatic.a, . , , :

https://forums.adobe.com/thread/1360320

.a swift?

-: enter image description here

XmpWriter.h:

#import <Foundation/Foundation.h>

@interface XmpWriter : NSObject

+(BOOL) writeXmp:(const char *) imageUrl Param1:(const char *) Param1 Param2:(float) param2 Param3:(float) Param3;
+(BOOL) readXmp:(const char *) imageUrl;

@end

XmpWriter.mm createXMPFromRDF(), , :

SXMPMeta createXMPFromRDF(const char *Param1, float Param2, float Param3)

, , .

+3

iOS, XMP PDF, , 2016 , Xcode 7.2.1, , Xcode 9, , .

XMP, ReadingXMP, ( Xcode). ,

XMPFiles XMPCore, XMP XMP.

, <xmpsdk>/samples/source <xmpsdk>/samples/target/. , filename Xcode, SDK, , , .

, , :).

+2

Source: https://habr.com/ru/post/1690672/


All Articles