How to add Custom MetaData / Properties

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
jeffp
User
Posts: 854
Joined: Wed Sep 30, 2009 6:53 pm

How to add Custom MetaData / Properties

Post by jeffp » Mon Sep 08, 2014 10:02 pm

I have a customer that would like to add some custom meta data fields to the PDF file.

Essentially, they want to go beyond the standard Title, Author, Subject, and Keywords fields and add some like Status, Deparment, etc.

Is this possible? Or do the just have to add all these say as name value pairs in the Keywords field.

I see in Adobe there is a "Custom" tab under document properties that looks to allow something like this.

Thanks in advance.

--Jeff

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13376
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How to add Custom MetaData / Properties

Post by Tracker Supp-Stefan » Wed Sep 10, 2014 12:42 pm

Hello Jeff,

I am not sure if that is at all possible, but I've forwarded this to a colleague from the dev team (Vasyl) that should be able to help, and we will post back here when we have some further news.

Regards,
Stefan

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1922
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: How to add Custom MetaData / Properties

Post by Vasyl-Tracker Dev Team » Wed Sep 10, 2014 5:28 pm

Hi Jeff.

It is impossible currently with Viewer ActiveX SDK but I can suggest one other way - for get/set custom values you may use our different PDF-Tools SDK API:
http://help.tracker-software.com/DEV/de ... entinfoexw
http://help.tracker-software.com/DEV/de ... entinfoexw

With new Editor SDK you will be able to do it as well..

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

jeffp
User
Posts: 854
Joined: Wed Sep 30, 2009 6:53 pm

Re: How to add Custom MetaData / Properties

Post by jeffp » Sat Feb 16, 2019 4:03 am

Can you point me to where I can learn how to add custom meta data in the latest PDF Editor SDK.

--Jeff

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13376
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How to add Custom MetaData / Properties

Post by Tracker Supp-Stefan » Mon Feb 18, 2019 12:54 pm

Hello Jeff,

I asked a colleague from this office for help with the latest enquiry, but it turns out we will need the advise of a colleague in the Canadian office as well! I've now passed your request to the correct person, and we will post again here as soon as possible!

Regards,
Stefan

Ivan - Tracker Software
Site Admin
Posts: 3591
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: How to add Custom MetaData / Properties

Post by Ivan - Tracker Software » Wed Feb 20, 2019 12:06 am

In the Editor SDK/Core API you can work with XMP using interface IPXC_XMPMetadata. This interface provides only basic features to get/set XMP properties. For advanced handling, you have to get XMP metadata stream using GetXMP method, work with it using XMP SDK (for example, Adobe XMP Toolkip), and set it back, if necessary, using SetXMP.

Having a document (IPXC_Document), you can get its metadata using IPXC_Document::GetXMPMetadata method.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

jeffp
User
Posts: 854
Joined: Wed Sep 30, 2009 6:53 pm

Re: How to add Custom MetaData / Properties

Post by jeffp » Wed Feb 20, 2019 12:46 am

I see the calls but I was looking for a simple example. Would that be possible?

I have a cases where I want to add a few receipt items to the XMP like

SubTotal
Tax
Total

Thanks.

--Jeff

Post Reply