Chamari_Silva
Participant
Chamari_Silva
Participant
Activity
‎Mar 20, 2025
04:24 AM
Thank you so much Dirk. You saved me a lot of time. We have used en_right 'rght' = "right" for our own enumeration value. Some how it didn't matter until InDesign 2025.
... View more
‎Mar 19, 2025
08:19 PM
Hi, I have a plugin developed for InDesign (C++). I have noted a strange behaviour in scripting, when the plugin is placed. When accessed from the script, it returns RIGHT for the return value of Justification.RIGHT_ALIGN where it should be RIGHT_ALIGN. This happens only in InDesign 2025. When I compile the same pluing (same c++ code) for InDesign 2023 or InDesign 2024 and try to access it, it returns the correct value. Does someone has an idea what could be going wrong in my c++ code? Just the precense of the C++ plugin modifies the return value.
... View more
‎Nov 26, 2024
08:05 PM
1 Upvote
The following code can be used to set the alt text. But I am not sure how to read the existing alt text. IActiveContext* acn = GetExecutionContextSession()->GetActiveContext();
IDocument* doc = acn->GetContextDocument();
IDataBase* myDB = ::GetDataBase(doc);
InterfacePtr<IHyperlinkTable> hyperlinkTable(myDB, myDB->GetRootUID(), IID_IHYPERLINKTABLE);
int32 numHyperlinks = hyperlinkTable->GetHyperlinkCount();
for (int32 i = 0; i < numHyperlinks; ++i) {
const UID myHyperlinkId(hyperlinkTable->GetNthHyperlink(i));
UIDRef itemRef = UIDRef(myDB, myHyperlinkId);
UIDList itemList(itemRef);
InterfacePtr<IHyperlink> myHyperlink(myDB, myHyperlinkId, UseDefaultIID());
if (!myHyperlink) continue;
InterfacePtr<ICommand> myNewCmd(CmdUtils::CreateCommand(kChangeHyperlinkCmdBoss));
if (myNewCmd == nil) {
break;
}
myNewCmd->SetItemList(itemList);
InterfacePtr<IHyperlinkCmdData> myNewCmdData(myNewCmd, IID_IHYPERLINKCMDDATA);
if (myNewCmdData == nil) {
break;
}
ErrorCode err = kSuccess;
PMString text = "abc";
myNewCmdData->SetHyperlinkAltText(text);
err = CmdUtils::ProcessCommand(myNewCmd);
} Does anybody have an idea how to read the existing alt text?
... View more
‎Oct 28, 2024
08:15 PM
Thanks @Dirk Becker, you were absolutelly correct. Most of the make symlink lines were missing in the "issue" build. The issue had nothing to do with boost libraries but with the build directory. Your clear reply made it really easier to identify the problem and sort it out. Thank you so much.
... View more
‎Oct 28, 2024
04:12 AM
I was able to find a difference in the created plugin. If I see the package content, plugins with no issues looks like this. But plugin with the issue, looks like this. There are no issues in Building the plugin. No build errors. Also package contents->Resources folders do not have a difference when compared with previous version.
... View more
‎Oct 23, 2024
04:38 AM
Thank you for the reply. I am trying to perform a test by removing all the code that uses boost to see if it is the cause of the problem.
... View more
‎Oct 23, 2024
04:37 AM
Thanks
... View more
‎Oct 23, 2024
04:34 AM
Thanks for the reply. Win builds are ok. Problem happens only in mac. Also we use a fresh instance of a github runner everytime. So it's a fresh checkout.
... View more
‎Oct 21, 2024
06:09 PM
9 Upvotes
Hi all, We have a set of 9 c++ plugins developed for InDesign and I have updated them with the new SDK 20.0.0.95 version and tried using with InDesign 2025 (20.0). Out of 9 plugins, 2 of them give me the "Adobe Indesign does not recognise xxx as a valid plugin." error. They were working ok with the SDK 19 and InDesign 2024. These two plugins are doing some file related operations and uses boost libraries in the SDK. Can anyone think of a reason why this is happening?
Thank you.
... View more
‎Sep 18, 2024
10:32 PM
With the newest version of the plugin SDK (plugin_sdk_080) the issue is sorted. These changes no longer exist anymore in the new SDK and the old code is working fine now with out any changes. Thanks everyone for the support.
... View more
‎Sep 17, 2024
06:38 PM
Yes I have. This happens in a newly created file in InDesign Pre release 2025.
... View more
‎Sep 12, 2024
09:11 PM
Hi everyone,
I was trying to port our plugins to the new CS20 SDK and identified that ISectionCmdData.Set() requires two new parameters. NonHiddenStartPageUID and NonHiddenStartPageNumber. When I try to access an existing section (ISection) and retrieve this data, I can retrieve the NonHiddenStartPageUID using mySection.GetNonHiddenStartPageUID() along all the other required parameters of the section such as ContinueFromPrevSection, OffsetFromPrevSection, StartPageNumber, etc.
But when I try to access mySection->GetNonHiddenStartPageNumber(); it crashes givig me the following error.
Exception thrown at 0x00007FFA1B237446 (Sections.rpln) in InDesign (Prerelease).exe: 0xC0000005: Access violation writing location 0x0000000000000001. Can someone help me to find a solution for this problem?
<Title renamed by MOD>
... View more
‎Jul 03, 2024
02:21 AM
Thanks a lot @Laubender .
... View more
‎Jul 03, 2024
01:58 AM
I was trying to make an overset in the footnote area. But when I enter more and more text in the foot note it just grows upword. Is it possible to have an overset in the footnote area?
... View more
‎Jul 01, 2024
08:28 PM
I have created a TOC style with the entry style is selected as Same style. When I try to access TOCFormatEntryInfo fParaFormatStyle, it returns 0. When the entry style is set to a different paragraph style, it returns the fParaFormatStyle. Is there a way to obtain the UID of the entry style when it is set as the same style? InterfacePtr<ITOCStyleInfo> theTOCStyle(db, tocStyleID, UseDefaultIID());
BREAK_IF_NIL(theTOCStyle);
const FormatEntriesInfo& entryMap = theTOCStyle->GetTOCEntryMap();
for (int i = 0; i < entryMap.size(); ++i)
{
TOCFormatEntryInfo tocFormatEntryInfo = entryMap[i].Value();
paraStyleID = tocFormatEntryInfo.fParaFormatStyle;
}
... View more
‎Feb 13, 2024
02:17 AM
Thank you for the reply. I found out that it can be the placePoint that causes the problem.
... View more
‎Feb 13, 2024
02:17 AM
1 Upvote
Yes. It's hapenning only with a single document. I found out that it can be the placePoint that causes the problem. Thank you for the reply.
... View more
‎Feb 11, 2024
06:58 PM
3 Upvotes
Hi all, I need some help. We have developed a plugin for InDesign and it tries to create a TOC using a TOC style which is already there in the document. InterfacePtr<ICommand> myCreateTOCCmd(CmdUtils::CreateCommand(kCreateTOCCmdBoss)); if (myCreateTOCCmd == nil) { break; } InterfacePtr<IStringListData> myStringList(myCreateTOCCmd, UseDefaultIID()); if (myStringList == nil) { break; }; InterfacePtr<ITOCCmdData> myCmdData(myCreateTOCCmd, IID_ITOCCMDDATA); if (myCmdData == nil) { break; }; //set myStringList and prepare myCmdData myErr = CmdUtils::ProcessCommand(myCreateTOCCmd); When I try to process command, instead of returning an error, indesign crashes. The exception thrown is "Exception thrown at 0x00007FFB9256D26C (Text.rpln) in InDesign.exe: 0xC0000005: Access violation reading location 0x0000000000000000." I tried using InDesign Debug version and right before the crash it gave me this message. "About to use nil interface ptr! Queried IID was IID_IMARGINS, on Boss kSplineItemBoss." How can I identify the cause of the crash?
... View more
‎Feb 02, 2024
03:09 AM
Thank you very much @Dirk Becker. I have a better idea now.
... View more
‎Feb 01, 2024
07:34 PM
Thank you @Manan Joshi. Can we add custom objects, methods, properties, to the obeject model as we do in C++ plugins?
... View more
‎Feb 01, 2024
05:52 PM
Thank you so much @Rahul_Rastogi and @Manan Joshi. Is there a documentation/ samples awailable for UXP where I can get an idea of what is possible with UXP and what's not. I've had a look at the UXP API reference (developer.adobe.com/indesign/uxp/reference/uxp-api/). Is everything included in there? Also our plugins should be criptable to work with InDesign Server and that is one of the key requirements. Can we make scriptable plugins with UXP?
... View more
‎Feb 01, 2024
01:55 AM
3 Upvotes
We have few complex C++ plugins for InDesign built over many years. Now we are thinking of migrating these plugins to UXP. Can we do everything we do in a plugin developed with C++ SDK, in a UXP plugin? How do we achieve data persistentency? Can we develop a Scriptable Plugin with UXP?
... View more
‎Jan 11, 2024
01:47 AM
Thank you Oliver. This is great help.
... View more
‎Jan 11, 2024
01:47 AM
Thank you so much Rahul
... View more
‎Jan 10, 2024
09:51 PM
2 Upvotes
Hi everyone, I need some help finding the paragraph style (styleUID) of each cell in a table. So far this is what I have. InterfacePtr<ITableModel> tableModel(tableFrame->GetModelRef(), UseDefaultIID()); if (tableModel == nil) break; int rows = tableModel->GetTotalRows().count; int cols = tableModel->GetTotalCols().count; UID currentStyle = kInvalidUID; for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { GridAddress address = GridAddress(r, c); GridID gridid = tableModel->GetGridID(address); InterfacePtr<ITableTextContainer> tableTextContainer(tableModel, UseDefaultIID()); if (tableTextContainer == nil) break; InterfacePtr<ITextModel> textModel(tableTextContainer->QueryTextModel()); if (textModel == nil) break; InterfacePtr<ITextStoryThreadDict> textStoryThreadDict(tableModel, UseDefaultIID()); if (textStoryThreadDict == nil) break; InterfacePtr<ITextStoryThread> textStoryThread(textStoryThreadDict->QueryThread(gridid)); if (textStoryThread == nil) break; InterfacePtr<ITextModel> iTextModel(textStoryThread->QueryTextModel()); if (iTextModel == nil) break; const UIDRef tableRef(::GetUIDRef(tableModel)); TextIndex threadStart, threadLength; iTextModel->FindStoryThread(tableRef.GetUID(), gridid, &threadStart, &threadLength); // how can I get the styleUID (Paragraph style) of this cell? } }
... View more
‎Oct 04, 2023
01:15 AM
1 Upvote
Thank you Oliver
... View more
‎Oct 03, 2023
10:56 PM
I am using github runners for the builds and it uses VS2022 17.7.34031.279. My "xlocnum_hack.h" file is altered in this way. Is there any way to use VS2022 17.7 in doing the builds that I can try? If not I think I have to look in to installing an earlier version of VS2022.
... View more
‎Oct 03, 2023
08:55 PM
1 Upvote
When I am buiding a plugin with SDK 19, I get the following error. xlocnum_hack_vs2022_17_1.h(1193,64): error C2039: 'c_str': is not a member of 'std::locale' Is there anyone who can guide me to solve this error? Thank you!
... View more
‎Jul 21, 2023
03:26 AM
1 Upvote
Sorry about my mix up of the words, forward/backward compatibility. I tested using FrameLabel sample: indd document generated with CC2022 and opening it with CC2023 -> no issue idml document generated with CC2022 and opening it with CC2023 -> no issue idml document generated with CC2023 and opening it with CC2022 -> no issue indd document generated with CC2023 and opening it with CC2022 -> data is missing
... View more
‎Jul 21, 2023
02:39 AM
I compiled the FrameLabel and FrameLabelUI projects for both ID2023 (using CS18 SDK) and ID2022 (using CS17 SDK). I observed the data loss there too. file created with ID 2023 has following details set. and when I save it as indd and open using ID 2022, the details are missing.
... View more