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

How to save file with path?

$
0
0

ActiveContext* context = GetExecutionContextSession()->GetActiveContext();

          IDocument* fDoc = context->GetContextDocument();

if( fDoc != NULL)

          {

                    UIDRef documentUIDRef = ::GetUIDRef(fDoc);

 

  InterfacePtr<IDocFileHandler> docFileHandler(Utils<IDocumentUtils>()->QueryDocFileHandler(documentUIDRef));

  IDFile sysfile(PMString("/Users/Arun/Desktop/helloworld.indd"));

                    docFileHandler->SaveAs(documentUIDRef,&sysfile);

          }

 

Above code save file name as  "/Users/Arun/Desktop/helloworld.indd" in "/" directory in Mac Os


How i can use Cocoa framework APIs in indesign CC version

$
0
0

Like NSString,NSFileManager.

 

Thanks

Qamar khan

XCode 5 and InDesign CC 2014

$
0
0

Something in the CC 2014 SDK looks strange to me. In the porting guide, The mentionned version of XCode is 5.0.2. This version of XCode supports Mac OS SDK 10.8 and higher. But in InDesign CC 2014 requirements, Mac OS 10.7 is supported. So why using XCode 5.0.2 which does not support this version of Mac OS?

 

Furthermore, I have been able to compile a plugin with XCode 4.5.2, as needed for InDesign CC (9.x) version.

 

Is this a mistake in the documentation, or did I miss something enormous?

From where I can download Indesign cc 2014 SDK for C++ plugin development?

$
0
0

I have plugin which work fine with indesign cc 2013. I am in a processes of adding support for indesign cc 2014 but SDK is not available for download. Please suggest how to get SDK?

Adobe InDesign CC 2015 does not recognize "MyPlugin" as a valid plug-in.

$
0
0

Hi All,

 

I am using InDesign Plugin on OSX 10.9, it is compiled and Built in XCode 5.0.2 against the Adobe SDK 11.0 but cannot load when starting InDesign.

I get the message - "Adobe InDesign does not recognize "MyPlugin" as a valid plug-in. Please reinstall the "MyPlugin" plug-in and restart InDesign."

 

Any ideas for troubleshooting ?

 

Thanks

Ido

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!

Shared Libraries Example

$
0
0

Hi

 

Chapter 7 of the Javascript tools guide talks about using external shared libraries.

Direct access to library calls through the ExternalObject instance — Use the direct-access style

for C-language libraries. For each function defined in the C library, there is a corresponding method in

the ExternalObject object. You can pass data to these methods and receive the return value directly.

For example:

mylib = new ExternalObject ("lib:" + samplelib); // load the library

It also states

"Indirect access to library calls through JavaScript classes — Use the indirect style to access classes defined in a C++ library. For each C++ class defined in the library, a corresponding JavaScript class is automatically defined, and you can access the properties and methods through an instance of that

class."

 

Does anyone have a sample (source code) of an external library preferably both for direct and indirect access that can be access using the new ExternalObject ("lib:" + samplelib); method?

 

TIA

 

Trevor

Where can Download Idml sdk from Indesign cc

$
0
0

where can i Download the Idml sdk from The Indesign cc?

i need the specification from 9- 11!

thanks

thomas


InDesign CC 2018 SDK-Reg

$
0
0

Hi,

 

InDesign CC 2018 has been released.I Couldn't find InDesign CC 2018 SDK in Adobe Prerelease .Is Adobe InDesin CC 2018 sdk has been released?If so where can I find it.Please do guide me on this.

 

Thanks and Regards,

Revathi V

Is InDesign API available for C# .net language?

$
0
0

Is InDesign API available for C# .net language?

Developing Plugin Like Saxoprint and Flyeralarm?

$
0
0

Hello Community,

 

I saw InDesign plugins in Saxoprint and Flyeralarm that makes avaliable to design with their templates, upload with button inside the InDesign and jump directly to the add to the cart page. How can I develop a plugin like this for 150+ products and 1000+ templates for my website? Or where can I find a developer to make this for me?

 

Thank you in advance.

Plugin does not write files on OSX

$
0
0

Hi,

 

My plugin does not read/write files in the following folders:

 

- User home folder

- User shared folder

 

This happens for one particular customer with OSX Sierra (Italian) and InDesign CC 2017.

I use the following code:

 

    FSRef ref;

    OSType folderType = kSharedUserDataFolderType;

 

    FSFindFolder(kLocalDomain, folderType, kCreateFolder, &ref);

    FSRefMakePath(&ref, (UInt8 *)&commonDocumentsPath, MAX_LENGTH);

 

To get the users shared folder. This works fine on my own OSX High Sierra laptop and

also on another Mac that I have. I got this code from this forum BTW.

 

Of course I checked and set the proper permissions and owner using chmod and chown.

I even tried to start InDesign from the cmd. line with sudo.

 

Any ideas why a plugin is not able to read/write files in these folders? Is there some kind of OSX setting I need to use?

How to interrupt/cancel save process

$
0
0

Hello,

 

Here is the situation : A user is working on an InDesign document with the plugin I develop. He clicks on the save button. At this moment, I would like to "catch" the save action to display a OK/Cancel dialog box. A click on OK will effectively save, while a Cancel click cancels the save action.

 

I have seen the signal system, but it only allows to be informed when a save is being to be processed. I did not see anything about canceling the save process. Is it possible ?

 

Thanks a lot.

InDesign cc 2017 sdk

$
0
0

Hello,

 

I am building plug-ins for InDesign and I need to download the newest SDK for cc 2017, where can I download it ?

 

 

br.

Łukasz

need to extract footnote text with text properties- bold,italic

$
0
0

Hi,

 

i have inserted footnote using indesign footnote feature and  trying  to extract footnote with text properties- bold,italic - using i sdk programming. whether it is possible through InDesign SDK

 

Regards,

Rajkannan


How to use CoreFileUtils?

$
0
0
Hi iam trying to get the OS temporary path using CoreFileUtils.
When I try following code, I get Linking error

AFile aFile1 = CoreFileUtils::GetTempDir();

can anyone show me why..

thanks,
nataraj

ODFRez developer reference

$
0
0

Hello,

 

I'm new to both Indesign Plugin development and C++, but so far it's working out rather well. However, i can't find any documentation about the available widgets ini ODFR, and how to implement them in my .fr file.

 

Is there a way i can interpret this data from the given boss classes, or is there some document I haven't found yet?

 

Best regards,

 

Joey Daemen

IDFile Mac OSX

$
0
0

Please find out on MAC OSX development.

The below code GetIDFile() does not work and it totally crash the XCode 5.02.

I need to know what to fix in the code so I can open the file stream,  Or

There is another alternative to open the stream and read in the file.

 

PMString tmp("/Users/Sam/Desktop/Images/car/CarVDP.csv");

tmp.SetTranslatable(false);

SDKFileHelper fileHelper(tmp);

IDFile idfile = fileHelper.GetIDFile(); //Crash on MAC OSX

InterfacePtr<IPMStream> stream(StreamUtil::CreateFileStreamRead(idfile));

ASSERT(stream);

if (!stream) {

     return inout;

}

 

Thanks,

Sam

In InDesign CC 2018, cep extension is not getting displayed in windows menu option, after updating CEP version to 8.0 in manifest file.

$
0
0

Hello,

 

We are having a extension which is working fine in InDesign CC 2017, now we are trying to use the same with InDesing CC 2018 with supported CEP version 8.0. For that we have updated our manifest file entry as:

 

<ExecutionEnvironment>

        <HostList>

            <Host Name="IDSN" Version=["13.1", "13.9"]/>

        </HostList>

        <LocaleList>

            <Locale Code="All"/>

        </LocaleList>

        <RequiredRuntimeList>

            <RequiredRuntime Name="CSXS" Version="8.0"/>

        </RequiredRuntimeList>

    </ExecutionEnvironment>

 

But we are unable to see the extension in InDesign's option "Window > Extensions menu".

Also, If we will keep the CEP version to 7.0 then it seems to work.

Short Question about Plugins with InD's AutoRecovery

$
0
0

Hello all you Devs,

maybe someone can answer my short question: Is it possible to do the necessary stuff to start your plugin/s before InDesigns recovery starts to recover?

 

For better understanding (im not a native speaker also):

We currently run a third party DAM with its plugin. Upon start, the plugin needs to be connected to a server, to be able to access the files.

When InDesign crashes, we always are very glad to see InDesign recover and nearly have no loss.

But with the plugin installed, the recovery automatically starts, leaving no interaction to connect to the dam-server, resulting in InDesigns client to freeze.

 

Workaround is to disable the plugin, then let InDesign recover, save doc, then quit InD, to put the DAM plugin back into plugin-folder. Thats a big BS

 

You as software-developers – who know a bunch of stuff what can be done with the client and what not – can you say…

a) the developer could do better: what about auto-connect if recovery start (is that detectable?)

b) the developer could do better: there can be an interaction, InDesign halts recovery for

c) other than initialize the plugin upon start, theres nothing a dev can do, because recovery is prioritized

d) something I didnt thought of, because im just a curious enduser, maybe scripter

Viewing all 78596 articles
Browse latest View live


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