Export a table present in the indesign file in PNG?

Hi all

I have 10 indd files and each file has a page and a table is the only element that is present on the page. So a few files indd a table present in a text box and few records a table in two text boxes, because the table has several rows as spiltted in two linked text boxes.

I am able to select the two text boxes, but all somehow by exporting the table of the box text only get exported in png because of a bad code.

Pls help.

app.selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);   / / here, I need to correct the code.

indesign #target

var sourceFolder = new file ("/ users/admin4/Desktop/INS ');

myFiles var = sourceFolder.getFiles ();

Alert (myFiles.length);

var destFolder = new file ("/ users/admin4/Desktop/folder3");

for (i = 0; i < myFiles.length; i ++)

{

If (myFiles [i] .name "! =".) DS_Store')

{

var sourceDoc = app.open (myFiles [i]);

app.activeDocument.pageItems.everyItem () .select ();

app.activeDocument.stories [0] .tables [0].parent.select ();

var destFile = lead (destFolder + "/" + myFiles [i] .name + ".png");

App.Selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);

Here, I need to fix the code.

sourceDoc.close (SaveOptions.NO);

}

}

Hello

Group pageItems and export selected group:

var sourceFolder = new Folder ("/Users/admin4/Desktop/INS"),
destFolder = new Folder ("/Users/admin4/Desktop/folder3"),
myFiles = sourceFolder.getFiles(/.indd$/),
sourceDoc, i, destFile, mPItems, mTarget;

for (i=0; i < myFiles.length; i++)
{
     sourceDoc = app.open(myFiles[i]);
     if(sourceDoc) {
          mPItems = sourceDoc.spreads[0].pageItems.everyItem().getElements();
          switch (mPItems.length) {
               case 0: alert("Empty file: " + sourceDoc.name); exit(0); break;
               case 1: mTarget = sourceDoc.pageItems[0]; break;
               default: mTarget = sourceDoc.groups.add(mPItems); break;
               }
          mTarget.select();
          destFile = File(destFolder + "/" + sourceDoc.name + ".png");
          app.selection[0].exportFile(ExportFormat.PNG_FORMAT, destFile, false);
          }
     else alert("Can't open a file: " + sourceDoc.name);

     if(sourceDoc.spreads.length > 1)
          alert ("More than 1 spread in file: " + sourceDoc.name);

     sourceDoc.close(SaveOptions.NO);
}

Jarek

Tags: InDesign

Similar Questions

  • 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:

    http://www.Amazon.com/GP/feature.html?docid=1000765261

  • I have created a multi-page document in inDesign and exported in PDF format.  The original file size is 13.27 mb.  I used the command size reduced to 2.86 to the file to download on the internet.  However, one of the images in the original pdf file does n

    I have created a multi-page document in inDesign and exported in PDF format.  The original file size is 13.27 mb.  I used the command size reduced to 2.86 to the file to download on the internet.  However, one of the images in the original pdf file does not appear in the smaller file.  Can someone help me?

    Try the PDF tool optimize.

  • 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

    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.

  • 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

  • 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"));
    
  • Make sure that the products/versions supported are present in the MXI file or CEP manifest when you transfer the zxp to Adobe Exchange

    Hi all

    I was faced with this problem for a long time.

    When I'm uploading my Extension for first pro CC Panel, I get this message from Adobe Exchange.

    Problems have been found with your submission.

    Once you have made the following changes, you can click the Edit (pencil) and re-download your ZXP.

    • Make sure that the products/versions supported are present in the MXI file or a CEP manifest file

    I added

    < Products >

    < produces maxversion = "9.9" name = "First" primary = "true" version = "7.0" / >

    < / product >

    In my mxi file and the ZXP is install correctly in Premiere pro versions CC, 2014 and 2015.

    But when I upload the same ZXP his shows this error.

    When I changed the label of products with details of the document Adobe Exchange forum to test different scenarios [https://www.adobeexchange.com/resources/7#packman]

    < Products >

    < produces maxversion = "8" name = "InDesign" primary = "true" version = "8.0" / >

    < / product >

    ZXP is getting downloaded on Adobe Exchange.


    Can anyone suggest what to do to download my package with support for Premiere pro zxp versions 7.0 to 9.9?


    Thanks in advance,

    ANOOP NR


    Thank you watchwithi28270883! I was facing this problem for quite a while now.

    Your solution worked for me also!

  • 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.

  • Write a string and an integer and a table all in the same file?

    Hello

    I am currently it several different types of values with LabView.

    I have a shot, a few numbers and several paintings.

    Thus, for example, I have a timestamp of the chain, several values of "integer" amplitude of the signal for example, RMS value, frequency and I have several paintings - table of signal, the FFT (PIC and location) values.

    Basically, I'm trying to find a way to write all the values in a single file. I can write all the individual types to separate files (so I can write the RMS, amplitude and frequency to a single file, some of the tables in the other)
    but is it possible to write a string and an integer and a table all in the same file?

    Pointers would be much appreciated,

    Thank you

    Paula

    Your file will be all text... any format in a table of text, to build as a single table, "table chain worksheet", to write to the file.

    (I'm sure this has been on the forums before... a search it would have thrown upward)

  • 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.

  • 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.

  • Presentation of the SWF file

    Hello

    What is the best solution for the presentation of the SWF file on computers that have not installed FLASH player?

    There is none. Flash is owner and using little flavor of Flash player is inevitable.

    Mylenium

  • 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.

    1.jpg

    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

  • 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/

  • 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