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

.fres is an empty file

$
0
0

Hi All,

 

Can anybody help me, im trying to create my first plugin for CS6. Im unable to build a plugin the following errors are occur while building.

 

1>------ Build started: Project: test, Configuration: Debug Win32 ------

1>  VCPlugInHeaders.cpp

1>  testActionComponent.cpp

1>  testDialogController.cpp

1>  testDialogObserver.cpp

1>  PlugInStatics.cpp

1>  SDKPlugInEntrypoint.cpp

1>  testID.cpp

1>  testNoStrip.cpp

1>  TriggerResourceDeps.cpp

1>  Generating Code...

1>  Performing Custom Build Tools

1>  ODFRC deleting old resources...

1>  Could Not Find C:\Indesign_Plugin\CS6SDK\build\win\objD\test\*.idrc

1>  merge_res.cmd - calling ConcatRes

1>          1 file(s) copied.

1>  ConcatRes skipped since "..\objD\test"\test.fres is an empty file.

1>  merge_res.cmd done.

1>  Deleting old resources...

1>  The system cannot find the file specified.

1>  'xcopy' is not recognized as an internal or external command,

1>  operable program or batch file.

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: The command "merge_res.cmd "..\objD\test\"  test & echo Deleting old resources... & del /f /s "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\"*.idrc > ..\objD\Chinna\prevDeletedResources.txt &  xcopy /Q /E "..\objD\test\"*.idrc "C:\Indesign_Plugin\CS6SDK\build\win\debug\sdk\(test.sdk Resources)\" /Y

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(108,5): error MSB3073: :VCEnd" exited with code 1.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

Regards,

Learner


Has anyone built CS6 plugins for Mavericks?

$
0
0

Hi,

 

Having installed OS X Mavericks, we tried running our plugins with InDesign, but they crash.  I've rebuilt them after replacing the Carbon framework with the Core Foundation one, but they still crash.  Has anyone managed to build CS6 plugins for Mavericks?

 

Which version of XCode  and which version of the OS X SDK have you used?

 

Thanks,

 

Daniel Tate

X,Y coordinates of a page item in indesign cs3

$
0
0

Hi,

     I need to get the X,Y coordinates of a selected page item based on left-top of the frame. I tried all possible methods to find X,Y coordinates of a page item. But calculated coordinates is warrying from indesign UI displayed X,Y coordinates.

 

My code snippet is below:

 

InterfacePtr<IHierarchy> node(itemRef, IID_IHIERARCHY);

InterfacePtr<ITransform> transform(node, IID_ITRANSFORM);

PMMatrix inner2parent =transform->GetInnerToParentMatrix();

PBPMRect bBox =pGeometry->GetStrokeBoundingBox(inner2parent);

PMPoint leftTop=bBox.LeftTop();

 

 

The itemRef is my selected rectangle frame reference.

Anything wrong in my code please give a solution immediately. I need a exact X,Y coordinates like indesign Ui displayed.

 

Thanks

K.Saravanan

Getting Linker errors while porting InDesign CC plugin code to InDesign CC 2014

$
0
0

Hello,

 

I am getting following linker errors during porting of plugin code from InDesign CC to InDesign CC 2014

 

> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)" (??__Eposix_category@system@boost@@YAXXZ)

> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ)

 

I am using following environment :

 

OS : Windows 7 SP1 (64bit)

Visual Studio : VS 2013 with platform tool set = Visual Studio 2010 (v100)

InDesign SDK : InDesign CC 2014 plugin SDK (070)

Boost Libraries : 1.55

 

I have added external boost library paths in visual studio -> Linker properties -> Additional Library paths, still above linker errors persists, can someone help ?

 

Thanks,

-Harsh.

Custom drawn TextEditBoxWidget

$
0
0

I'd like to extend the TextEditBox widget in a way that allows me to do some additional drawing once the standard draw has happened.

  Class

  {

       kMyCustomTextEditBoxWidgetBoss,

       kTextEditBoxWidgetBoss,

       {

            IID_ICONTROLVIEW, kMyCustomTextEditBoxWidgetBossImpl,

       }

  }

 

I can't seem to find any specific ControlView-based class to derive from in my corresponding implementation. If I derive from DVControlView / CControlView, the standard TextEditBox drawing doesn't happen, and there's no editing capability if I click where the widget is.

 

Ideally, I'd like a fully functional TextEditBox which I can draw on top of. Is this possible?

 

Pre-CC versions, I was just doing the additional drawing with a separate widget drawn over a standard text box. However, CC seems to remove the ability to specify draw order in the fr file and my on-top-widget gets drawn behind.

Is there another way of specifying draw order of widgets instead? If so, I can stick to my current solution.

 

Thanks in advance

Icon corruption in InDesign CC using PlatformIconClass

$
0
0

I'm porting an InDesign plugin from mac to windows. It supports InDesign CS5.5 through to CC2014.

I'm displaying a PNG image using PlatformIconClass with the code:

 

PlatformIconClass theIcon;

theIcon.LoadIcon(myPluginID, myRsrcID);

PMRect frame = GetFrame();

frame.MoveTo(0, 0);

ContentToWindowTransform(&frame);

theIcon.Draw(viewPort, ToSys(frame), kFalse);

 

The RsrcId is for a PNG specified in the fr file with PNGA etc as standard.

 

In CS5.5 and CS6, it displays fine. However CC shows image corruption (see screengrab - left is 5.5, right CC). Any ideas on what's causing this and how to fix?

Logo55CC.png

Thanks

Liz

Can we export text or shape to vector like SVG?

$
0
0

Can we export text, shape... to vector (ex: SVG)?

Thanks,

Danh Phan

Remove all plugin data from a document?

$
0
0
How can I "clean a document" by removing plugin data added by pluggins in a dokument?

Best regards
/ Pontus

Adobe’s PlugPlug library

$
0
0

Hi

 

I'm trying to include a flex panel in an already created InDesign CS5 Plugin. Im using flashbuilder and CSExtension Builder to create a bundled extension which installs the extension, and places the plugin at the right place.

 

I have an HTML control on the flex panel and I want its content to be decided at runtime. Basically I want to change the "Location" property of the mx:HTML control on the flex panel from InDesign.

 

The CSExtensionBuilder help states:
"Adobe offers the Application SDK Extension Toolkit that shows you how to use Adobe’s PlugPlug library to communicate between C/C++ and ActionScript. The toolkit provides the libraries, documentation, and samples you need to build a hybrid extension where the components communicate with each other.

 

You can include these libraries directly in Photoshop, InDesign, and Flash Pro native plug-ins.

 

For information on using the PlugPlug libraries in Illustrator, see the FreeGrid sample in the Illustrator SDK."

 

I've looked at the Illustrator sample but things don't seem to be very clear. Also, where can I find the "SDK Extension Toolkit"?
Any help would be immensely appreciated.

 

Regards,
manimatters

InDesign crash while applying character style

$
0
0

Hi all,

 

 

A)I have problem with applying character style to selected text.

 

 

when character style is applied to selected text indesign get crashes.

 

 

my code snippet is as follow

 

 

input parameters

1.RangeData paraRange // start and end index of paragraph

2.storyUIDRef // uidref of current story

 

 

          code snippet

          // valid text model

          InterfacePtr<ITextModel> textModel(storyUIDRef, UseDefaultIID());

          if (!textModel)

   break;

          //wax strand

          InterfacePtr<IWaxStrand> waxStrand(((IWaxStrand*)textModel->QueryStrand(kFrameListBoss, IID_IWAXSTRAND)));

          if (waxStrand == nil)

   break;

          //WaxIterator

          K2::scoped_ptr<IWaxIterator> waxIterator(waxStrand->NewWaxIterator());

          if (waxIterator == nil)

    break;

          //first wax line of paragraph

          IWaxLine* waxLine = waxIterator->GetFirstWaxLine(paraRange.Start(nil));

          //iterate each waxline

          while (waxLine != nil && (waxLine->TextOrigin() < paraRange.End()))

          {

    //Iterate for all runs

   K2::scoped_ptr<IWaxRunIterator> waxRunIter( waxLine->QueryWaxRunIterator() ) ;

   IWaxRun * waxRun = waxRunIter->GetFirstRun();

   while (waxRun)

                    {

   int32 startPos  = waxRun->TextOrigin();

   int32 endPos = startPos + waxRun->GetCharCount();

   RangeData textRange(startPos ,endPos);

   ISelectionManager* selMgr = m_activeContext->GetContextSelection();

   if(!selMgr)

    break;

   //get valid textselection suite

  InterfacePtr<ITextSelectionSuite> suite(selMgr, UseDefaultIID());

                              if (!suite)

   break;

                              //select  text

  suite->SetTextSelection(storyRef, textRange, Selection::kScrollIntoView, nil);

                              //created style from selection using  " SnpManipulate::TextStyleCreateStyleFromSelection" method.

                    }

          }

 

my code get crashed at highlighted text( int32 startPos  = waxRun->TextOrigin();).

 

 

B)my next question is how to get textstyle ranges of a selected paragraph.

 

please help me.

 

Thanks

Tahir

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?

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!

kFitContentToFrameCmdBoss is not working in CS5

$
0
0

Hi All,

 

I have used kFitContentToFrameCmdBoss for fit content to frame option. The command is executed successfully without any result.

When we try to apply Fit content to frame option in SnippetRunner then it doesnot show any effect on image frame.

Please help me to solve this issue.

 

 

Thanks in Advance,

 

Santosh Kadam.

Minimum page size ... again

$
0
0
I would like to know, if there is a minimum size for an InDesign page.

When trying to create a document smaller than 30x30mm InDesign keeps complaining, that the "Specified margin and column setup does not fit within specified page size". Margin and gutter is set to zero. The page has one column.

I've searched the whole forum but did not find any suitable information on this. Referenced threads are not found any more.

I'd be happy if someone could give me a small hint.

Tanks,

Marko

InDesign crashes with the console message

$
0
0

Hi all,

Please help me know why InDesign prints a message in console before it crashes:

Adobe InDesign CC 2014[1344:303] CFUserNotificationDisplayAlert:  called from main application thread, will block waiting for a response.


Anyone has face this same problem please help


Re:How to close and reopen a document immediately?

$
0
0
Original Message available here:<br /><a href="/webx?14@@.3c055358">Dave Sykes, "How to close and reopen a document immediately?" #, 15 Nov 2007 4:46 am</a><br /><br />> Dave Sykes - 04:46am Nov 15, 2007 Pacific<br /> I would like to close a document and then immediately afterwards open it up again.<br />The documentation says "To process a command to close the document immediately, use IDocumentCommands::Close'', but it also points to SDKLayoutHelper::CloseDocument which uses IDocFileHandler::Close.<br />If I use IDocumentCommands::Close the close succeeds, but InDesign unexpectedly quits when it regains control.<br />If I use IDocFileHandler::Close then when I reopen the document I get the assert ``Calling SelectionExtentionRegistry::Initialize more than once!'' This is the same error I get by not closing the document at all.<br />I have also tried ProcessCommand(Utils<IDocumentCommands>()->CreateCloseCommand(docUIDRef)), but this also crashes InDesign when it regains control.<br />In all cases I am calling ProcessCommand(CmdUtils::CreateCommand(kCloseLayoutWinCmdBoss), as otherwise I get an error that the document is still referenced on close.<br />Is it possible to close all the layout windows and also close the document, so that it can be reopened immediately? <br /><br />I had the same issue and tried to solve it by closing all windows in the document's IWindowList and then calling IDocFileHandler::Close() with IDocFileHandler::kProcess to process the command immediately instead of scheduling it.<br />Unfortunately this still resulted in a crash.<br /><br />Eventually I got around it by adding the following line before re-opening the document:<br />CmdUtils::ProcessScheduledCmds (ICommand::kLowestPriority);<br /><br />This forced InDesign to completely close the document before re-opening it again.<br /><br />Hope this helps someone else too. :)<br /><br />- Jackeen

stop the close of active document...CS3

$
0
0
Hi,
I m new to plugin development. I m using Indesign CS3 on MAC OS.
How do i get the reference(UIDRef) to the active document?
I want to stop the close operation of this document... I have disabled the close menu... But want the close button also to be disabled...
Should i implement IDocFileHandler? or is ther any other way?
Can someone please guide me...
Thank You.

How to change Icon of IconSuiteWidget

$
0
0

Hi, All

 

     I have TreeViewWidget, which has IconSuiteWidget, and StaticTextWidget, the need of plug-in is to set Icon to the IconSuiteWidget at runtime, Can I set other IDFile to IconSuiteWidget. I tried to use PNGArt but no luck.

Please, help

 

Thanks,

Praveen A. Mamdge

Adobe InDesign API Navigator is available on Adobe labs

$
0
0

Adobe InDesign CS5 API Navigator is available on Adobe labs web site. You can download for free.

 

http://labs.adobe.com/technologies/indesign_apinavigator/

 

If you are an InDesign C++ plug-in developer, you should definitely try this new tool.

 

The InDesign API Navigator is a tool for InDesign C++ Plug-in developers. It works as an add-in for Visual Studio on Windows and as a plug-in for Xcode on Mac OS X. It helps developers get API information within the IDE directly, including Boss definitions, aggregating Bosses for interfaces, and ODFRC type definitions. It also adds syntax coloring for ODFRC files (.fr and .fh). It extends the debugger expression evaluator to understand some InDesign types, which allows the debugger to format some InDesign types nicely in the variables pane (Xcode) or watch window (Visual Studio) while debugging. In Visual Studio, it enables the IDE to browse InDesign C++ APIs.

 

Try it and give your comments.

 

Thanks

C# Resource for InDesign

$
0
0

Hey Everyone,

 

I feel like an idiot, and I am probably missing something stupid.  I had written an application a few years back to convert InDesign CS1 documents to CS2 using a C# application to automate the process.  To do it, I just added the "Adobe Indesign CS2 Type Library" as a project Resource.  I am trying to now update that application to convert all of those documents from CS2 to CS5 but I can't find the "Adobe Indesign CS5 Type Library" to add to the project.  The only one I have been able to find is the "Adobe Illustrator CS5 Type Library".  Can anyone tell me where I can download it, or am I missing something??

 

Thanks in advance for any help you can throw my way!!

 

-Burdzy

Viewing all 78596 articles
Browse latest View live