adobe-indesign

Is it possible to call a web service with Indesign javascript?

一笑奈何 提交于 2019-12-03 11:59:58
I'm an in-house developer for a print company. We use Adobe Indesign CS3 and CS5 to create documents for printing. I created a script in Adobe Extendscript that creates an Indesign Document and handles some basic conversions when the client fails to do so themselves. I used Javascript to write this script. Is it possible to call a web service through such a script? If so, how? If not, what would be the best way to call a web service from the desktop? Thank you. No and Yes. No, there is no way (afaik) to make InDesign call a web service from a script. It's very possible and often done from

Importing Html into Adobe Indesign

时光毁灭记忆、已成空白 提交于 2019-12-03 06:01:28
We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like bold, underline, strike out. Once this is stored in the database we are planning to use Indesign to create the pdf. We currently we have a template built, but when we generate an xml document and import into Indesign the html tags are just written out. Is there a way around this, to get Indesign to maintain the tags as they would be in html? We just need some simple ones, like bold, strikeout,

Count <td> Elements in xhtml <table> with XSLT 1.0

痞子三分冷 提交于 2019-12-02 14:04:52
问题 i've an XSLT 2.0 which transforms an xhtml Table into an InDesign XML Table. This XSLT counts the maximum number of <td> Elements within every row <tr> Line 7 in the template below ( max(for $td in //tr return count($td/td)) ). <xsl:template match="table"> <xsl:element name="id_table"> <xsl:attribute name="aid:trows"> <xsl:value-of select="count(child::*/tr)"/> </xsl:attribute> <xsl:attribute name="aid:tcols"> <xsl:value-of select="max(for $td in //tr return count($td/td))"/> </xsl:attribute>

How to convert CMYK to RGB programmatically in indesign

放肆的年华 提交于 2019-12-02 10:54:34
问题 I have a CMYK colorspace in indesign, i want to convert that as RGB color space, I got some codes, but I am getting incorrect data. Some of the codes which I tried are given below double cyan = 35.0; double magenta = 29.0; double yellow = 0.0; double black = 16.0; cyan = Math.min(255, cyan + black); //black is from K magenta = Math.min(255, magenta + black); yellow = Math.min(255, yellow + black); l_res[0] = 255 - cyan; l_res[1] = 255 - magenta; l_res[2] = 255 - yellow; @Override public float

Count <td> Elements in xhtml <table> with XSLT 1.0

不打扰是莪最后的温柔 提交于 2019-12-02 04:21:50
i've an XSLT 2.0 which transforms an xhtml Table into an InDesign XML Table. This XSLT counts the maximum number of <td> Elements within every row <tr> Line 7 in the template below ( max(for $td in //tr return count($td/td)) ). <xsl:template match="table"> <xsl:element name="id_table"> <xsl:attribute name="aid:trows"> <xsl:value-of select="count(child::*/tr)"/> </xsl:attribute> <xsl:attribute name="aid:tcols"> <xsl:value-of select="max(for $td in //tr return count($td/td))"/> </xsl:attribute> <xsl:apply-templates/> </xsl:element> </xsl:template> I've no idea how to realize this with XSLT 1.0 -

Remove items from one array if not in the second array

两盒软妹~` 提交于 2019-12-01 20:17:21
I state that I have tried for a long time before writing this post. For an InDesign script, I'm working with two array of ListItems. Now I'm trying to remove the items of one array that aren't in the second array, but i'm stuck. Given that I use the following javascript code (it works great) to remove the equal items between the two arrays : function check_dupli(arr_A, arr_B) { for(var i = arr_B.length - 1; i >= 0; i--) { for(var j = 0; j < arr_A.length; j++) { if(arr_B[i] === arr_A[j]) { arr_B.splice(i, 1); } } } arr_B.sort(); } arr_A = ["a","b","d","f","g"] arr_B = ["a","c","f","h"] check

How to do mail merge on top of a PDF?

与世无争的帅哥 提交于 2019-11-30 12:33:26
问题 I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people. I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support the advanced PDF. I just want to output some text onto each page and print it out. Here's how I do it now: print out 6.000 copies of the PDF, then put all of them into the printer again and just print out name, address and other information on top

How to do mail merge on top of a PDF?

两盒软妹~` 提交于 2019-11-30 02:09:05
I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people. I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support the advanced PDF. I just want to output some text onto each page and print it out. Here's how I do it now: print out 6.000 copies of the PDF, then put all of them into the printer again and just print out name, address and other information on top of it. But that's expensive. Sadly, I can't make the PDF to an image and use that in OpenOffice.org

InDesign CS5 Script: How can I ignore the DTD when importing XML?

ε祈祈猫儿з 提交于 2019-11-29 18:02:25
I am importing XML into InDesign, and I get this message: The external entity 'blahblah.dtd' cannot be found. Continue to import anyway? And when I then continue to import the XML, I get this error message: Javascript Error! Error Number: 103237 Error String: DOM transformation error: Invalid namespace. Engine: session File: C:\blahblah\blahblah.jsx Line: 259 Source: obj.doc.importXML(File(xmlDoc) ); ...the problem is, is that I won't have access to the DTD, and I won't need it for my purposes anyway. So, is there a Extendscript way to ignore the DTD? If not, is there a way to ignore the DTD

Web Google authentication with firebase

偶尔善良 提交于 2019-11-28 12:20:54
uncaught exception: Error: This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled. var config = { apiKey: "*****", authDomain: "******", }; firebase.initializeApp(config); var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('https://www.googleapis.com/auth/drive'); firebase.auth().signInWithRedirect(provider); alert(1); } uncaught exception: Error: This operation is not supported in the environment this application is running