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

How to get UIDRef of the selected page item in indesign cs3

$
0
0

Hi,

    I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.

 

Regards,

K.Saravanan.


How to avoid ASSERT message "PMString::SetKey - calling SetKey with a string that does not have a tranlsation" ?

$
0
0

Getting Below ASSERT message when trying to store a value in PMString object.

 

PMString::SetKey - calling SetKey with a string that does not have a tranlsation

 

Any idea how can I avoid getting this message? Is there any change required in the .fr file?

Indesign CC 2014 crashes on trying to open a IDML file through my custom extension

$
0
0

Indesign CC 2014 crashes on trying to open a IDML file through my custom extension

 

Hi,

I have ported my HTML extension from Indesign 9.2 to Indesign CC 2014 and things were looking just fine.

But Now, when I try to open the saved IDML document, Indesign Crashes.

Windows error reporting gives the below picture

 

Faulting application name: InDesign.exe, version: 10.1.0.70, time stamp: 0x5424e38b
Faulting module name: Public.dll, version: 10.1.0.70, time stamp: 0x5424e290
Exception code: 0xc0000005
Fault offset: 0x00000000000546b4
Faulting process id: 0x58e0
Faulting application start time: 0x01cfe9cfc85d4f86
Faulting application path: C:\Program Files\Adobe\Adobe InDesign CC 2014\InDesign.exe
Faulting module path: C:\Program Files\Adobe\Adobe InDesign CC 2014\Public.dll
Report Id: 88eb8dca-55c3-11e4-81b6-f8b156db39b5

 

It failed somewhere in Public.dll but I am not getting how and where. Is there any way I can debug it and get to know Or if any one faced such kind of issue?

How can programmatically convert xml to PDF.

$
0
0

How can programmatically convert xml to PDF.

Event for switching document tabs.

$
0
0

Hi everybody,

 

Currently, i am working on events of document.

Now, i am seeking for an event that cotrols the action switch among the opened documents on workstation.

Does anyone know about this kind of event?

 

Thanks.

Duy

Quark 9.1 converstion to Adobe InDesign CC

$
0
0

Our company has purchased Adobe CC and I would like to be able to open a Quark 9.1 file without having to purchase an additional plug-in from a "NON-Adobe" website.

Our company purchased several copies of the Adobe package to update thousands of files into InDesign. We were unaware that the newer version of Adobe could NOT update our Quark files and without this capability it makes more sense for our company to remain using Quark.


Suggestion: Adobe should put out their own plugin that properly converts these files from Quark 9.1 to InDesign.

 

 

I would also like to add my concerns over your horrific customer service team.

  • I spoke with Yash Mathur dessupp@adobe.com on 2.11.16 at 10 am. He informed me that I needed to contact Quark with my problem because Adobe couldn't help. The problem with that is that we purchased the software from Adobe with the belief that we would be able to transfer these files.
  • I requested that a manager call me and today 2.16.16 at 6:50 I received a phone call from Himanshu claiming to be a supervisor. He could not answer my questions either so he said he would have to get his supervisor on the phone and asked me to hold for 10 minutes because his supervisor is not in the office.  I just received a call back from Himanshu that his supervisor is unavailable and he would try to have him call me in the next few days.
  • Adobe offers a costly software that I believed was necessary to meet our companies needs, however this type of service for a business is 100% unacceptable. 

How to debug a InDesign plugin (PluginConfig.txt)

$
0
0

I added a PluginConfig.txt. (Users/user/Library/Preferences/Adobe InDesign/Version/en_US)

But Nothing happened. (When using the Plug-Ins folder was work well.)

 

PluginConfig.txt test texts.

=Path

“OS_HD:Users:user:Desktop:Project:inDesign:plugin:build:mac:debug:Hoo”

=Path

“:OS_HD:Users:user:Desktop:Project:inDesign:plugin:build:mac:debug:Hoo

=Path

“OS_HD/Users/user/Desktop/Project/inDesign/plugin/build/mac/debug/Hoo

=Path

“/OS_HD/Users/user/Desktop/Project/inDesign/plugin/build/mac/debug/Hoo

=Path

“Users:user:Desktop:Project:inDesign:plugin:build:mac:debug:Hoo

=Path

“:Users:user:Desktop:Project:inDesign:plugin:build:mac:debug:Hoo

=Path

“Users/user/Desktop/Project/inDesign/plugin/build/mac/debug/Hoo

=Path

“/Users/user/Desktop/Project/inDesign/plugin/build/mac/debug/Hoo

 

.InDesignPlugin file in Hoo folder

 

What is the Problem?

How to read dragged image from (Browser to Layout)

$
0
0

When I drag an image from browser into the layout, the external flavor is kPasteboardTypeFileURLPromiseExternalFlavor

Now, I try to handle this external flavor in my flavor helper's ProcessDragDropCommand.

I try to internalize as follows:

 

controller->InternalizeDrag(kNoExternalFlavor, kMyDragDropCustomFlavor);

 

kMyDragDropCustomFlavor is supported via my custom data exchange handler.

Have overridden CanInternalizeData and Internalize data in my data exchange handler.

 

My biggest hurdle: is in reading the dragged item from IPMDataObject as stream.

IPMDataObject::GetStreamForReading never gives me the stream.

 

NOTE: I at least expect to read the URL of the image dragged and not the entire image stream.

When you drag an image from browser to InDesign layout (in Windows version), a text box is created with URL data.

 

I would like to achive the same. I would appreciate if someone can shed light on this.


How to resize existing text frame and also place another frame from different page?

$
0
0

I need to resize existing text frame and also place another frame from different page.

 

Can any one suggest soluction for the problem.

HTML Extension and StartuScripts

$
0
0

Hi All

 

I'm new in HTML Extensions.

I would like to convert my old scripts and use it with my new extension.

 

Running a jsx is quite easy but, usually, I have many variables and functions initialized in a startup script.

It seems that script launched with extensions can't see those variables and functions.

 

Is it true or I'm missing something?

 

I apologize if my questions is stupid.

Thanks in advance.

 

Ivan

I am try to convert PMRect to string for showing to alert

$
0
0

i have design a plugin for fetching x/y coordinate of pageitem.  i have requirement  of string conversion from PMRect.

i converted PMRect to PMString form this way. but i get error massege.

 

"error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const PMRect' (or there is no acceptable conversion)"

please tell me how to solve out this error

 

 

PMRect xyCordinate;

xyCordinate =  iGeometry->GetStrokeBoundingBox();

string String =  static_cast<ostringstream*>(&(ostringstream() << xyCordinate))->str();

 

WideString tempWideString(String.c_str());   // widestring accept string of type Char * so convert it using c_str().

PMString tempPMString;

tempPMString.Append(tempWideString);

tempPMString.Append("\t");

 

CAlert::INformation(tempPMString);

How to use InDesign SDK on XCode 7.2, OS X 10.10.5 ?

$
0
0

I generate a dialog-based plug-in project using DollyXS.

 

after build

get error messages

 

ld: warning: directory not found for option '-L../debug_cocoa64/packagefolder/contents/macos'

ld: warning: directory not found for option '-L../debug_cocoa64/packagefolder/contents/macos/libs'

ld: warning: directory not found for option '-L../debug_cocoa64/packagefolder/contents/Frameworks'

ld: warning: directory not found for option '-L../../build/mac/debug/packagefolder/contents/macos/libs'

ld: warning: directory not found for option '-F../debug_cocoa64/packagefolder/contents/Frameworks'

ld: warning: directory not found for option '-F../debug_cocoa64/packagefolder/contents/macos'

ld: warning: directory not found for option '-F../../build/mac/debug/packagefolder/contents/macos'

ld: warning: directory not found for option '-F../../build/mac/debug/packagefolder/contents/Frameworks'

 

so modify

Build Settings - Search Paths - Framework Search Paths, LIbrary Search Paths

 

after...

get error messages


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

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

All messages

스크린샷 2016-03-07 오후 2.28.29.png

 

스크린샷 2016-03-07 오후 8.11.12.png

 

Regards.

How to change pasteboard size

$
0
0

I'm trying to change the size of the pasteboard in code, in the same way that a user would change it via Guides and Pasteboard Preferences.

 

The code I have at the moment seems to change the values displayed in the preferences dialog for "Horizontal margins" and "Vertical margins", but doesn't actually change the visible pasteboard.

Any ideas on what I'm doing wrong?

 

IDocument* doc = Utils<ILayoutUIUtils>()->GetFrontDocument();

InterfacePtr<IPasteboardPrefs> pasteboardPrefs(static_cast<IPasteboardPrefs>(::QueryPreferences(IID_IPASTEBOARDPREFERENC ES, doc)));

pasteboardPrefs->SetPasteboardBorder(newXVal, newYVal);

 

I've also tried an "apply" command I found, in follow up to the above code, but it made no difference:

 

InterfacePtr<ICommand> setPasteboardCmd(CmdUtils::CreateCommand(kSetPasteboardPrefsCmdBoss));

if (setPasteboardCmd) {

    CmdUtils::ProcessCommand(setPasteboardCmd);

}


Thanks in advance

Porting the Flex Project to CC(2014)

$
0
0

Hello,

 

I am trying to port the Flex project developed in Flash Builder 4.6 with Extension builder 2.1, to InDesign CC (2014).

As per the SDK help it mentions I can use the same environment mentioned above to port the project. But when I try it is giving error " This extension cannot be installed, it requires InDesign version in range of inclusively between 9.0 and 9.9.

 

Do I need to set anything before compiling the plugin for CC(2014)? Or do I need to port in some other environment? If yes where can I get the details of other environment?

 

Thanks for the help in advance.

 

Regards

Farzana.

error R32762: # Error: Error looking for resource specification. Need 'resource' or 'type'

$
0
0

I have succesfully ported some of my developments to CS5. I have used the following procedure:

- create new project by using dollyX

- add source code

- fix the errors

 

But now I have encountered an error I can't figure out.

 

Error 1 error R32762: # Error: Error looking for resource specification.  Need 'resource' or 'type'. C:\Program Files\Adobe\CS5\InDesign Product SDK\source\public\interfaces\architecture\IPMUnknown.h 47

 

Any suggestions?

 

Im running a windows7 machine, visual studio 2008


XCode 7 64bit - Undefined symbols for architecture x86_64 Linker Error

$
0
0

Hi All

 

Anyone ran into this error when compiling under 64bit architecture?


Undefined symbols for architecture x86_64: "FileUtils::FileURLToSysFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool*)", referenced from:

FileId::DirContains(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, FileId&) const in FileId.o

FileId::SetFileURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in FileId.o

FileId::SetFileURL2ndTry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in FileId.o


Thanks

Ido

How run a plugin from Adobe Indesign?

$
0
0

I download indesign SDK CS6,

and build sample project: \Adobe InDesign CS6 Plugin SDK\build\win\prj\BasicDialog.sdk.vcxproj

But i Copy 2 file : BasicDialog.sdk.pln and BasicDialog.pdb to [C:\Program Files (x86)\Adobe\Adobe InDesign CS6\Plug-Ins]

It i open Adobe Indesign CS6, it show message error:

 

Adobe InDesign does not recognize BASICDIALOG.SDK.PLN as a valid plug-in. Please reinstall the BASICDIALOG.SDK.PLN plug-in and restart InDesign.

Show this alert again?

How run a plugin from Adobe Indesign?

Thanks all.

Visual Studio 2013 - CC 2015 PMString debugging

$
0
0

Hi,

 

Could help me an expert how can I see PMString, WideString etc. values in the VS 2013 debugger?

 

I use for CC 2014 these settings in the autoexp.dat and working fine:

[Visualizer]

; Adobe InDesign SDK

UnicodeSavvyString|WideString|PMString {

preview    ( #if ($e.fStorage != 0) ([$e.fStorage->fFirstCharOfBuffer,su ]) #else ([$e.fSmallStorage,su ]) )

stringview ( #if ($e.fStorage != 0) ([$e.fStorage->fFirstCharOfBuffer,sub]) #else ([$e.fSmallStorage,sub]) )

}

K2Internals::K2VectorBase<*,*> {

preview (

  #(

   "[", $e.fLength, "](",

   #array(expr: $e.fArray[$i], size: $e.fLength),

   ")"

  )

)

children (

  #array(expr: $e.fArray[$i], size: $e.fLength)

)

}

K2Vector<*,*>|K2Vector<*>|K2Internals::K2PtrVectorBase<*> {

preview ( $e.fArray )

children (

  #array(expr: $e.fArray.fArray[$i], size: $e.fArray.fLength)

)

}

 

PMReal=<fRealValue>

PMPoint=<x.fRealValue>, <y.fRealValue>

PMRect=<left.fRealValue>, <top.fRealValue>, <right.fRealValue>, <bottom.fRealValue>

IDType<*>=<fIDInt>

UIDRef=DB=<fDB>, UID=<fUID.fIDInt>

 

 

Thx:  Karoly

testing inDesign CC 2015 with c# : InvalidCastException error

$
0
0

Hi

I try to use testing inDesign CC 2015 version with this C# asp.net code

 

protected void Page_Load(object sender, EventArgs e)

{

     InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application");

 

     // other code

     ...

}

 

public static object COMCreateObject(string sProgID)

{

     Type oType = Type.GetTypeFromProgID(sProgID);

     if (oType != null)

     {

          return Activator.CreateInstance(oType);

     }

 

     return null;

}

 

When i run this, i receive an InvalidCastException

I try some of different cast sequence but the result is always the same, i can't recover the com object.

InDesign was launch succefully, the object was create, but i can't use it.

 

I search on different topic and forum, try lot of solution but none of them work.

 

Any help?

 

ps : sorry for my bad english, i am french (no, no, don't throw stone at me )

 

Nymau

How to move a page item from an IDocument from Location (x1,y1) to (x2,y2)

$
0
0

IDataBase* db = ::GetDataBase(iDocument);

UIDList pageItems(db);

InterfacePtr<ISpreadList> iSpreadList(iDocument, UseDefaultIID());

 

for (uint32 i = 0; i < iSpreadList->GetSpreadCount(); i++)

{

    UID spreadUID = iSpreadList->GetNthSpreadUID(i);

    InterfacePtr<ISpread> spread(db, spreadUID, UseDefaultIID());

 

    for (int32 i = 0; i < spread->GetNumPages(); i++)

    {

        spread->GetItemsOnPage(i, &pageItems, kFalse);

        //How to move the pagItems from x,y location to x2,y2 location, for instance from the Rectangle from from middle of the page to location 0,0

    }   

}

Viewing all 78596 articles
Browse latest View live


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