Export indd file to Snippets [VBS]

Hello all i'm trying to modify an existing script that Exports indd files to pdf's. it goes through all the indd file and createsa pdf one page at a time and workds fine. However in converting it to do the same but convert to Snippet files  i'm having problems with the "idExportFormat.idInDesignSnippet" class and memebers  when i try somthing like
myFilePath = myFolderName & "\" & myPageName & "_" & myBaseName & ".inds"
myDocument.Export idExportFormat.idInDesignSnippet, myFilePath, False
I get an "The Specified object to does support the desired export format." error # 25398
if i remove the  ",myflePath, False" then i get a "Missing required parameter 'To' for export event".
The really anying this is if i change that to a
myFilePath = myFolderName & "\" & myPageName & "_" & myBaseName & ".xml"
myDocument.Export idExportFormat.idXML, myFilePath, False
it works fine..
So there is somthing missing for the snippet export.

I've broken the problem down and started as small as possible.
To do the same thing but to export each page as a jpg's i can use the following script
Set myInDesign = CreateObject("InDesign.Application.CS3")
myFile = "c:\myTestFile.jpg"
myInDesign.ActiveDocument.Export idExportFormat.idJpg, myFile, False
If i change that round a abit to customize it to export as inds snippets i would get
Set myInDesign = CreateObject("InDesign.Application.CS3")
myFile = "c:\myTestFile.inds"
myInDesign.ActiveDocument.Export idExportFormat.idInDesignSnippet, myFile, False
This produces the following error " The specified object does not support the desired export format"  - Line 3
This is because the object i am speifiying is "ActiveDocument" which when selected (manually) cannot be exported as a Snippet.
What I need to do is cycle trough my pages selecting Texframes of which they are multiple on each page and export them as Snippets.
Can anyone help please?

Similar Messages

  • Exporting Indd file and losing transparency

    When I export an indd file to pdf, the transparency of the png image in the file is lost. Any idea what's causing this?

    Why are you using a PNG?!!!!!!!
    I mean you should use a different file type. PNG is terrible when you want to print the file. Use PDF or PSD instead.
    Except for apps I would recommend not to use PNG in any case in InDesign.

  • How to export multiple indd files to individual PDF's?

    Is there a way without using scripting, to simply take, say 10 single indesign files (all just single 3.5x2 business card layouts) and export them to a pre-defined PDF preset resulting in 10 single PDF's? (other than one at a time?)
    I tried a few things from Acrobat 9 pro, one of them being File/export/export multiple files/  thinking that must be the ticket, but
    1) I can't find my pre-defined PDF preset in the "export to dropdown list" (but thats secondary, probably can add that in somehow, right?) and
    2) even when I just pick PDF/a or PDF/x it starts the process, then tries to open each indd doc but a message comes up saying it can't open the INDD  file(s) and nothing was processed.
    Can someone help me with this?
    Thank you.

    Macinbytes,
    Would you mind walking me through what you are doing?
    In your screen shot, that window looks like the preferences panel, in which you can set your PDF preset, correct?
    Here's what I have been trying.
    File/Create PDF/Batch Create Multiple files.
    Eventually, I get this window. (output options)
    Then when I hit OK, I get this error message saying the files cannot be opened.

  • Export Indd to EPS/JPG and set the file name  for EPS/JPG file

    Hi,
       When I export the INDD to JPG/EPS, I want to set the file name with pageNumber  for JPG/EPS files using javascript.
    For Example
    If I set the file name as EPSFile.eps, after exporting the indd(with 2 pages) to eps
    ,files are generating in the following name EPSFile_1.eps, EPSFile_2.eps.
    but I want to set the file name as EPSFile_001.eps and EPSFile_002.eps using javascript.
    anyone knows please reply for this.
    Regards,
    Mubeen

    Hi,
      I tried the following code.
    var JPGe = new File("Applications/PDF/JPG/file.jp");
    app.activeDocument.exportFile(ExportFormat.jpg, );
    when I use this code ,exported jpg file names are
    file.jpg, file1.jpg,file3.jpg.
    but ,I want the output file names as file_001,file_002,file_003,
    Thanks,
    Mubeen

  • InDesign: How can I export indd pages to layered psd files?

    I wish to create layered PSD files from the pages of InDesign marketing brochures so that they may be used as templates in Photoshop by photographers (or whomever) that neither possess nor understand how to use InDesign? I have seen offerings by other offering both an indd file and multiple psd files but I cant discern a simple way to make that happen. I am hoping to be able have it occur via a "click" -- convert indd to layered psd. Id doesn't not appear to allow PSD export. What is another method to do this? I'm on PC.

    One way would be to export every Indesign layer as PDF and to assemble them again to a multi-layer PSD file.
    But there is a also script that can do what you want. Unfortunately for you, it is for Mac only.

  • Export single Pages (as PDF) from a .indd file

    Hi folks
    i use ID CS2 and i'm trying to export single pages from an indd file (using C#).
    i tried to make an example first and thats my code so far:
    [CODE]
    InDesign.Application App = (InDesign.Application) COMCreateObject("Indesign.Application");
    InDesign.Document doc = App.ActiveDocument;
    InDesign.Page page = (InDesign.Page)doc.Pages[1];
    doc.Export(IdExportFormat.idPDFType, @"C:\indesignTestFile.pdf", false, "[High Quality Print]", "Some Comment", true);
    [/CODE]
    Now it says that the IdExportFormat command is not known.
    any suggestions would be very great.
    kind regards

    thx for the quick answer. this piece of code is from a sample and i changed id to this one:
    in the very top of the program - using InDesign (so that the idExportFormat works)
    doc.Export(idExportFormat.idPDFType, "C:\\indesignTestFile.pdf", false, //object using)
    now i have no idea what i should enter at object using
    could you explain that to me a little bit further? do i have to make a constant var that has the value 1952403524 and then use idExportFormat.idPDFType as well or idExportFormat(1952403524)?
    i haven't progged a while and i feel a little bit dumb right now =D so sorry for this newbie questions.
    thanks for your help, i realy appreciate that
    kind regards

  • Feature Request // Book Module: Export as indd file and management

    Book Module: Export as indd file and management
    I would like to request a feature to export a book module as indd file. 
    I like PDF's but .indd is nice also so we are able to to more in depth layouts.
    Having Lightoom being able to manage all your pictures and book layouts would be nice, alot of things can be done in one application.
    Another Feature:  Using Lightoom as book layout management.
    Being able to send a page(s) of the book from lightroom into InDesign to do indepth layout and editing, then being able to send it back into lightroom
    Almost similar to how you can send a photo from LR in Photoshop to do indepth editing and then send it back into lightroom.
    This could and will ease the workflow of book management and layout design.  So lightroom will not only be able to manage photos, but also indesign and book layouts.
    http://forums.adobe.com/message/4238530#4238530

    Why do repeat it here, as you have already filed a feature request for it?
    BTW AFAIK this is already implemented: you can use Adobe Illustrator or InDesign or Opensource Scribus to edit layouts.
    They are just not ready to publish how - another sign of the quality processes at Adobe.
    But you do not send from the book module.
    You create upfront layout templates, which you can import for use inside LR book module.
    This is a one-way street.
    The book module designers did not acknowledge a use case where you might want to fiddle the exact placement of really chosen images.
    It is always you first design a template, then use it.
    Love it or leave it - *change it* is not an option that Adobe seems to give to their beta testers.
    Cornelia

  • Indd file export to PNG with 150 ppi.

    Hello All,
    I want to export few indd files as PNG but with 150 DPI. I have the script for convert to PNG but I want to add PNG resolution in the script.
    Please advise.
    Regards
    Virender

    Here is the script but its not complete.
    var sourceFolder = new Folder ("/Users/admin4/Desktop/INS"),
    var destFolder = new Folder ("/Users/admin4/Desktop/folder3"),
    myFiles = sourceFolder.getFiles(/.indd$/),
    var 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);

  • Is there a way to name the .indd files created by a data merge with values in the CSV file

    I have a data merge document that is set to single Record per Document page and 1 page per document.  In my CSV file I have a field for Part Number.  If I run a data merge with 10 records I end up with 10 .indd files.  I need a way so that the resulting .indd files are named the same value that is in the Part Number field.

    Loic has provided a link for my original piece, and I've written up some follow-up pieces for indesignsecrets.com:
    http://indesignsecrets.com/data-merging-individual-records-separate-pdfs.php
    http://indesignsecrets.com/data-merging-individual-records-separate-pdfs-part-2-scripting. php
    So there are several ways to get unique name PDFs from an indesign Data Merge. However, none of these 3 articles will truly answer your question of how to get unique indesign filenames using the database. I can see a practical purpose for this as merging business cards directly to PDFs is great, but I can be guaranteed that while on proof, there will be alts to the business cards that need to be done outside the merge, meaning specific records need to be exported to indesign files for further manipulation.

  • Cannot open indd file in CS5.5? "Please upgrade your plugins to the latest version or upgrade..."

    I refer to a similar forum post here - http://forums.adobe.com/message/4081971 - which outlines a similar problem with opening a file.
    The difference is the file I can no longer open was created using Adobe indd CS5.5 and I am opening it with Adobe indd CS5.5. I have never had this issue previously. The only change is to a new OS on Mac - Version 10.8.2. Error message says "Cannot open "File name" please upgrade your plugins to the latest version or update to the latest version of Adobe" - I know there is CS6 but why should I now need to upgrade suddenly?
    Can anyone help here? I can forward a link to the file in question if needs be.
    Cheers,
    Catie

    @Catie – did you verify, if your InDesign file is saved in version CS5.5?
    You could do so by using a ExtendScript (Adobe's version of JavaScript) written by Jongware.
    Here is the full story of "IDentify.jsx":[Ann] Identify Your InDesign File
    http://forums.adobe.com/message/4071273#4071273
    If the problem is due to a corruption of plug-in version information, I fear you have no chance other than:
    1. Update CS5.5 to the latest bug-fix version => 7.5.3
    2. Download a trial version of InDesign CS6, open and export the file to IDML and re-open it in InDesign CS5.5 (though this might not work for a corrupted file)
    3. Try to open the file on a different machine
    Are there 3rd party plug-ins involved? If so contact their makers…
    Uwe

  • Error while reading indesign(.indd) file through COM object in c#

    I want to read InDesign(.indd) file in c#. I have installed adobe InDesignCS6.
    I have added COM reference of 'Adobe InDesign CS6 Type Library' in my c# application.
    Code snippet is as follows.
            [STAThread]
            static void Main(string[] args)
                InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application");
                Document doc = app.ActiveDocument;
                Page page = doc.Pages[1];
                TextFrame frame = page.TextFrames[1];
                Console.WriteLine(frame.Contents.ToString());
            public static object COMCreateObject(string sProgID)
                // We get the type using just the ProgID
                Type oType = Type.GetTypeFromProgID(sProgID);
                if (oType != null)
                    return Activator.CreateInstance(oType);
                return null;
    But the first line itself throwing an following error while type casting output of COMCreateObject method into InDesign.Application type.
    Error :
    Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{ABD4CBB2-0CFE-11D1-801D-0060B03C02E4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
    Kindly help me. Its urgent.

    try this,
    InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application.CS6");

  • Page numbers from placed indd file not printing

    I've created a saddle-stitch booklet 1up in InDesign CS4. I've got auto page numbers on the master page, but when I place it in another InDesign document 2up for proofing, the page numbers are visible, but don't output either to an exported PDF or a PostScript file printed to be Distilled. Please advise.

    It's a bug. Anything on the master page of a placed INDD file just
    disappears...not good.
    Bob

  • InDesign infinite loop when exporting INDD as IDML - one specific document

    Hi,
    I have several thousand INDD files that are generated using CS4. We are migrating to CC server so need to be able to run scripts against these files. One of the scripts performs some (simple) manipulations and then saves as IDML...
    Except...
    With a percentage of our files (I've found two out of less than a hundred files that I've tested) the export to IDML task never completes. InDesign server simply hangs, permenantly. The only way to get our server back is to manually terminate the process using Task Manager and then restart. I have looked at the INDD files using InDesign client and can see nothing whatsoever the matter with them. However, even in client, even after deleting _ALL_ content, when I try to save as IDML, I get the export process hanging (see screenshot below).
    So, I guess I have two questions;
    1. How can I modify InDesign server to detect and recover from this form of infinite loop?
    2. Does anybody have any idea what could be causing the infinite loop? (And how to resolve it?)
    Thanks,
    Gaius

    You should try a divide and conquer for the InDesign file.
    That is split it in two and then try export to IDML
    Whichever sides hangs is where the problem lies. You can keep halving this document until you find the problematic page/pages.

  • Unable to open various CS3 .indd files - no error message

    Hi, running CS3 5.0.4 on a G5 Leopard.  Most of our .indd files will not launch - no error message though - and nothing appears but the program launches fine.  I've found other .indd files that will open fine.  The files in question haven't been used since February though the ones that will open haven't been opened/updated as well.
    I just installed CS3 to my Macbook Pro but same result.  I tried copying the files to my desktop but no diff either.  Since I get the same result, I'm inferring this is not a preferences issue.  I read about exporting to .inx but Export is not available since the file does not open, if that would help in this case.
    The main commonality I'm noticing is the "bad" ones have similarly small sizes around 20-28k which seems too small to hold any data.  I just created a new document and by default it is 808k.
    Does anyone know how to recover from this issue and what the cause is/was?  I'm hoping this is a known, recoverable issue please!
    Thanks,
    E

    Eric,
    Attachments are disabled. You need to post a link to an external server.
    And you probably don't want to share your phone numbers with the world. I'll remove them from your last post, but you need to start deleting your auotomatic signature when you reply by email.

  • Cannot open CC, indd files saved in an earlier versions in CS6

    When attempting to open CC files inside of version CS6 that have been saved by students in version CS4 and later, I get the following message" Cannot open "fileName.indd" because it was saved with a newer version of Adobe  InDesign (CS7.0) You must use tht version or later to open the file... How can I open these files? I also get plugin messages.

    That's weird. But I guess they didn't properly Exported the file into an .idml file. Save As is different from File -> Export to idml
    If your student did just File -> Save As, thinking that Save As works just like MS Word that saving it will work with backward compatibility to a lower version of InDesign then probably it won't work.
    However, just ask them to Re-Export the file to .idml and see if you can open it in your InDesign CS6.

Maybe you are looking for

  • DB adapter polling on a VIew

    Hi, I ahve an urgent requirement. I have to poll records(logical delete) from a VIEW in oracle 11i database. But polling is working on table but not on VIEW of the table. i have created the view and commited but polling was not happning. can any one

  • Using ICC Monitor Profiles

    Hello, I produce ICC RGB monitor profiles for use with Photoshop using an Eye One Photo. Can FCP, or other software, translate those profiles so I know my LCD monitor is displaying color and contrast accurately for editing with FCP? If not, is there

  • Split or separate photo pages?

    I'm trying to do something that I would think should be fairly simple and not too unreasonable. I made a photo page, and would like to have it split into sections so I can have a heading above each one, e.g., cool pics pic1a pic2a pic3a pic4a not so

  • Cant Display charts in browser with CrystalReportViewer

    I am integrating crystal reports with Struts.I could get the reporting data in the browser with crystal report viewer.but i cant dispaly reports that contain charts in the browser.when i am trying to execute,i m getting following exception. com.cryst

  • User Accounts in Domain Admins group do not have full administrative rights to the server

    Our server was fine until recently one day we lost admin access for admin user accounts. If we log in to the server with the Domain Admin account, this account has full admin access to the server and can install and launch all programs and even all s