Hello, I am trying to develop plugins for Adobe InDesign CS6, and I am currently using Visual C++ in Visual Studio 2015 and I am having trouble importing Adobe's environment into visual studio, since the guide available is in reference to Visual Studio 2010. Which directory should I set to go to which parts of the SDK? Thank you very much.
Setting up environment in Visual Studio 2015 for building plugins for InDesign CS6
How close document unsave?
This my code open and close file:
SDKLayoutHelper layoutHelper;
UIDRef result =layoutHelper.OpenDocument(fSysFile);
//close file
layoutHelper.CloseDocument(result,kFalse);
But it still show dialog confirm save or not save ,
How close document un save file and not show dialog?
How get Font Id from IPMFont?
To set Font by SDK , I using UID font=170;
If input is font name, i want get font id.
So i get list font from application,
How get Font Id from IPMFont?
I try : font->GetMacFontID()
But it show error: error C2039: 'GetMacFontID' : is not a member of 'IPMFont'
Could macOS app invoke Indesign like C#
Hi,
I am a .net programmer like to use c#,and I had developped few applications.
In c#,I can use the "Activator" to get the indesign app object like the "app" object in javascript or vbscript.
In this time,I want to migrate the programs to macOS,but I don't know how to get the indesign app object,
Could anyone tell me?
kind regards.
Can any body give idea about indesign debug version cs4?
Hi this is sanjeev working for indesign plugin development,
can anybody tell where can i get indesign debug version cs4? whether it is available free if it is can please provide the link,
if not then how can i get this?
Thanks
Sanjeev.k
Exception #258: Cannot find the folder "c:\ServerTestFiles\ExportPDF.pdf".
CS5 - Build 355
ExportPDF.java sample in the SDK.
I have tried variations on the folder name etc to no avail.
Any suggestions?
Thanks
Export Paragraph Style
In in-design after double clicking paragraph / character style get paragraph / character style Options and select option "Export Tagging" we get export CSS of paragraph / character style. Can it possible using in-design sdk. If yes how?
Please reply.
CControlView class in Adobe Indesign CC SDK
Hi,
I am working on porting our Indesign CS6 plugin to Indesign CC plugin.I have go through the method differences between common API classes in Indesign CS6 and Indesign CC build which has given in Indesign CC SDK's (reference folder).In that, CControlView class changes has given,but this class was not available in the following path,
AdobeIndesignCC SDK->source->public->libs->widgetbin->includes.
I dont know whether the class name(CControlView) has been changed in the Indesign CC SDK or not.so please help me if anyone has idea regarding this.
kWorkSpaceBoss data gets deleted on indesign crash
Hi Forum,
A very happy new year to all .
I have a small problem. I need to store global preferences in Indesign. I implemented that using the kWorkSpaceBoss. Now whenever indesign crashes, the data gets deleted. I noticed that even happens with global preferences of Indesign itself.
What can I do to make this data persistant across all sessions?
Thanks!
Getting incorrect values for linkQueryResult (ILinkManager) while debugging our plugin in Adobe InDesign CC debug
Hi,
We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
if(document == nil)
{
//CAlert::InformationAlert("Doc Interface Not Created");
break;
}
IDataBase *db = ::GetDataBase(document);
InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
if(linkmanager == nil)
{
//CAlert::InformationAlert("linkmanager Interface Not Created");
break;
}
LinkQuery Query;
ILinkManager::QueryResult linkQueryResult;
linkmanager -> QueryLinks(Query, linkQueryResult);
for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
{
InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
if ( iLink )
{
InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
ILinkResource::ResourceState rs = resource->GetState();
PMString fileName = resource -> GetLongName(kTrue); //gets full path
CharCounter lc=fileName.LastIndexOfCharacter('.');
PMString *exten = fileName.Substring(lc+1,3);
if((*exten).Compare(kFalse,"xml")==0)
{
xmlDataLinkName = fileName;
}
}
}
Kindly help us if anyone has idea regarding this issue.
Thanks,
VIMALA L
Indesign page info access, via SDK or library.
Hello,
Does anyone know if there is a library or sdk that will allow me to access data from an InDesign document? I need to gather the page number data. I know this can be done with javascript and applescript, but that requires the app running. If there isn't, is the InDesign Document format spec published?
Thanks
Dean Krueger
XCode: Error linking a sample of Adobe Indesign SDK CC 2015
Hi
I like to build a sample of the Adobe Indesign SDK. Compiling is OK, but I have problems to link the plugin.
I get the following error during linking:
Then I had a look into this framework. You can see the structure of it in the next image:
I think the framework is not OK. No entries in Resources and Versions.
I downloaded "plugin_sdk_072_20150618.zip", the SDK for CC 2015 from https://prerelease.adobe.com/ and extract it.
What could be wrong?
Is this the correct SDK? I can't find another one.
Is the SDK for Windows and Mac the same?
What can I do now?
Any ideas?
Thanks for the help.
Kind regards
Hans
how to fetch x/y coordinate of page item which is laid on active page ?
i have create a plugin for fetching x/y coordinate of page item which is laid on page/ create page item when new document open.
these thing should be heppening when i am click on menu. show a alert which is show that this page item has coordinate this this.
How to catch keyboard events for treeview widget
Hello,
I would like to know how to catch keyboard events for a treeview widget (kTreeViewWidgetBoss).
I have added an IID_IEVENTHANDLER to the Class (in the Boss class definitions in the resource file), but
that EH responds only to the LButtonDown event, it does not respond to the KeyDown, KeyCmd, KeyUp events and
I don't understand why... It may be because the widget does not have focus, but I don't know how to set focus to the widget either.
My event handler class inherits from CEventHandler.
I also tried to attach IID_IEVENTHANDLER to the dialog (that contains the treeview) observer, but that does not work either.
So what do I need to do in order to be able to listen to keyboard events from the treeview widget?
Thanks in advance!!
Regards,
Jan
Replacement function 'operator new' cannot be declared 'inline'
How to use a boss class?
Hi everyone,
Please explain me how to use a boss class?
for example: kSetPageSetupPrefsCmdBoss, kWorkspaceBoss, kDocStyleBoss..
Low quality of custom linked files in exported pdf
I've implemented custom links and everything works fine except export to pdf (File -> Package). When exported to pdf, quality of my linked files become low. In InDesign the quality is fine though.
Example:
If I drag'n'drop some pdf file to InDesign document then link to that file is created. After that I'm exporting this InDesign document to pdf via File->Package. The quality of linked pdf file in exported pdf is fine as expected. But here what happens with custom links: When I drag'n'drop pdf file from my plugin the custom link is created. In the implementation this custom link is referencing to the same pdf file from first case. This custom link is displayed fine just like standard link to file. But when I export this InDesign document to pdf via File->Package in exported pdf file the quality of my linked pdf is low. Even if I create InDesign document with two linked pdf files one is standard link to file and other is custom link that refers to the same file then after export to pdf my custom linked pdf file quality is low while standard liked pdf file is of good quality.
What is the difference? I use interface SDK gives me to implement custom links and it just asks me to provide FileStream to linked file. I never control the quality of this file so where InDesign looses the quality of my custom linked files? I think this is SDK problem? Could anyone confirm or deny this? Thanks!
Prefix ID Registration Web Page Missing
does anybody know where the prefix registration web page has move to.
if I go to http://www.adobe.com/devnet/indesign/prefix_reg.html and clicking on the link 'Register an InDesign Prefix ID' it takes me back to the main partners screen.
Is it possible to change the link for a placed graphic image(.JPEG etc) to physical path which is not accessible by InDesign client?
We have all our image files placed on a single server machine which is different than InDesign client machine. Also, there is no shared drive or a mount to access such images directly by InDesign client.
To link such images, I am getting the low resolution image via network, writing the file in some folder in my client machine and then placing it in the graphic frame in InDesign document.
Now the problem is, after working on the INDD file, it has to be saved back to the server machine (where my actual high resolution images are present), and from this machine, PDF will be generated (either by using a client or server). Since the placed images have a different file path, the links are now broken.
I want to know if it is even possible to change the image link associated with the placed image file via plugin even when InDesign client does not have access to the actual file path. If yes, what are the interface::methods I can use to do so?
I already tried to achieve the same thing via scripting but InDesign doesn't allows to uypdate the link(read only).
Position of image
Hi,
I have a problem with my C++ InDesign 2017 plugin.
The problem is that the image does not remain on its original position after it has been relinked via
ILinkFacade->RelinkLink
ILinkFacade->UpdateLink
I am stuck with this problem, but it is a bit hard to explain:
It does remain on its original position and the container frame stays the same in my old script based plugin.
I tried a bunch of different things:
- Store the IHierarchy pointer before the relink and restore it with IHierarchy->SetParent
- Store the bounding box before the relink and restore it with IGeometry->SetStrokeBoundingBox
None of these work.
Dropbox - problem_with_cropping.zip
What I want is basically that the image and bounding box and/or frame remain on the same position and that the frame keeps the same size after
the link has been relinked with the enhanced image.