I have received a file from overseas which looks like the CS5 indesign icon, but which I cannot open through my CS5 indesign software. The message SHAREDCONTENT.RPLN first appears and then after clicking OK to open anyway, Cannot Open File appears with a list of missing plug-ins. The message reads: Please upgrade your plug-ins to their latest versions or upgrade to the latest version of Adobe Indesign. I have not been able to find these plug-ins online and I'm not financially able to upgrade just yet! Any ideas anyone?
plug-ins - "Cannot open File"
Indesign Server CS6 / Windows 7 professionel 64bit: Can't start the server
Hi
I develop plugin for Indesign Server CS6.
Now I like to install Indesign Server CS6 on my developer PC with Windows 7 prof 64bit. But the server don't start.
The message "The Application was unable to start correctly (0xc000007b). Click OK to close the application." is displayed.
- Is it possible to install the server on Windows 7 prof 64bit?
- If no how can I debug my plugin?
- A workaround?
Thanks for the help.
Kind regards
Hans
How to enable the widgets in Indesign CC..?
Hi,
I am working on porting our Indesign CS6 plugin to Indesign CC plugin.I have completed the porting and the plugins has opened in Indesign CC,but i have one problem in design. Three of our Widgets has not opened in Indesign CC.
The code is the following,
.fr file
resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)
{
__FILE__, __LINE__,
kSampleDialogWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding
0, 0, 700,400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
kSampleDialogTitleKey, // Dialog name
{
//<FREDDYWIDGETDEFLISTUS>
SamplePrefListBox
(
SamplePreflistboxWidgetID,
kSysOwnerDrawListBoxPMRsrcId, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(15,15,170,360) // Frame
kTrue, kTrue, // Visible, Enabled
1,0, // List dimensions
19, // Cell height
1, // Border width
kFalse,kTrue, // Has scroll bar (h,v)
kTrue, // Multiselection
kTrue, // List items can be reordered
kTrue, // Draggable to new/delete buttons
kTrue, // Drag/Dropable to other windows
kTrue, // An item always has to be selected
kFalse, // Don't notify on reselect
kSamplePrefListElementRsrcID // Fill list box with widgets with this ID (default is 0)
{
CellPanelWidget
(
kCellPanelWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(-1,1,154,340) // Frame
kTrue, kTrue // Visible, Enabled
{
// ----- This is the CPanelControlData that holds the widgets
// that are items in the list box. They are not persistent
//
}
)
},
),
GenericPanelWithBorderWidget
(
SamplePrefGeneralTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
"",
{
StaticTextWidget
(
kInvalidWidgetID, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 15, 138, 35, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
kSamplePrefProjectPathStringKey, // Initial text.
kSamplePrefProjectPathTextEditBoxWidgetID // No associated widget
),
// TextEditBox Widget resource
TextEditBoxWidget
(
kSamplePrefProjectPathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 15, 420, 35), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
),
ButtonWidget
(
kSampleChooseProjectButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 15, 500, 35,
kTrue, kTrue,
kSampleChooseBtnStringKey,
),
GenericPanelWithBorderWidget
(
SamplePrefFittingTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
"",
{
StaticTextWidget
(
kInvalidWidgetID, // WidgetId
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame( 10,15,300,35 ), // Frame (l,t,r,b)
kTrue, kTrue, kAlignLeft, // Visible, Enabled, Alignment
kDontEllipsize,kTrue, //**new element in InDesign 2.0: don't add any ellipses
"Drag/Drop Operation", // Text
0// WidgetId for associated control for shortcut focus
),
SeparatorWidget
(
0,
kPMRsrcID_None,
kBindNone,
Frame(10,37,450,38),
kTrue,kTrue,
),
StaticTextWidget
(
0, // WidgetId
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame( 10, 40, 250, 60 ), // Frame (l,t,r,b)
kTrue, kTrue, kAlignLeft, // Visible, Enabled, Alignment
kDontEllipsize,kTrue, //**new element in InDesign 2.0: don't add any ellipses
kSampleTextOptionsTextKey, // Text
0 // WidgetId for associated control for shortcut focus
),
CheckBoxWidget
(
kSampleTextFitCheckBoxWidgetID, // WidgetId
kSysCheckBoxPMRsrcId, // RsrcId
kBindNone,
Frame(150, 40, 350, 60) // left, top, right, bottom
kTrue, // Visible
kTrue, // Enabled
kAlignLeft, // Alignment
kSampleTextFitChkBoxTextKey // Initial text
),
GenericPanelWithBorderWidget
(
SamplePrefScriptEventsTabWidgetID, kPMRsrcID_None,
kBindBottom |kBindRight,
Frame(175,10,695,360) // Frame
kTrue, kTrue,
"",
{
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 10, 200, 30, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
kSampleDropDownEventsTextKey, // Initial text.
0 // No associated widget
),
SamplePrefListBox
(
SamplePrefDragDropScriptlistboxWidgetID, kSysOwnerDrawListBoxPMRsrcId, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(10, 35, 200, 120) // Frame
kTrue, kTrue, // Visible, Enabled
1,0, // List dimensions
19, // Cell height
1, // Border width
kFalse,kTrue, // Has scroll bar (h,v)
kTrue, // Multiselection
kTrue, // List items can be reordered
kTrue, // Draggable to new/delete buttons
kFalse, // Drag/Dropable to other windows
kTrue, // An item always has to be selected
kFalse, // Don't notify on reselect
k SamplePrefListElementRsrcID // Fill list box with widgets with this ID (default is 0)
{
CellPanelWidget
(
kCellPanelWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindAll, // Frame binding
Frame(-1,1,187,243) // Frame
kTrue, kTrue // Visible, Enabled
{
// ----- This is the CPanelControlData that holds the widgets
// that are items in the list box. They are not persistent
//
}
)
},
),
ButtonWidget
(
SamplePrefDragDropScriptAddBtnWidgetID,
kSysButtonPMRsrcId,
kBindNone,
20, 125, 90, 145,
kTrue, kTrue,
kSampleAddScriptButtonTextKey,
),
ButtonWidget
(
SamplePrefDragDropScriptRemoveBtnWidgetID,
kSysButtonPMRsrcId,
kBindNone,
100, 125, 180, 145,
kTrue, kTrue,
kSampleRemoveScriptButtonTextKey,
),
Elements added:
void SampleDialogController::PopulatePrefListElement()
{
do
{
InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
ASSERT(iPanelControlData);
if(!iPanelControlData) {CAlert::InformationAlert("IPanelControlData err");break;}
SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampletDialogWidgetID);
IControlView * listBox = listHelper.FindCurrentListBox();
if(listBox == nil) {
CAlert::InformationAlert("listBox err");
break;
}
listHelper.EmptyCurrentListBox();
InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER); // useDefaultIID() not defined for this interface
ASSERT_MSG(listCntl != nil, "listCntl nil");
if(listCntl == nil) {
CAlert::InformationAlert("IListBoxController err");
break;
}
//Addin the string to the listbox
const int targetDisplayWidgetId =SamplePrefOptionTextWidgetID;
listHelper.AddElement("General", targetDisplayWidgetId);
listHelper.AddElement("Fitting", targetDisplayWidgetId);
listHelper.AddElement("Events and Scripts", targetDisplayWidgetId);
listCntl->DeselectAll();
}while(0);
}
I dont know how to enable these three widgets in Indesign CC.please refer this code and help me if anyone has idea regarding this problem.
Thanks in advance,
Vimala L
Copying formatted text from InDesign
Hi All,
What I need?
I need to copy text in InDesign to a WYSIWYG editor by preserving formatting.
What I did?
If I copy the formatted text in InDesign document to a WYSIWYG editor then it gets pasted as plain text.
However, if I copy the text to OpenOffice/MSWord document, then the formatting is retained.
Moreover, if I copy the same text from OpenOffice/MSWord document to WYSIWYG editor then formatting is retained.
Question:
Is there a way to copy-paste text with formatting directly from InDesign to WYSIWYG editor?
I would appreciate it if anyone can help.
where is macro DECLARE_PMID defined?
Hi,
can some one please let me know where is macro
DECLARE_PMID(kInterfaceIDSpace, IID_IDUMMYINTERFACE, kL2Prefix + 0)
defined? As I only see it called everywhere in <name>ID.h classes but its not defined there.
Background Task Alert
I'm spawning my own threads to do some task. I monitor thread in the idle task at regular intervals, to see if the threads have been completed or not and get an update. Now my problem is,
I want to postpone Indesign quit until my task has been completed. I prevent a user from quitting by throwing a CAlert, which takes away control from my idle task.
My question is, is there a background task alert (as mention in programming guide ) on page 127 so that I can keep monitoring my threads and close the dialog once the process is complete?
"
Background threads cannot directly report to the user on progress, success, or errors. These are
presented in the Background Tasks panel. Also, an animation appears in the application bar when
background tasks are in progress, and a Background Task Alert might appear when a background task
needs to convey a message to the user.
"
Such a background task appears when a user tries to exit indesign and is self disposed when the task is complete like this. Is there any such API exposed to third party developers?
anchoredObjectSettings SDK equivalent
Hello,
I have a question about the following JSX script line:
app.anchoredObjectSettings.anchorPoint = AnchorPoint.LEFT_CENTER_ANCHOR;
I would like to do something similar in C++ with the InDesign SDK and I studied the SDK samples (such as SnpManipulateInline.cpp) for this and
I can't find anything that works. What I got so far is this:
InterfacePtr<IAnchoredObjectSuite> ep1(GetExecutionContextSession(), IID_IANCHOREDOBJECT_ISUITE);
if (ep1 != nil)
{
IAnchoredObjectData::AnchoredHorizontal ah = ep1->GetAnchorPtHorizontal();
IAnchoredObjectData::AnchoredVertical av = ep1->GetAnchorPtVertical();
ep1->SetAnchorPtHorizontal(IAnchoredObjectData::AnchoredHorizontal::kLeftSide);
ep1->SetAnchorPtVertical(IAnchoredObjectData::AnchoredVertical::kObjectCenter);
}
But the result for ep1 is nil.
I don't think that I'm on the right track. Can anybody tell me what code I need in order to get the same results as the JSX script line?
Thanks in advance.
Greetings,
Jan
Change page items type
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.
Setting bleedbox on document deletes all elements
Hi All, The following code works fine for an empty document:
... |
UIDRef docRef = ::GetUIDRef(doc);
float h = mm2pt(getHeight(refnum) / 1000.);
float w = mm2pt(getWidth(refnum) / 1000.);
/* bleed values in points: */
PMRect bleedBox;
bleedBox.Left(mm2pt(bleedLeft / 1000.f));
bleedBox.Top(mm2pt(bleedTop / 1000.f));
bleedBox.Right(mm2pt(bleedRight / 1000.f));
bleedBox.Bottom(mm2pt(bleedBottom / 1000.f));
// Create a SetPageSizeCmd
///InterfacePtr<ICommand> pageCmd(CmdUtils::CreateCommand(kSetPageSizeCmdBoss)); | <-- This interface doesn't work |
InterfacePtr<ICommand> pageCmd(CmdUtils::CreateCommand(kSetPageSetupPrefsCmdBoss)); <-- This was recommended by community member
// Get an IDocSetupCmdData for the SetPageSizeCmd:
InterfacePtr<IDocSetupCmdData> pageData(pageCmd, IID_IDOCSETUPCMDDATA);
pageData->SetDocSetupCmdData(docRef, PMPageSize(w, h), 1, 1, w > h, kLeftToRightBinding, kFalse);
pageData->SetUseUniformBleed(false);
pageData->SetBleedBox(bleedBox);
CmdUtils::ProcessCommand(pageCmd);
But if if I have a document opened, all elements are blown away by executing this commend. Size and bleeds are fine.
I thought I only have to setup a command and command data, but something is missing. I only want to change the bleeds, nothing else.
What do I have to change?
Thanks for all your hints!
kb_alfa
Relink within IdleTask
Hello,
My plugin crashes when I try to use
Utils<Facade::ILinkFacade> linkFacade;
ErrorCode relinkResult = linkFacade->RelinkLink(linkRef,
newLinkURI,
uiFlags,
linkUID);
From within an IdleTask.
Is it possible to relink a page item from within an IdleTask and what do I need to do in order to make it work?
Thanks in advance.
Regards,
Jan
IDCS4 Win - Getting an ILink with a kEPSItem
About closing dialog
I have a problem about closing dialog.
I have a dialog(dialog A) with a button.
when I click the button, another dialog(dialog B) will be open.
If I click the OK button on dialog B,
dialog B will be closed.
What I want to do is, after dialog B closed,
I also want dialog A to be closed without clicking
the OK button or Cancel button on dialog A.
Can some tell me how to close the dialog A?
BestRegard.
Miya.
InDesign CS3 Packaging a .Indd file
We have added a menu in Indesign CS3 application with menu name Package.
On clicking this menu it opens a folder selection to accept a location where a package should be created.This should generate a Folder containing the Document.indd, a Text File , Fonts Folder , Images etc .
Is there a way to do the Package Action programmaticaly using the API?
Are there samples available for achieving this?
Please Guide me.
Waiting for Reply.
Thanks in advance.
Kartik
Missing .fres file (Windows)
I've written an InDesign plugin for Macintosh using the CS3 SDK. It works fine. I now need to get a windows version working.
I'm using the CS2 SDK for Windows (and yes, I'll use the CS3 also when I make a CS3 version) and I'm having a bit of a problem.
My .fres file isn't being created.
Merging Resources...
".\..\objd\ColorMunkiProfileSetter"\PrnSel.fres doesn't exist
That is the error I get but that makes sense, since I don't have a .fres file. The real issue is that my fres file isn't being created.
Here's how I made my project.
1) I cloned the PrintSelection sample from the CS2 SDK.
2) I took my CS3 Macintosh code and did a diff on the files, moving the important parts of my code, which was based on the CS3 SDK, into the CS2 based files. Really, there wasn't very much, just some printer callbacks and changing the names in the .fr file
3) I modified the .vcproj file to point to MY new source code, not the PrintSelection source code
4) I modified the .vcproj file to use my objd folder, not the PrinteSelection one.
That's it. I can build PrintSelection and it builds fine and runs, but when I build my the .fres is not created, so therefore merge_res doesn't run.
This is very frustrating and I would appreciate any advice. Thanks!
Paul
Reselection on TreeViewWidgets
Hi all,
lately I've been transforming all my listboxes to treeview-widgets - except for minor annoyances, things are going smoothly. One of those small things I'm trying to fix is allowing a reselection of a selected item. Listbox-attributes has a "NotifyOnReselect"-attribute, but i haven't found anything similar for treeview-widgets. Is there anything I'm missing? I'd really appreciate any hint or idea how to solve that issue.
Thanks in advance,
Bernt
Activate layer on Server side (InDesign CS4 Server)
Hi All,
I have tried the following two options to activate the layer on InDesign Server side. But it does not work on server side.
1. By using JavaScript app.activeDocument.activeLayer = app.activeDocument.layers.item ('LayerName'); I have created the above script programatically by using Adobe InDesign CS4 SDK (version 557). When I run the program it gets hang when this script get executed on server side. It gives me the Error like "Object does not support the property or method 'activeDocument' ". But when I run the same script with InDesign CS4 Desktop application then it runs properly. The layer (i.e layer name) get activated on InDesign Document. 2. By using Command I have created command using "kSetActiveLayerCmdBoss". Then I get ILayoutCmdData Interface pointer from ICommand. But when I try to derived the ILayoutControlData ptr it gets as nil. It works properly on InDesign Desktop Application but not on InDesign Server Application. So please help me into this problem. Its very urgant. Thanks & Regards, Santosh Kadam.
How to clean a document
Hi everyone,
When I close a document processed automatically with a plugin (CS5) written by me, I get some
messages telling:
Document has xxx UIDs that are allocated but not used! (logging disabled)
and:
DocUIDValidator::Validate -- RIDX contains invalid target!
I tried with the iterator defined inside IDatabase.h but it doesn't seem to work well o perhaps it's me
who don't know how to use it. Specific documentation seems to be missing. :-\
Does anybody know a goodt way to cleanup the document iterating on all UIDs and deleting those which aren't valid?
Thanks a lot in advance.
Luca Severini
Installing missing font during document opening
Hi All,
I have a requirement of installing the missing fonts in a document when the document is opened.
I have used the kMissingFontSignalResponderService to handle the missing font.
Because InDesign API does not provide any facility to install font, I have used the Windows API for the same.
When I get the missing font signal, I install the font using the ttf file and then broadcast the WM_FONTCHANGE message.
The problem is that I am not able to get the IPMFont instance of the just installed font. I require that instance to call the SetRequest(IPMFont*) method of IMissingFontSignalData. But I never get the instance for the recently installed font. Using methods like QueryFontByDisplayName in IFontMgr to get the IPMFont instance returns null for the installed font.
The font is indeed installed correctly but I am unable to notify the font manager about the new font.
Can anyone shed light to solve this issue?
IPMUnknown.h generate error
Hi
I want to create Indesign using SDK.
I do not Know how use SDK to create indesign document.
I read solutions.pdf and start using visual studio 2008 (vc++) to create indesign application.
To create Application refernce(instance) i am try below code
#include "ISession.h"
#include "IApplication.h"
virtual IApplication * QueryApplication()=0 ;
ISession * GetExecutionContextSession();
IApplication application(GetExecutionContextSession()->QueryApplication());
when I compile my code it give many error related to IPMUnknown.h, IDFactory.h,ShuksanID.h file like
\ipmunknown.h(57) : error C2061: syntax error : identifier 'PMIID'
\idfactory.h(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
\idfactory.h(81) : error C2061: syntax error : identifier 'PluginID'
\shuksanid.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I include these .h file in my project from SDK.
I do not understand why these file give error and How remove these type error.
How use full SDK in my vc++ project instead of copy these .h file one by one in project ?
Thanks.
import pdf files
Hi,
i want to import pdf file in to indesign CS5.5 that have multiple page. how to import it.
does indesign file have complete data for all the pages of a pdf file. please reply me as soon as possible.
Thanks in advance...