Adobe InDesign: SDK/Scripting Bugs and Features
114 results found
-
Please expose a PDF's page count to scripting
I posted this one in the general feature requests section, should have done that here in scripting. Here's the link:
It got quite a few votes over there. . .
P.
5 votes -
Epub toc links are not created when a document's toc is created by a script
To create a (navigable) Epub TOC you check the 'Make text anchor in source paragraph' checkbox. The links are created correctly when the TOC is created manually, but when the TOC is created by a script, the links are not created.
To confirm, please open the attached document and run this very simple script:
app.documents[0].createTOC (app.documents[0].tocStyles.item('Epub'), true);
The used TOC style ('Epub') has the 'Make text anchor in source paragraph' box checked.
Then export the document to reflowable Epub. In the Export dialog's General tab, select 'Multilevel (TOC Style)' at 'Navigation TOC' and at 'TOC Style, select the Epub style.…
5 votes -
Add `parentPage` and `parentTextFrame` of Table Cell and Row
Please add
parentPage
andparentTextFrame
tocell
androw
. Up to now it is not possible to determine, on which page or in which text frame a specific table cell/row is located.There is a hack with adding an anchored text frame, releasing it an reading its properties. But this is very hacky an time consuming ...
Or I have to use insertion points inside the cells/rows to get to the parentPage.
But this is all very clumsy.
( See here: https://community.adobe.com/t5/indesign-discussions/extendscript-indesign-2022-return-parentpage-s-of-last-cells-of-all-tables/m-p/12942541#M477149 )Thanks,
Tobias4 votes -
Some plug-ins compiled for InDesign 2021 16.0 crash InDesign 2021 16.1 - the 16.0 and 16.1 SDK are incompatible
When a plug-in relies on the embedded Boost framework to support regular expressions, it can cause a crash because of unresolved dependencies.
The issue is that the 16.0 SDK uses Boost 1.65 and the 16.1 SDK uses Boost 1.72
Plug-ins compiled against the 16.0 SDK that use regular expressions will try to access an entry point
__ZN5boost16re_detail_10650018get_default_syntaxEh
(unmangled:boost::re_detail_106500
) when handling regular expressions.The problem is that this entrypoint's name is dependent on the Boost version (1.65).
This entry point is provided by the (on Mac) embedded framework
/Applications/Adobe InDesign 2021.app/Contents/Frameworks/boost_regex.framework/Versions/A/boost_regex
When a plug-in compiled against SDK 16.0 is…
4 votes -
Can't retrieve XMP-metadata from Cloud-stored files
Hello Adobe and hello Community,
I'm having a problem with a Javascript I wrote to retrieve XMP metadata from linked files, that are stored in a Creative Cloud Library (Bought from Adobe Stock -> stored in a Library, because i was unable to download the files).
Ultimately, the script retrieves the Creditline of all the linked graphics in an InDesign-file / InDesign-files in a folder by bulk processing.
I have to accesse the XMP to retrieve the correct copyrightinfo.
@Adobe: On Adobe Stock you guys put the information to give credit to the creator in the XMP field "Creditline" (creator…4 votes -
Collapse Treeview not working
On Indesign CC (Win or Mac) :
Treeview with multi levels can be expand with recursive function;
But collapse operation seems to be not working with similar function;On Indesign CS6 (Win or Mac) :
Treeview with multi levels can be expand.
Collapse operation runs halfway. But items (not node) on first level are indented too much.Run Script treeviewexpandcollapse.jsx to test it
4 votes -
Bug in IXMLOutStream.h header file
InDesign2020SDK/source/public/interfaces/xmedia/IXMLOutStream.h:499
void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse) { this->WriteName(name, newLine); }
This function calls itself. It leads to a stack overflow on Windows but the code analyzer in Xcode catches it and reports an error during compilation. It can be changed to:
void WriteName(const UTF16TextChar* name, bool16 newLine = kFalse) { this->WriteName(WideString(name), newLine); }
and it will work (it calls the previous function in the file instead).
4 votesThe fix for this issue is now available in the latest versions of InDesign – version 16.0 and above.
Please update to this version to get the fix.—
Adobe InDesign team -
InDesign crashes when converting a table
In the attached document, when I (try to) convert the tabbed text to a table, InDesign crashes.
Steps to reproduce:
- Open the document from the attached zip file.
- Select the text frame.
- Run the following one-line script:
app.selection[0].parentStory.texts[0].convertToTable ('\t', '\r');
Expected result: a table.
Actual result: InDesign crashes.Note: the crash does not happen when the tabbed text is converted manually:
- Select all the text
- Table > Convert Text to Table
4 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the latest version of InDesign, Id 15.0Please upgrade your InDesign application to the latest version to try out the fix.
If you face any problems with the new update, do let us know in the comments.
You may also follow the below given link for the list of all fixed issues in Id 15.0
https://helpx.adobe.com/indesign/kb/fixed-issues.html-InDesign Team
-
Indesign crash with findGrep()
findGrep() causes a crash with the following terms:
"w?"
“\w?”
“h?”
“w?i?”
...e.g.:
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = "w?";
var _result = app.activeDocument.findGrep();4 votesHello All,
Thank you for reporting the issue to us.
We have fixed the issue in the latest version of InDesign, Id 14.0.3Please upgrade your InDesign application to the latest version to try out the fix.
If you are unable to see the update yet, go to Creative Cloud desktop application, open the menu (three dots) from the top-right corner and click on ‘Check For App Updates’.
If you face any problems with the new update, do let us know in the comments.
You may also follow the below given link for the list of all fixed issues in Id 14.0.3
https://helpx.adobe.com/indesign/kb/fixed-issues.html -
[ExtendScript/UXP] Position layoutWindow viewport
I would like to be able to specify a layoutWIndow viewport's center.
In Illustrator, we can position the center of the window's (a View, in Illustrator) viewport in document coordinates, so we can, for example, center a page item in the window.
I would much appreciate this addition to Indesign scripting.
3 votes -
InDesignServer - All Layers are allways unlocked
InDesign Server 2021 and 2022 do unlock all Layers every time a document is opened.
There is no way to know the initial state of the layers. They are always unlocked for the Scripting.
Furthermore, this change is also saved to the document, removing the locks the user did.
I tested this with following script:var file = new File("C:/Test/Test.indd");
var doc = app.open(file);
for (var i = 0; i < doc.layers.length; i++) {
var layer = doc.layers[i];
app.consoleout("Layer " + layer.name + " Locked: " + layer.locked + " Visible: " + layer.visible);
}
doc.close(SaveOptions.YES);I've already posted this…
3 votes -
Make the (Black) Color Swatch a TRUE BLACK
In the Appearance Panel, the (Black) color swatch is not a TRUE BLACK color and when this color swatch is used and a file is exported to PDF, Rich black is not achieved.
The attached document shows a few shapes that are black. The top right is a true black color and the color swatch had to be changed from the standard (BLACK) color swatch in order to be achieved when exporting to a PDF. The left and bottom color swatches have the (Black) color swatch from the appearance panel applied.
Please, Please, Please, make the (Black) color swatch a…
3 votes -
IDML resources
On https://www.adobe.com/devnet/indesign/documentation.html site links are not working at the IDML section. Please fix it!
3 votesThe links are working fine for me.
Can you recheck once at your end?Thanks
-
How to turnoff Type contextual controls in Indesign CC 2018?
app.typeContextualUiPrefs.showFractionsUi = false;
don`t work3 votes -
A reference to panel item 25 breaks a script
There's a rogue panel that breaks InDesign CC2019 when it is referenced (CC2018 is not affected).
Open InDesign CC2019, then run this one-line script:
app.panels[25].name
Result: Error: 'Invalid object for this request'.
Now do this:
app.panels[25].isValid
which returns true.
3 votesThanks for reporting the issue. We are reviewing it
-InDesign Team
-
Inner glow size limited to 144pt
Setting innerGlow size to larger than 144 pt via script causes an error for invalid value outside an expected range of 0-144. However, the UI allows size up to be over 13 inches. I have not tested all the other effects, but I believe this is the case for inner shadow and feather as well.
3 votes -
CC2019: Can't update or relink a link when a document is opened by a script.
A fault introduced in CC2019: can't update or relink a link when a document is opened by a script.
Steps to reproduce:
- To verify that with an existing open document the problem does not occur: a. Start a new InDesign document b. Place a graphic on the first page c. Run this script:
app.documents[0].links[0].update();
No error occurs.
- To reproduce the error: a. Save the document created in step 1 and close it. b. Run this script:
s = '/d/test/links.indd'; // Use your string
app.open (File(s));
app.documents[0].links[0].update();Expected result: The links should be updated.
Actual result: "Error: This file is already…3 votesHi,
Please can you provide some more information related to the issue?
1. OS
2. Document and imported file location (local or network)
3. File system type
4. Can you share a sample document along with the imported file.
5. Is the issue reproducible in ID 2020?
6. A small video will help as wellThanks
amaarora@adobe.com -
pdfComment -- no way to find relevant text in the document
There has to be a way to get the relevant text in the document -- or else there's no point to making the pdfComments available
3 votes -
Preflight for books
You can preflight books: myBook.preflight()
But there is no corresponding function to preflight individual documents. Please add the preflight() function to the document object.3 votes -
ScriptUI Centering Breaks when switching monitor
If you switch monitors (i.e., unplug your laptop from a large monitor and go to present at a conference), and don't restart InDesign, scriptUI doesn't update the center position of the monitor.
It causes scriptUI windows to appear out of place.
3 votes
- Don't see your idea?