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

How to re-use indesign plugin version CS6 in CC version

$
0
0

Hi everyone

 

Now I completed some plugins for CS6 version(they are running ok in CS6), when I copy them to CC version and start CC version, an error occurs "InDesign does not recognize pluginName.PLN as a valid plugin.  Please reinstall..."

 

So, can guide me how to re-use plugins version CS6 in CC version please?

 

Thanks


How to create custom TextEditBoxWidget with icon

$
0
0

Hi all,

Can you please help me how to create custom texteditbox with an icon inside it as below image?


Custom_editText.png

I would like to create a TextEditBox as a search field but I don't have any idea to implement it. Thank so much!

Can I get sample plugin code/project etc. in which all the event supported has been handle. similar to JS script found at http://in-tools.com/downloads/asst/EventWatcher.zxp. Posted on forum https://forums.adobe.com/message/3930199

No stop in StartupShutdown, Unique prefix

$
0
0

Hi all,

 

I am porting my second PlugIn from CS6 to CC2014. The formal syntactic changes are made, but the PlugIn causes a crash of InDesign.

 

So I took my newly successfully ported PlugIn, removed all c-files and the resource, and added some of the c-files + resource of the second PlugIn. I tried to make the new PlugIn ready to show the "About..." dialog at first. This succeeded, but only when I used the prefix of my first PlugIn. I am almost sure that there is no file left from the first PlugIn in the project. But it seems that it has any relation to any of this first PlugIn project files.

 

And then there is a second mysterious thing: When I set a breakpoint inside the "StartupShutdown" function, it doesn't stop there. It means the code is not involved. But why?

 

The breakpoint at the line

     "CREATE_PMINTERFACE(MyStartupShutdown, kMyStartupShutdownImpl)"

works.

 

Has anybody a helping idea for me?

 

Thanks, kb_alfa

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?

How can I identify a table row other than by row number?

$
0
0

We have a plug-in that allows the user to insert database fields into text stories (similar to a mail merge application). We can insert database fields into text cells, and we'd like to be able to create rules that allow the user to specify things such as "Don't show this row if the value of the first cell of the next row is XXX". (It stays visible in InDesign, but we can control what gets printed according to such rules, because we export the InDesign document to a proprietary format.)

 

The only part I haven't been able to do is to attach a rule to a specific row. As far as I can tell, the SDK does not let me create my own row or cell attributes, so I can't store the rule information there. The only way I can think of is to create a table with a row number and whatever rules are associated with it.

 

The problem with that, of course, is that row numbers can change as rows are added and deleted, e.g., if I apply a rule to row 3, then add a row right before it, the rule now applies to the new row and not to the row it was originally applied to.

 

So the question is, does anyone know of a way to identify a row other than by its position in the table?

 

Thanks for any info.

 

Bob

how to empty the array key and value

$
0
0

Hi All,

 

please suggest me how to remove the Array key and values in javascript.

 

Regards,

Jack

How to add Index key term and page number with XML tag from word documents

$
0
0

Hello,


I have Index key terms with page numbers as word document and want to add each key term in InDesign CS4 Documents with unique XML tags.


Can someone help me on this please!

 

Regards,

Sanjay


Image preview quality

$
0
0

Hi all,

 

currently I'm using the IImportPreview::Create24bitRGBPreview to draw the image on the panel for preview & facing the quality issue as below:

 

ImageQuality.png

so, is there other function supports drawing image with higher quality(more than 24 bits) for preview on panel?

 

thanks,

trung.vu

Change page items type

$
0
0

Hello every one,

I am working on page items.

I meet an issue of changing type of frame.

First, i create a graphic frame by using Rectangle Frame Tool(F).

then i choose Type Tool(T) and click on frame i've just created.

Type of frame will be changed from Graphic to Text Frame.

 

Does any one know which even control this kind of action?

I want to control this action to prevent my frame to be changed.

 

Thank in advance

Duy.

Debug version of indesign asking for release version of .pln?

$
0
0

when i start debugging my application from VS this is the alert it gives. Can anyone please help about what the issue is, the .pln in the PlugIn folder is the "debug 64" and as you can see the indesign version is also the debug version but when i hit "F5" key to start debugging this is the error it gives, teh indesign application starts but doesn't stop an breakpoint.

Capture.PNG

how to take PasetBoardCoordinate in IPathUtils for draw custom line funciton CreateSplineLine()

$
0
0

hi,

 

i am drawing custom line through IpathUtils but i don't know how to take pastboardcoordinate

this is funciton which is used

 

virtual UIDRef CreateLineSpline
(
const UIDRef& parent,
const PMPointList& pathPoints,
INewPageItemCmdData::GraphicAttrType attrType,
bool16  bAllowDefaultStandOff = kTrue,
const Transform::CoordinateSpace &boundsSpace = Transform::PasteboardCoordinates()
) const = 0;

 

and this is my code. if there is any fault in my code please correct those error.

 

 

void DLineDrawPath::DrawLine(UIDRef docref)

{

  InterfacePtr<ISpreadList>spreadLayer(docref, IID_ISPREADLIST);

  UIDRef docUIDRef = ::GetUIDRef((IPMUnknown*)(spreadLayer));

  if (spreadLayer == nil)

  {

  ASSERT_FAIL("spreadLayer doesnt get");

  return;

  }

 

 

 

 

  InterfacePtr<IPathGeometry>pathGEomerty(docref, UseDefaultIID());

 

  PMReal xStart = 0, yStart = 0, xEnd = 10, yEnd = 10;

  K2Vector<PMPoint> pointList;

  pointList.push_back(PMPoint(xStart, yStart));

  pointList.push_back(PMPoint(xEnd, yEnd));

 

 

  if (UIDRef ref = Utils<IPathUtils>()->CreateLineSpline(docUIDRef, pointList, INewPageItemCmdData::kDefaultGraphicAttributes, kTrue))

  {

  CAlert::InformationAlert("Custome Line Draw");

  return;

  }

}

how to count page number on spread

$
0
0

how to count page number on spread

Memory block overwrite

$
0
0
I'm seeing this assert and am having trouble finding a solution to the problem. I suspect it has something to do with the overloaded global operators new and delete in InDesign/MemoryStatics.h. I should mention that I'm using CS3 on Windows using MSVC 8.

I'm using a 3rd party library (omniORB) and am getting this assert when certain objects from the library are deleted. Internally they allocate/free a buffer using new/delete, and entering the debugger shows a call to their destructor followed by multiple calls to pmruntime.dll!MemoryPool::GetNonPoolSizePeak() before finally failing in msvcr80d.dll!_CrtIsValidHeapPointer. I'm guessing that the custom new/delete in InDesign is causing problems somehow, but I don't know enough about the nitty-gritty of C++ to debug it.

Has anyone run in to this sort of problem before? I think http://www.adobeforums.com/webx/.59b5ffd3 might be related. I know that heap corruption is often caused by mixing debug and release dlls, but I've checked to make sure that I'm linking against the proper libraries. Even a link to more information on this sort of problem would be helpful.

InDesign CS5.5 debug build

$
0
0

Hi All,

 

I have sucessfully installed indesign cs5.5 debug on my windows XP SP3.

 

On running the application I have got following Aseert message one after another.

- Cannot load plugin FONT MANAGER.RPLN

- ObjectModel ID kDlgDialogObserverImpl is multiply defined by plugin 0xbe9500

- ObjectModel ID kClusterRadiowidgetnewid is multiply defined by plugin 0xaba1a30

- ObjectModel ID kRfhnewMidBookListGroupPanelWidgetID is multiply defined by plugin 0xaba1a30

- FillOutInterfaceInfo - Impl kRfhSuiteTextCSBImpl not yet registered. Missing from factory list resource in plugin kRfhPluginID?

- Cannot load plugin SING.APLN

- About to use nil interface ptr! Queried IID was FontMgrPrefix + 4 (0x3e04), on Boss kWorkspaceBoss

 

Then aftter Indesign application gets crashed.

 

I have following softwares installed at my side

 

1. Visual Studio 2008

2. Visual Studio 2005

3. Visual Studio 2005 Service Pack 1 (The regular SP1, not the Windows Vista/Win7 specific service pack)

 

I have also deleted preference files.

 

Please let me know the required system configuration to run cs5.5 debug build.

 

 

Regards,

Sameer.


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?

IDocFontMgr::GetFontFamilyUID is not working for document installed fonts

$
0
0

Hi All,

 

I have a font say "Gotham-Book" which exist only in "Document Fonts" folder and not used by InDesign document.

My requirement is to get the font family UID of a document installed font.

 

I have done followings

used ILocalFontManager to get the list of all fonts available in "Document Fonts" folder.

InterfacePtr<IFontMgr> fntMngr(doc, UseDefaultIID());

  if(fntMngr == nil) {

       break;

  }

  ILocalFontManager* lFntMngr = static_cast<ILocalFontManager*> (fntMngr.get());

  if(lFntMngr == nil) {

  }

PMString familyName("Gotham"); // this is just an example you can test with other family too

IFontGroup* fontGroup = lFntMngr->QueryDocumentFontGroup(familyName);

int32 faceCount = fontGroup->GetNumFonts();

for (int32 faceIndex = 0; faceIndex <faceCount; faceIndex++) {

InterfacePtr<IPMFont> font(lFntMngr->QueryFont(fontGroup, faceIndex));

if (font == nil) {

continue;

}

// code which I used to get family UID

InterfacePtr<IDocFontMgr> docFontMgr(doc->GetDocWorkSpace(), UseDefaultIID());

  if(docFontMgr == nil){

break;

}

UID fUid = docFontMgr->GetFontFamilyUID(font, kFalse);

//The above method gives an invalid UID

}

let me know if we have another method to get the family UID from IPMFont object or family name


Regards,

Alam

CC2014 plugin port crashing

$
0
0

I'm trying to port our InDesign plugin from CC to CC2014 and am getting a crash when trying to launch.

I've approached this from 2 different angles, with the same result:

First attempt: just copied my CC project and pointed it to the 2014 SDK

Second attempt: copied one of the sample projects from the 2014 SDK and set it up with everything needed for my plugin

I can get it compiling fine both ways, but both result in the same crash.

 

Below is the callstack from the crash log.

 

Any advice greatly appreciated!

Thanks

 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

0   ObjectModelLib.dylib           0x000000011195888e 0x11192c000 + 182414

1   DV_WidgetBinLib.dylib         0x000000010d448aea DVPanelControlData::ReadWrite(IPMStream*, IDType<ImplementationID_tag>) + 122

2   com.adobe.InDesign.DV_Widgets 0x000000011baf9b2d 0x11baf8000 + 6957

3   ObjectModelLib.dylib           0x0000000111958928 0x11192c000 + 182568

4   DV_WidgetBinLib.dylib         0x000000010d448aea DVPanelControlData::ReadWrite(IPMStream*, IDType<ImplementationID_tag>) + 122

5   com.adobe.InDesign.DV_Widgets 0x000000011baf9b2d 0x11baf8000 + 6957

6   PublicLib.dylib               0x000000010e69dc8d CreateObjectNoInit(IDataBase*, RsrcSpec const&, IDType<PMIID_tag>, IObjectModel const*) + 557

7   com.adobe.InDesign.Application UI 0x000000011a8af0fd 0x11a86d000 + 270589

8   com.adobe.InDesign.Application UI 0x000000011a8c61c3 0x11a86d000 + 364995

9   PublicLib.dylib               0x000000010e60376a CInitializer::RegisterResources(IDResource, void*) + 74

10  PublicLib.dylib               0x000000010e608c60 0x10e5a2000 + 420960

11  PublicLib.dylib               0x000000010e608c08 0x10e5a2000 + 420872

12  PublicLib.dylib               0x000000010e87457c 0x10e5a2000 + 2958716

13  PublicLib.dylib               0x000000010e873593 0x10e5a2000 + 2954643

14  PublicLib.dylib               0x000000010e8743f9 IDResourceShell::EnumerateResourcesByType(IDType<PluginID_tag> const&, unsigned int const&, boost::function<bool ()(IDResource, void*, RsrcSpec)>, void*) + 153

15  PublicLib.dylib               0x000000010e8741ec IDResourceShell::EnumerateLocalizedResourcesByType(IDType<PluginID_tag> const&, unsigned int const&, boost::function<bool ()(IDResource, void*, RsrcSpec)>, void*, PMLocaleId const&) + 572

16  PublicLib.dylib               0x000000010e60362d CInitializer::Register(IDType<PluginID_tag>, PMLocaleId const&) + 189

17  com.adobe.InDesign.AppFramework 0x000000011a6a5929 0x11a646000 + 391465

18  com.adobe.InDesign.AppFramework 0x000000011a6a59f5 0x11a646000 + 391669

19  com.adobe.InDesign.AppFramework 0x000000011a75d8b5 0x11a646000 + 1145013

20  com.adobe.InDesign             0x000000010d40078f main + 303

21  com.adobe.InDesign             0x000000010d4005f4 start + 52

Error in compiling sample project of Indesign CC 2014

$
0
0

Hi,

 

I am trying to compile sample project of Indesign CC 2014 using VC++ 2013. but it is showing me following error:

"error C2039: 'assert_not_arg' : is not a member of 'boost::mpl' (..\..\..\source\sdksamples\basicmenu\BscMnuSuiteLayoutCSB.cpp)    D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\boost_libraries\boost\iterator\detail\facade_iterator_catego ry.hpp"

 

Build result is also showing "Unknown compiler version - please run the configure tests and report the results".


I have added following path in "Project properties->VC++ directories->Include directories"

D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\boost_libraries

D:\Adobe InDesign CC 2014 SDK\external\dva\third_party\adobe_source_lib

 

Please let me know if any kind of settings I need to change in VC++ 2013.

I am using application Indesign CC 2014 and VC++ 2013 and OS is Windows 8

 

Thanks in advance,

Priyanka

Compiling CS3 plugins on Xcode 5 or 6

$
0
0

I read in other discussion threads that you can compile CS3-CS4 plugins (the samples to begin with) in Xcode 6 DP now released. What changes are needed in the version of the odfrc-cmd that comes with CS3 SDK? Can I use the compiler from CS5?

I always get the "..odfrc-cmd: Bad CPU type in executable" because it's a PowerPC binary and it can't be run in 10.8 or 10.9 due to their lack of support for this type of executables (rosetta).

Thanks for your tips!

Viewing all 78596 articles
Browse latest View live


Latest Images

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