Skip to main content
Inspiring
March 29, 2024
Answered

How to get linked file path, Link Info(C/C++)

  • March 29, 2024
  • 1 reply
  • 279 views

Hello All,

 

I am trying to read Alt Text from "Object Export Options", I am able to read text when alt text sources is custom. I am not able to find out how to get this text when text sources is kXMPTitle/kXMPDescription/..

I think I need to get linked file path and read xmp meta data from that file. 

Can any one please help about how to get link info of a page item. how to get Linked file path?

 

{
    PMString altText("");

    do{
        InterfacePtr<IObjectExportOptions>exportobject(pageItemUIDRef, UseDefaultIID());
        ASSERT(exportobject);

        if(exportobject)
        {
            IObjectExportOptions::TextSourceType type = exportobject->GetAltTextSourceType();
            if(type == IObjectExportOptions::TextSourceType::kCustom)
            {
                exportobject->GetCustomAltText(altText);
            }else{
//How to get liked file path? How to get link info? how to get its metadata?
//                kXMPTitle
//                kXMPDescription
//                kXMPHeadline
//                kXMPOther
            }
        }
    }while(false);
}

 

This topic has been closed for replies.
Correct answer Rahul_Rastogi

To get the file path from the image, refer my answer in the following link -

 

https://community.adobe.com/t5/indesign-discussions/link-associated-with-an-image/m-p/14155504#M545686

 

- Rahul Rastogi

Adobe InDesign C++ Custom Plugin Architect

1 reply

Rahul_RastogiCorrect answer
Inspiring
March 29, 2024

To get the file path from the image, refer my answer in the following link -

 

https://community.adobe.com/t5/indesign-discussions/link-associated-with-an-image/m-p/14155504#M545686

 

- Rahul Rastogi

Adobe InDesign C++ Custom Plugin Architect