上次更新時間
2021年7月27日
|
亦適用於 Adobe InDesign, Adobe InDesign Server
在 InDesign 2018 中,由使用自訂資料連結的外掛程式所管理的連結狀態未在「連結」面板中正確更新,且高解析度資產以低解析度轉存。
- 若要解決第一個問題,請將下方這行程式碼新增至資源處理常式領袖,例如 CustomDataLink 範例外掛程式中的 CusDtLnk.fr 檔案。
IID_ILINKRESOURCEHELPERHANDLER, kFileLinkResourceHelperHandlerImpl,
- 若要解決低解析度轉存問題,請在實作 ResourceHandler 時使用以下程式碼片段,例如適用於 CustomDataLink 範例外掛程式的 CustomDataLinkResourceHandler.h。
virtual bool CanProvideFile(const UIDRef& ref, const URI& uri)
{
return true;
}
virtual ErrorCode GetFile(const UIDRef& ref, const URI& uri, IDFile& idFile)
{
if (Utils<ICusDtLnkFacade>()->URIToIDFile(uri, idFile))
return kSuccess;
return kFailure;
}