Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all 78596 articles
Browse latest View live

How to use ScriptList class in Indesign CS5 SDK?

$
0
0

Hi,


Can anyone help to this concern??...

 

I couldn't use ScriptList class in CS5 SDK, as we use in Indesign CS4. It throws the following error when I build my plug-in.


Error     1    error LNK2001: unresolved external symbol "__declspec(dllimport)  struct adobe::version_1::new_delete_t const  adobe::version_1::local_new_delete_g"  (__imp_?local_new_delete_g@version_1@adobe@@3Unew_delete_t@12@B)

 

Here follows the Code I used to apply script label to a pageItem.

 

    ErrorCode err=kFailure;
     InterfacePtr<IScript> iScript(argPageItemUIDRef, UseDefaultIID());
     ScriptList myScriptList;     // including this class throws the above error.
    
myScriptList.push_back(iScript);
     IScriptLabel::ScriptLabelValue myTagValue(argLabel);
     InterfacePtr<IScriptManager>scriptMgr(Utils<IScriptUtils>()->QueryScriptManager(kScriptTa gMgrBoss));
      err=Utils<IScriptUtils>()->SetScriptingTag(
myScriptList,scriptMgr->QueryDefaultEngine()->GetRequestContext(),myTagValue);
     return err;

 

with thanks,

Praba


Indesign crash in ExportPageitems()

$
0
0

Hi all,

 

I am experiencing a crash when I try to export an inline text box to a snippet (IDML file), using the ISnippetExport SDK interface with ExportPageItems() function.

 

The crash ONLY occurs when the inline box I want to export is not visible, that means that the inline box is in the overflow text of the parent frame. If the same inline box is visible -and not in the overflow text- the export works perfectly.

 

It Occurs both in Mac and Win, ID CS5.5 v7.5.4. The final crash report points to INXCore.rpln.

 

The code I'm using is exactly the same that in the code sample SnpImportExportSnippet::ExportPageitemsToFile() of the sdk codeSnippets:

 

ErrorCode SnpImportExportSnippet::ExportPageitemsToFile(const UIDList& uidList, const IDFile& idFile)

{

ErrorCode result = kFailure;

do {

InterfacePtr<IPMStream> stream(StreamUtil::CreateFileStreamWrite(idFile, kOpenOut, 'TEXT', 'CWIE'));

if(!stream) {

break;

}

stream->Open();

if (stream->GetStreamState() != kStreamStateGood) {

break;

}

 

stream->SetEndOfStream();

result = Utils<ISnippetExport>()->ExportPageitems(stream, uidList);

stream->Flush();

 

stream->Close();

} while(false);

return result;

}

 

Any suggestion, workaround, test or so will be appreciated.

Thanks a lot,

 

Blanca Sánchez.

 

Converting PMString to std::wstring in InDesign CS6

$
0
0

I'd have to get the filepath of a resource of the opened document to a std::wstring.

 

I can easily get the filepath of the resource as a PMString:

InterfacePtr< ILinkResource > pResource( GetDataBase( LinkManager ), ResourceUIDRef.GetUID(), UseDefaultIID() );

PMString ResourceFilepath = pResource->GetLongName( false );

 

The problem is that I'd have to convert the PMString to a std::wstring without losing any of the information. The path may contain special characters like Arabic or Chinese so just converting the string to a std::string with GetPlatformString() won't get the job done.

 

Should I even grab the PMString or should I just use WideString from GetLongName() and somehow get the conversion done for that? StringUtils has a ConvertWideStringToUTF8 but it also seems to give out std::string.

 

So to put the long story short: How to correctly convert PMString to std::wstring?

 

The plug-in will be used in Windows environment.

Where to download InDesign CC debug version?

$
0
0

After finally having access to the InDesign CC SDK I am now presented with the problem of debugging a built plugin. Where can i get the InDesign CC (9.2 specifically) debug version?

Return an empty array from scripting method

$
0
0

I have a script method that return a StringTypeArray of variable length. I want to return an empty array. On returning no data I get an assertion

Expected: Array of Strings or Array of Objects

    Returned: Array (nothing)

 

I know it is possible to return an empty string array because $.writeln(app.redoHistory.length); returns so on no redo history.

 

How can I return an empty array?

Passing parameter(s) to IdleTask

$
0
0

Hello,

 

My adventures with the InDesign SDK continue and now I wonder how I can pass parameter(s) to an IdleTask.

I already have an IdleTask running, like this:

 

        InterfacePtr<IIdleTask> myThread(GetExecutionContextSession(), IID_IMYIDLETASK);

       

        ASSERT(myThread);

       

        if (myThread)

        {

           

            myThread->InstallTask(0);

        }

 

 

But how to pass parameters to it, I don't know... Couldn't find anything in this forum or on search engines.

 

 

Regards, Jan

Error Messages/Building Plug-ins with Eclipse SDK or VCExpress 2005

$
0
0
Hi,

I am an newbie in building InDesign-Plugins. I have installed the Adobe InDesign Plug-in Editor on my Windows XP PC (InDesign CS3 SDK, Eclipse, JRE 1.5, Visual Studio 2005 (VCExpress Edition for C++)).

I tried to build one of the example Plug-ins with Eclipse. After startting the build process of the "transparencyeffectui"-example or the "DollyXs"-example the following message appears:
-----------------------
Buildfile: F:\SDK\workspace\DollyTest\build.xml
win:
[echo] Now compiling FR file F:\adobe_indesign_cs3_products_sdk_503win\source\sdksamples\dollytest\Dolly.fr for win
[delete] Deleting: F:\SDK\workspace\DollyTest\ODFRC.res
[echo] FR Compilation Complete: Attempting to build C++ files...

BUILD FAILED
F:\SDK\workspace\DollyTest\build.xml:66: Execute failed: java.io.IOException: Cannot run program "D:\Programme\Microsoft Visual Studio 5\Common7\IDE\devenv.com": CreateProcess error=2, Das System kann die angegebene Datei nicht finden

Total time: 485 milliseconds
------------------

The compiler did't start because the file "devenv.com" is missing in the "Microsoft Visual Studio 2005/Common7/IDE"-directory.
The free "Visual Studio Express Edition" is delivered withot this file.

Where can i get this file? Or is it possible to change the exec line in the built-xml-file to get the Compiler started?

So I started the VCExpress-Programm an opened the transparencyeffetui-Project-File to start the build process. But again i got an error message:
----------------------
1>------ Erstellen gestartet: Projekt: TransparencyEffectUI, Konfiguration: Debug Win32 ------
1>Performing Custom Build Step
1>Compiling...
1>VCPlugInHeaders.cpp
1>f:\adobe_indesign_cs3_products_sdk_503win\source\precomp\common\WShukHeaders.h(70) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Build log was saved at "file://f:\adobe_indesign_cs3_products_sdk_503win\build\win\objD\TransparencyEffectUI\Bui ldLog.htm"
1>TransparencyEffectUI - 1 error(s), 0 warning(s)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
--------------------

There is no "windows.h"-file in the SDK directory. I tried to include all available SDK-"inculde"-directories to the VC++ directories in the option menue in VCExpress but i got the same error message.

Any ideas how to get the plug-in build with Eclipse or Visual Studio Express 2005 (C++)?

zaphodbeeblebroxxx

Where can download Indesign CC SDK

$
0
0

Hi everyone,

 

I'm really disappointment with adobe tech support team

waste day-long for chating & calling but they don't know where can download InDesign CC SDK for plug-in development.

many support staff of adobe can't determine the difference between InDesign CC product & InDesign CC SDK and InDesign CS & InDesign CC when send me the link to download is CS version.

also my account(calvin.nguyen@niteco.se) is partner Development and paid money for adobe but can't login to this forum but can login by free-account(trung,vu@niteco.se).

According to the InDesign Developer Center | Adobe Developer Connection then CC SDK is moved to https://prerelease.adobe.com/

to download CC SDK I have to register information and wait 2 days, but I registered over 2day and now I can't access to https://prerelease.adobe.com/ at section "InDesign SDK Access Program"
for CC SDK download.

when I bing all this information to ask Tech support team then they don't known about this process !!!! disappointment!

 

So anyone can let me known where can download InDesign CC SDK??

anyone on the forum, if keeping InDesign CC SDK pls give me a copy, thanks so much

 

Thanks


fatal error LNK1181: cannot open input file

$
0
0

Hi,

 

While running the sample plugins for Indesign CC 2015 version we are getting the below mentioned error 

LINK : fatal error LNK1181: cannot open input file '..\..\..\external\dva\third_party\boost_libraries\bin.v2\libs\boost_system\lib\win\relea se\32\boost_system.lib'

Kindly help us to fix this error?

 

 

 

 

Thanks,

Suganthi.B

InDesign CC 2014.0 does not recognise plugins built with CC 2014.0 SDK on Mac

$
0
0

Hi all,

 

I did build plugins for InDesign CC 2015.4 using CC 2015.4 SDK and they worked fine on Mac. I've used Xcode version 7.3.1 (7D1014) and I have OSX 10.8 SDK copied from earlier version of Xcode and have it displayed in Xcode 7.3.1 Base SDKs list. But when I compile the same plugins with the same Xcode version but with CC 2014.0 SDK then InDesign CC 2014.0 displays this alert on startup:

"Adobe InDesign does not recognise MyPlugin.InDesignPlugin" as a valid plug-in. Please reinstall the MyPlugin.InDesignPlugin" plug-in and restart InDesign."

 

The bad thing is that the same message I get even if I build sample plugins from SDK like BasicDialog or BasicPanel. Don't know if this is related to the minor changes I did in the sample projects to make them compile.

 

When I open any sample project from SDK and trying to build it I get error:

"ld: file not found: @executable_path/InDesignModel.framework/Versions/A/InDesignModel for architecture x86_64"

to solve this I've added "InDesignModel.framework" from "<SDK-folder>/build/mac/release_cocoa64/packagefolder/contents/macos" to "Link binary with libraries" list.

 

After that I get another error:

"Undefined symbols for architecture x86_64:

"_objc_readClassPair", referenced from:

__ARCLite__load() in libarclite_macosx.a(arclike.o)"

to solve this one I've switched "Implicitly Link Objective-C Runtime Support" option from "Yes" to "No" as suggested here:

Undefined symbols: "_objc_readClassPair" when o... | Apple Developer Forums

I've changed this option in my CC2015.4 plugins too and InDesign CC2015.4 loaded that plugins fine.

 

After these changes plugin builded successfully, but when I copy that plugin into "/Applications/Adobe InDesign CC 2014/Plug-Ins/SDK" folder then InDesign displays alert above.

 

Does anyone have idea what I'm missing? Thank you very much!

[CS4] - IsBookFile method missing

$
0
0

Hello, I am porting my plugin from CS3 to CS4 version of Indesign.  I was using method

Utils()->IsBookFile to obtain if document is a book in CS3 but in CS4 is this method missing ?

 

Thanks, marxin

error when launching indesign trial cs5

$
0
0

When I've launched indesign. I'm getting this "error" message:

 

"The BUZZWORD ACCESS.APLN plug-in conflicts with BUZZWORD ACCESS.RPLN. Try removing one of the two plug-ins from the Plug-Ins folder and restart InDesign".

 

I coudn't find the files which I had to delete one from.

 

Does somebody know where to find these files? (I'm using windows 7)

 

greets,

 

Sjoerd

Mouse Click Inside text Frame

$
0
0

Hi,

 

I need to get notification when user click inside a text frame (textStrory). I had gone through the IEventWatcher but I am not getting on which should I place this interface.

 

Any Suggestion will be  greatly appreciated.

CS3/CS4/CS5 Win/Mac: Right mouse click menu

$
0
0

Hi

 

How can I implement a menu on a right mouse click? Interfaces? Samples?

 

Is it possible to create an own menu?

 

Or append a menu point to an existing menu (right mouse click)?

 

Thanks for every help.

 

Hans

Development environments for developing InDesign plug-ins

$
0
0

Please confirm on the versions of Visual Studio on Windows and Xcode on Mac to be used for developing InDesign plug-ins.

 

The SDK documentation provides the below information -


Table Styles

$
0
0
Hello,

I have 5x5 table,If iDelete 2 and 3rd col then again add the columns at the same position it does not preserve it's style? so is there any way to preserve the row/ columns style after deleting the sameone and add it to the same poitionm afterward?

missing plugin SMD DB/channels does anyone know it?

$
0
0

I have an indesign file with a placed EPS which shows an error, and when opening get a warning that I 'should not open' the file...

 

The missing plugins are shown here (smd db model and smd channels model)...

I dont know anything much about plugins, but have never had a similar message before and a google search does not show any results. 

 

Can anyone enlighten me?

Build plugin on Mac OS X 10.10 (Yosemite) and XCode 7

$
0
0

Hi

 

Is it possible to build an Indesign Plugin for CS6 (also CS5 and CS5,5) on a Mac with OS X 10.10 (Yosemite) and XCode 7?

 

If yes what have I to do for this?

 

Whats about Indesign CC plugins?

 

Thanks for an answer

Hans

InDesign CC 2015 SDK

$
0
0

Hi,

 

Please update us the date on which the SDK will be available.



Thanks,

Vimala L

Change anchored item position

$
0
0

Hello,

I am trying tochange the position ofan anchored boxwiththe command kChangeAnchoredObjectDataCmdBoss but Ican notmake it work !

 

The SDK sample witch uses IAnchoredObjectSuite works fine but in my case the box is not selected so I can't use take profit of the sample. Here is my code, what am I doingwrong ?

 

bool changePosition(const UIDRef& item)

{

    if (!Utils<IFrameUtils>()->IsPageItemAnchoredObject(item))

        return false;

 

    InterfacePtr<ICommand> changeAnchoredObjectDataCmd(CmdUtils::CreateCommand(kChangeAnchoredObjectDataCmdBoss));

    if (!changeAnchoredObjectDataCmd)

        return false;

       

    UIDList itemList(item);

    changeAnchoredObjectDataCmd->SetItemList(itemList);

 

    InterfacePtr<IAnchoredObjectData> anchoredObjectData(changeAnchoredObjectDataCmd, UseDefaultIID());

    if (!anchoredObjectData)

        return false;

       

    anchoredObjectData->SetPosition(IAnchoredObjectData::kStandardInline);

    anchoredObjectData->SetYOffset(12);

 

    item.GetDataBase()->BeginTransaction();

    bool success = (CmdTools::ProcessCommand(changeAnchoredObjectDataCmd) == kSuccess);

    item.GetDataBase()->EndTransaction();

   

    return success;

}

 

thanks

 

PS : after executing the command I have it in the undo menu of InDesign but the anchored box remain unchaged !

Viewing all 78596 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>