Questions tagged [adobe-indesign]

InDesign is Adobe's scriptable publishing software. When using this tag also tag the language that you are coding in for context, e.g. [extendscript], [applescript], or [vbscript], etc..

Adobe InDesign is a software application that can be used to create works such as posters, flyers, brochures, magazines, newspapers and books. It can publish content directly to tablet devices, in conjunction with Adobe Digital Publishing Suite.

1184 questions
0
votes
1 answer

Reordering/move pages using Indesign script

I have a nearly 400 page document that I need to [randomly] reorder the pages. (If you need to know, this is a book of single page stories that need to be randomly distributed. I created a random list of pages to input into the script.) I've been…
Cody S
  • 11
  • 1
0
votes
1 answer

Can I specify few fonts for a text in Indesign as in browsers?

I am using scripts to fill Indesign document with text. There is standard unicode characters (emoji, cyrillic, maths, arabic) but sometimes they are are not in one font. I have to take it from different fonts. Is there a solution like in browser CSS…
Alexander C
  • 3,597
  • 1
  • 23
  • 39
0
votes
2 answers

workflow of xml edit import to indesign breaks layout

I have a workflow where I would like to modify content and import the new content into the same Indesign layout. I thought the following would work: Export XML from Indesign Modify XML Import XML into indesign Repeat at 2 for each update However,…
jpmorris
  • 882
  • 2
  • 10
  • 22
0
votes
2 answers

Render part of page to file

How can I make InDesign render a region of a page, as it would be rendered when exporting the whole file? I know I can render a PageItem using the exportFile function, but this will ignore any other PageItems sharing the same region. My current…
0
votes
1 answer

How do I grep for all lines without a "@" character in the line

I have a text file open in BBEdit/InDesign with email addresses on some lines (about a third of the lines) and name and date stuff on the other lines. I just want to keep the lines that have emails and remove all the others. A simple pattern I can…
wide_eyed_pupil
  • 3,153
  • 7
  • 24
  • 35
0
votes
1 answer

Importing XML into InDesign Tables using Cell tag

I am writing an XSLT transform from WordML into XML, formatted for import into InDesign. But I'm having trouble with getting Table content (not CALS tables) to flow into the InDesign document as expected. When I use the some…
0
votes
1 answer

Style Nested XML-tags differently in InDesign, JavaScript

To import SMGL in InDesign I changed the first line in decoded entities and now I have the problem of nested Tags which should belong to different Paragraph-Styles Example:
AndyWizz
  • 113
  • 8
0
votes
1 answer

Assigning InDesign properties on anchored objects when importing XML

I'm developing XML for import into InDesign for page layout and styling. Are there attributes that can be used in the XML to automatically assign properties on anchored objects such as tables and images. For example, by default, images come in as…
T. Carano
  • 47
  • 7
0
votes
1 answer

How to parse XML file via InDesign script

The title speaks for itself. I tried to look for a parser in JavaScript but they don't seem to work in InDesign. Does somebody know how to do it?
daralim
  • 183
  • 10
0
votes
1 answer

Embedded pdf-font in R-plot is not recognized by InDesign although available

Using ggplot2, extrafont and R's pdf device I have built plots in the cmyk colormodel that incorporate certain non-Windows fonts. The pdf-output looks fine and shows that the font has been embedded correctly, for instance…
alex_555
  • 1,092
  • 1
  • 14
  • 27
0
votes
2 answers

ExtendScript multiple conditions in switch

I have a switch() that needs to contain multiple conditions for it to be true. The online community tells me I should separate them in two cases and then define it. like so: function changeGrep(searchFor){ app.findGrepPreferences.findWhat =…
Interactive
  • 1,474
  • 5
  • 25
  • 57
0
votes
2 answers

How do I map all objects in Indesign file to XML

END GOAL Ultimately, I need to export my InDesign file to HTML such that each HTML block-level element has a unique ID of some kind (it doesn't matter what it is as long as it's unique), a unique ID that also stays in the InDesign file and does not…
gcdev
  • 1,406
  • 3
  • 17
  • 30
0
votes
1 answer

ExtendScript search/replace loop

I am using ExtendScript with InDesign to have some simple search and replace to change a GREP. If I write them out one by one everything works fine. app.findGrepPreferences = app.changeGrepPreferences = null; app.findChangeGrepOptions =…
Interactive
  • 1,474
  • 5
  • 25
  • 57
0
votes
1 answer

How to create an extra line in csv file for indesign

I'm creating an CSV file in excel which will be used in an Indesign document. Is there a way to create an extra line (like you do with alt+enter in excel) in your csv file? I tried /n, /r, "text", even double ""text"" all of these didn't create an…
esther
  • 3
  • 4
0
votes
2 answers

InDesign Text Modification Script Skips Content

This InDesign Javascript iterates over textStyleRanges and converts text with a few specific appliedFont's and later assigns a new appliedFont:- var textStyleRanges = []; for (var j = app.activeDocument.stories.length-1; j >= 0 ; j--) for (var k =…
Himanshu
  • 2,384
  • 2
  • 24
  • 42