Export the InDesign file as text
Hi all
I need to export the InDesign file as text (textType). There are several examples of this, but I could not found the script that export InDesign file as text in the path of the active Indesign with the indesign file name document.
For example: If the file is MyDoc.indd, export text file name should be mondoc.txt.
If anyone has this code, please give me.
Thank you
Chang
Talk in circles, are we not? See anwser #1 above!
But suit yourself. That's what you ask:
app.activeDocument.stories[0].exportFile(ExportFormat.TEXT_TYPE, new File(app.activeDocument.fullName.fullName.replace(/\.indd$/i,'')+".txt"));
Tags: InDesign
Similar Questions
-
I have problem in the PDF export to save only the layers appeared only. When I export the indesign file to PDF that contains layers hidden pdf placed, pop up problem when I use the search field in exported pdf file. hidden text of hits from search results to laye
I answered your question: there is nothing you can do in InDesign. You need to ask in the Acrobat forum I linked.
-
It is possible in "CC Indesign" to export the indesign file to .mobi format?
HY!
I have a question for InDesign CC, the new version... I needed to export the indesign file to the domain .mobi for Kindle support? I can do it with this version? Or it is possible with InDesign CS6?
Thank you
Sonia Vairo
The plug has not been updated since InDesign CS6.
You can easily convert your file produced ePub from InDesign CC2014/CC2015 with the Kindle Previewer:
-
How to export the indesign file to coreldraw
Hi all
I had created a brochure that would be printed to a professional printer. There, they use Indesign. Instead, they use Corel Draw.
How to export the indesign file created in corel draw.
and printing
@Dov, sorry. But there are places on Earth where the upgrade to a more modern workflow just will not happen either by choice, or more often, because of the money. I've dealt with a few printers to India use CD (beautiful dig to Corel, btw) or Illy. Just like that.
@srikanth977, all printers I treated using an older workflow and equipment that use CD or Illy for output agreed a PDF file. In addition, each of them wanted to PDFX-1A a PDF file without crop marks, bars of color, etc.. So check with your printer. They then add these features when they print.
Best regards, Mike
-
I have a special mix CMYK for a bcard in Indesign. When I export the pdf file that the CMYK mix has changed just started today 1.13.15 Running Yosemite 10.10.1 all help to what to look for would be greatly appreciated.
You are mixing color profiles a-place, or document workspace does not match the destination to export space is incompatible.
-
InDesign CC 2014 "can't export the PDF file.
I am trying to export a small document to PDF using InDesign CC 2014, something I've done many times before, but it now says "unable to export the PDF file.
There is no errors in the document (at least according to the preflight Panel) and the error does not say why InDesign doesn't have to export the PDF file.
Does anyone have suggestions on what to check to find out what it is exactly that InDesign cannot or will not do?
Thank you!
Adobe Community: File overwriting on output - print/PDF/other
-
Resolution of the image when you place the InDesign file in InDesign
I feel like this is a silly question but I do not know the answer!
If I place an InDesign file that contains a picture in a another InDesign, the resolution of the original image file is kept? For example, if I have an InDesign A5 file, that contains a chart where the ppi effective (because it's been reduced) is 600 dpi, and then I place the entire InDesign file it in another file and EXPAND, what happens to my graph?
Thank you!
I have a document with an InDesign file linked, an area of text that is used in many documents, so interested in this issue.
I did a quick test and it seems to work as it should. I made a smaller file with an image linked and bound the Indesign file in a larger document, and since it is a linked InDesign file it recognizes and displays the image in the links Panel.
-
How to export the Indesign to Format XML using JavaScript document
Hi all...
Can someone help me, how to export the indesign document to XML Format using JavaScript...
Thanks in advance...
doc.exportFile ( ExportFormat.XML, File(Folder.desktop+"/doc.xml" )
-
Is it possible to store parameters to script with the InDesign file?
Hello
I have a crazy idea: it is possible to store parameters to script with the InDesign file?
In this case the Scripting Guys will be able to store these settings with the file, and when the script runs - he can check if those setting exists - if so - script can run without showing the dialog with the settings... (like all the necessary parameters are stored with the indesign file), and of course we can force InDesign to display the script dialog parameters if run us with the alt/option key pressed when executing this script. Maybe even different scripts will be able to share these settings and interact with each other... We will be able to have the settings will be saved with the file, or temp settings for the document assets or session (till InDesign is closed). With eventListeners and commissioning, scripts, that we will be able to make scripts that would be able to check updates and automatically run when we placing images and text and so on... This can be a set framework of InDesign scripting, allowing to write scripts that use ui and same libraries so we don't have to write everything from scratch every time and just included required libs...
So here are 2 great questions for now:
(1) is it possible to store script with .indd file settings
(2) who is interested in creating InDesign scripting (because it only makes sense if it will use a lot of people)
PS: I know that it is possible to store settings in an external file, but this time, I'm interested only to save the params with .indd
The syntax of the function to write the label:
app.activeDocument.insertLabel('myLabel', 'myLabelValue');
IMPORTANT: If you forget the name of the label, the label is LOST! Really? YES, REALLY!
The syntax of the function for the reading of labels:
var myLabel = app.activeDocument.extractLabel('myLabel');
http://indisnip.WordPress.com/2010/07/31/saving-script-data-within-document/
-
How to reduce the size of the InDesign file?
I need to reduce the size of the InDesign file without disturbing the properties of output as the option exists in Acrobat "Reduce file size", pl. help.
Thank you
ArcRaj
A simple "save under" erases all information cancellation that could have been implemented over time.
If you * really positive * want to clean up your file something suspicious, export to INX (or, using CS4 to IDML) and opens. Save a copy of your original file somewhere else first, because this isn't a 100% free error warranty procedure.
If your file size is always beyond a reasonable limit: you have all images incorporated, rather than as a link? (Just don't do it.)
You have pictures with a very small (72 dpi) "ppi" real and a high (300 dpi) "effective ppi"? Who can make the images of very large preview - and they * are * included in your file ID.
-
I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file of export including blank parts?
in the export dialog box, you have chcked 'use of work plans? ''
-
Can I edit the Indesign files on my ipad with creative cloud?
I want to make changes to the Indesign files on my ipad and just downloaded the creative application of cloud for the ipad. But I can't open my files, which are in my Dropbox, thanks to the new application.
It is not possible to open InDesign files on an iPad with any application.
All the Cloud Creative app allows you to view thumbnails of files. You cannot change them.
The Adobe Comp CC application allow you to create a preliminary page for an InDesign file that you can open in InDesign. It is not a publisher of InDesign files.
-
How to remove the value of the XML attribute in the Indesign file with javascript
Hi all
How to remove the value of the XML attribute in the Indesign file.
What error is this?
in any case try this as well (one another),
var myDoc = app.activeDocument; attrDelete(myDoc); function attrDelete(elm) { for (var i = 0; i < elm.xmlElements.length; i++) { try{ for(j=0; j
Vandy
-
I have an existing project, years ago that I need to change, I am using Flash Builder 4. When I export the project, it creates a SWF in bin-release, then when I change the code in the mxml project file or files of any format and export the swf file needs to change, but it's not. You have an idea why this might happen?
Thank you
I found the problem, there was a SWF into the html-template folder within the project. This has led to substitute the swf of the new generation.
-
Error generating content. Cannot open the InDesign file.
Hey all -
In the import of an article on a folio, I just got this error:
"Content generation error.
Cannot open the InDesign file. Please confirm that the file can be opened in InDesign.
The file is opened now in InDesign. I can close and reopen without error.
I tried to save again article in a new file. No help.
I tried to create a new folio and bring the article there. No help.
All links are good. It is a simple file with images, a pane scroll and buttons that link to other articles.
Anyone experience this problem? All solutions?
Thank you!
as suggested above, Amy if you download items from a network drive, move your files to local computer HD and download from there. Download the data to a network drive is known to cause unpredictable errors
Maybe you are looking for
-
Import videos: camera roll videos vs app
Hello. I just discovered that it is possible to import videos into the film or the video app. I wonder if one of these methods is better than the other? The only advantage of the app videos until now, I've noticed, is that it shows some details about
-
The host to the intervention of view RT
Hello In my application, I have a host and a RT VI -L' host VI acts as a user interface where the user can control a motor ON or OFF, while the RT VI is in the idle state of the state machine -During a State of rest, the Boolean control is enabled, o
-
Hi, I bought an inexpensive netbook with Windows CE 6.0 installed in English, how can I change to Spanish? Here's the info for the machine: processor speed: 300 MHz display size: 7 inch of operating system: Windows CE 6.0 processor Configuration: Sin
-
is there anyway that I can download video shader 3.0 card so I can play tribes go up?
I'm trying to download tribes Ascend and he says: I need video shader 3.0 card and I don't know where to download it. I searched the internet but I could not find the right download. I have a Windows XP, 32-Bit.
-
Cannot play hundreds of games on Pogo 1.
Running Vista home - 32 bit. Recently replaced motherboard Am an old fart of 72 years who doesn't have a lot of intelligence of the computer.