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

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.


Plugin Development under OS X 10.11

$
0
0

I was able to successfully compile and build a releasex64 of several SDK samples on OS X 10.11 . Unfortunately, every time there is a 'shell script invocation error' in copyResources.sh reporting:

"/bin/bash^M: bad interpreter: No such file or directory"

However, I manually copied the generated plug-file (~50KB) along the 'packagefolder' ( from release_cocoa64) and all files from prj/build/*.* to the plugin directory:

/Macintosh HD/Applications/Adobe InDesign CC 2015/Plug-Ins/

 

InDesign finds the plugin but shows the well-known 'Startup Alert' message box: not a valid plug in (translated).

Any suggestions how to proceed?

Is there a more detailed error log?

Are files missing? Wrong directory? Additional directories or symlinks missing?

I don't have root rights. Do I need those?

 

I used Xcode 5.0.2 as recommended in the help files.

 

I don't have such an issue under Win7 Pro. Under Windows compiled Plugins (with VS 2013) load successfully.

 

 

System details:

Xcode 5.0.2

Target OS X 10.9 (highest version listed)

OS X 10.11

Adobe InDesign CC 2015.3 Build 11.3.0.34

I'm using the latest InDesign SDK.

 

Please advice. I'm stuck here.

Get and Set value for Allow Selected Spread to Shuffle and Facing page

$
0
0

Hi everyone,

 

I am working with page and spread,

For now, i want to set value for page and spead shuffle, and type of document.

 

but i've just found function to get and set value for Allow Document Pages to Shuffle by using

InterfacePtr<IPageLayoutPrefs> iPageLayoutPrefs(static_cast<IPageLayoutPrefs *>(::QueryPreferences(IID_IPAGELAYOUTPREFERENCES, iDocument)))

 

There is no function to set and get value of Allow Selected Spread to Shuffle and Facing page

 

Does anyone know about that?

Thank in advance

Setting up environment in Visual Studio 2015 for building plugins for InDesign CS6

$
0
0

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.

directories.jpg

error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'

$
0
0

I create a new Plugin,

But occur error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'

Why?

Where do I download Indesign cc sdk?

$
0
0

Hello everyone,

 

Please help me to download the sdk.

 

I tried on this "Adobe Prerelease " website but I dont find any download link there.

 

Regards,

Karthikeyan

Prevent automatic closing of panel

$
0
0

Hi,

 

My InDesign plugin has a panel.

I open it when InDesign has started.

Then I open a document, the panel is closed and I have to reopen it again from the Window menu.

Can I somehow prevent the panel from being closed when a document is opened? Is this default InDesign behavior?

Thanks.

InDesign CS/CS2 - Relinking all graphics

$
0
0
Hello everyone. I have a simple problem. Our customers build pages and send those pages, including all images to be included, to us. Usually when the documents get here, the links look something like this:

b C:\abc\def\ghi\AnImage.jpg

Our images are stored on the network and the Editors want me to build a plugin that will allow them to relink the images so that the links look like this:

b \\Server1\folder1\folder2\folder3\AnImage.jpg

I found an example in the code snippets that shows me how to place an image, but I cannot seem to find an example for relinking. Can anyone point me to documentation, or examples on how to programmatically relink an image?

TIA!

John

Set image link to a file which not yet exists

$
0
0
Hi to all,

I'm working with InDesignCS2 on Mac and Windows.

Is it possible to set an image link to a file which does not exists yet.

I have document with some JPG files in low resolution.

Later, if the document layout is finished, I want to
change the image links of the document to corresponding PSD files.

E.g.
The document is layouted with the imges image1.jpg, image2.jpg, image3.jpg.

Now a want to change the links to corresponding PSD files image1.psd, image2.psd, image3.psd.

BUT: the PSD file do no exist on the current working place.

The images image1.psd, image2.psd, image3.psd exist on a destination working place.

The document with the missing PSD links will be copied to the destination working place,
in the some folder where the PSD file are placed.

If I open the document on the destination working place the links set on the first
working place should be satisfied now.

Now it should be possible to print the document with the hires PSD images.

My question:
How can I set a link to an image which does not exist yet?
The name, the path and the format are known.

Please let me know, if you have an idea how to do that.
Thanks.

HiddenText plugin missing -> Crash

$
0
0
Hi

I create a document using the HiddenText plugin from Adobe to set hidden data in it. This works fine. But when I want to open the document in an Indesign installation without the HiddenText plugin, it Indesign crashs. If I open the document I get first a message that the document uses a module (HiddenText.pln) who is missing and after that Indesign crashs.

- What could be wrong?
- Is there a workaround for that?

It would be great if I can open the document without this plugin on other Indesign installations.

Thanks for the support.

Regards
Hans

What is the relationship between inner and parent coordinate system for image/graphic frame?

$
0
0
Hi,

I am trying to figure out the relationship between the inner and parent coordinate system(COS)of a pageItem.

For Text frame,the results are consistent and not confusing,i.e
the inner COS is the COS attached to the frame itself ,the center of the COS located at the frame's center point.So after doing
PMRect rect = geometry->GetPathBoundingBox();
The rect.Left() and rect.Right() and
rect.Top() and rect.Bottom() gives the same values with only change in sign.(i.e like 50 and -50 ).

And the parent COS is COS of the associated spread.

But same is not true for graphicframe.
The inner COS for graphic frame is not aligned to the frame's center.As the Bottom-Top and Left-Right values are not mirror images of one other.

Can someone please tell me why there is such a difference in the implementation of COS for TextFrame and graphicFrame?

Also one more doubt is, what happens when the pageItme is placed on a pasteboard outside the spread area? Which element acts as a parent for that pageItem?Which parent COS is to be refered in that case?

Thanks and Regards,
Yopangjo.

Determining image orientation

$
0
0
Creative Suite 3 (at least Photoshop and InDesign) now respect the <tiff:Orientation> value from the http://ns.adobe.com/tiff/1.0/ TIFF Properties namespace.<br /><br />This means that an image which has a tiff:Orientation of 1 is placed rotated by 90 degrees whereas an image with a tiff:Orientation of 0 is placed without rotation.<br /><br />Is it possible for a plug-in to determine whether the image has been rotated as a result of this XMP property?

InDesign Plugins Development using C# or Java

$
0
0

Dear All,

I would like to know the below questions all answers are welcome:

  1. Is it possible to develope InDesign plugins using C#/Java? If yes, then please let me know how.
  2. Is it possible to develop cross-platform plugins (Mac & Windows) using any languages?
  3. Why InDesign SDK is having limitation for using VC++?

 

I am going to work on InDesign CS4 plugins development and the challenges infornt of me is cross-platform & VC++.

 

Regards,

Rajeev Kumar

Spread layers and programmatically page item creation

$
0
0

Hi,

 

My problem was to create page item programatically and after searching in snippet runner; my problem was solved.

The basic idea is to add page item on spread layer. InDesign CHM suggested that there are 4 spread layers and one of them is used for placing page items. In SnippetRunner, they were using

 

InterfacePtr<IHierarchy> activeSpreadLayerHierarchy(layoutControlData->QueryActiveLayer());                //layoutControlData is ILayoutControlData

UIDRef parentUIDRef = ::GetUIDRef(activeSpreadLayerHierarchy);                                                        // parent for page items

 

 

What i understand from this code is that by using "layoutControlData->QueryActiveLayer()" they are querying spreadlayer which is used for placing page items.

 

Everything goes fine, my work is done.

Then i read CHM again(Layout fundamental :: Spread and pages) and i concluded that i can also query spread layer (to place page items) according to the following code segment-

 

InterfacePtr<IHierarchy> iSpreadHier (spreadRef, UseDefaultIID());


UIDRef contentLayerRef=::GetUIDRef(iSpreadHier->QueryChild(2));     //Please see the diagram in (Layout fundamental :: Spread and pages)

 

// I am assuming that parentUIDRef (from above code) == contentLayerRef

// But this is not the case and if contentLayerRef=::GetUIDRef(iSpreadHier->QueryChild(3));  then parentUIDRef (from above code) == contentLayerRef.

 

 

Can anybody clarify why "iSpreadHier->QueryChild(2)" is not used to place page items and only to use "layoutControlData->QueryActiveLayer()".

 

I know i have some confusion and Any help is really apreciated.

 

Thanks

How to find InDesign CS5 application folder

$
0
0

Hello, I am trying to install our plug-in to InDesign CS5 plug-ins folder.  Does anyone know how to find where InDesign CS5 is installed on Windows platform?  I am looking for the App Paths registry entry which has worked for previous versions of InDesign, but it seems to me that CS5 does not update/add this App Paths entry.  I tested on Windows XP and Windows 7, none has the entry.

 

Appreciate suggestions.

 

Thanks.


InDesign CS5 Background Tasks

$
0
0

When one opens Window->Utilities->Background Tasks, one can see a panel UI with title called "BACKGROUND TASKS". It seems the Panel is for showing something about background process(or maybe a thread on windows). I wonder if there is any way that we can see something on this empty panel, in what situation we can see it. Could one see something when a background process is forked or another thread is activated? Anyone tried it? Thanks

Is Indesign CS5 Server support multithreading plug-in development?

UTF-8 string from PMString

$
0
0

Hi,

 

I am trying to convert a PMString object into a UTF-8 char* object for use with POSIX functions on a Mac. The PMString object will contain multibyte characters like Chinese, Japanese etc. I receive this PMString object from a ScriptData object which only gives a PMString or a WideString.

 

Using PMString.GrabCString() causes the multibyte characters to appear as code values (<4E00>) in the char* strings. I've explored a couple of ways to convert a wide char* (wchar_t*) into a UTF-8 char* on a Mac. However, the basic problem seems to be that PMString internally stores the text in UTF-16 while wchar_t is 32 bit on Mac. As a result, when I call methods like GrabUTF16Buffer or GrabWString or even GetWChar_tString, I seem to be getting a corrupt wchar_t* string with UTF-16 characters stuffed into a 32 bit wide character array. I can't seem to form the same text back from the wchar_t* string using PMString(wchar_t*) or even explicit typecasting as PMString(UTF16Char*, numBytes).

 

To summarize, starting with a PMString, how do I get/convert it's contents into a valid UTF-8 char* string, knowing it will contain multibyte characters? Thank you for your time.

how to get all page items from the document

$
0
0

Hi all,

 

i want to get all page items and its frame and data from the document

Then i want to create my own xml.

 

any help? any advice ?please.

Placing Hyperlinks via IDML

$
0
0

I've managed to put together a few XSL stylesheets and scripts (perl, awk, bash) to transform my own 'markup' into IDML. (I found this to be the most convenient and reliable method to automate placing footnotes.)

 

To do that, I've consulted the IDML specifications from Adobe, as well as the official 'cookbook'; and I've tested my XMLs with Adobe's own schemas inside the SDK (via EMacs's nXML mode); and everything is working fine with the documents thus produced—with a single exception: the hyperlinks (to refer to text anchors within the same document).

 

When I'm referencing 'static' bits of text inside the same document, I prefer Hyperlinking over Cross-Referencing, in that the former allows me to use any text for my links. On the hyperlinks panel, and in the story editor, I do see my IDML-placed hyperlinks; but when exported to pdf or html, they don't work. More precisely, one or two of them work as expected, and the rest is all broken; although there's absolutely no visible difference between the 'source code' for the two kinds.

 

I prepared several 'templates', in order to see how hyperlinks look when defined inside InDesign, and then exported into IDML. Having examined those, I still can't see what I'm doing wrong.

 

Acrobat recognizes all of my 'HyperlinkTextDestination's, but not the links themselves; and exporting to IDML/Re-Importing to .indd doesn't help either.

 

This is hugely frustrating. Now—I'd be really grateful if someone could tell me what's wrong with my link sources and destinations, and so forth, that they refuse to work. I hope it's just that I'm making a careless mistake with the XML attributes and such (I'm a novice in all these matters):

 

 

This is how an 'HyperlinkTextSource' looks, inside my main story xml:

 

<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">

<HyperlinkTextSource Self="#THE UNIQUE ID OF THE DESTINATION, ASSIGNED BY ME#" Name="#UNIQUELY GENERATED (RANDOM) NAME#" Hidden="false" AppliedCharacterStyle="n">

<Content>#THE BIT OF TEXT THAT WILL SERVE AS THE LINK#</Content>

</HyperlinkTextSource>

</CharacterStyleRange>

 

 

My 'HyperlinkTextDestination's look like this, inside the main story xml:

 

<HyperlinkTextDestination Self="HyperlinkTextDestination/#THE UNIQUE ID OF THE DESTINATION, ASSIGNED BY ME#" Name="#UNIQUE (RANDOM) NAME#" Hidden="false"/>

 

 

And this, the Hyperlink specification inside designmap.xml:

 

<Hyperlink Self="#UNIQUE (RANDOM) NAME#" Name="#UNIQUE ID OF THE DESTINATION, ASSIGNED BY ME#" Source="#UNIQUE ID OF THE DESTINATION, ASSIGNED BY ME#" Visible="false" Highlight="None" Width="Thin" BorderStyle="Solid" Hidden="false">

<Properties>

<BorderColor type="enumeration">Black</BorderColor>

<Destination type="object">HyperlinkTextDestination/#UNIQUE ID OF THE DESTINATION, ASSIGNED BY ME#</Destination>

</Properties>

</Hyperlink>

 

 

This is the bit of XSLT that produces the 'source':

 

<xsl:template match="#MY CHOSEN ELEMENT NAME FOR LINKS#">

<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">

<HyperlinkTextSource Self="{@linkend#THE UNIQUE ID OF THE DESTINATION#}" Name="{@linkend}_{generate-id(.)}" Hidden="false" AppliedCharacterStyle="n">

       <Content><xsl:value-of select="."/></Content>

</HyperlinkTextSource>

</CharacterStyleRange>

</xsl:template>

 

 

The destination producer:

 

<HyperlinkTextDestination Self="HyperlinkTextDestination/{@id#THE UNIQUE ID, ASSIGNED BY ME#}" Name="{@id#...SAME AS BEFORE#}" Hidden="false"/>

 

 

And, this is responsible for the Hyperlink elements inside designmap.xml:

 

<Hyperlink Self="{@linkend}DEST{generate-id(.)}" Name="{.}" Source="{@linkend}" Visible="false" Highlight="None" Width="Thin" BorderStyle="Solid" Hidden="false">

<Properties>

<BorderColor type="enumeration">Black</BorderColor>

<Destination type="object">HyperlinkTextDestination/<xsl:value-of select="@linkend"/></Destination>

</Properties>

</Hyperlink>

 

ps. I don't transform into InDesign-XMLElements; all of this becomes regular text. I don't think it's worth the hassle: Id's XML-handling capabilities are too rudimentary.

Viewing all 78596 articles
Browse latest View live


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