SlideShow using Indesign Scripting

Hello...
I want to convert the Indesign SlideShow file into HTML file using Indesign Javascript... In Indesign file One Enlarged image will be there and other small images will be there. When you click the small image it should display as Enlarged image...
Please can anyone help me on this...

InDesign scripts only work within InDesign, on the native file. For a function such as you imagine, you need to insert some sort of Javscript into the HTML.

Similar Messages

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team,
    I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script.
    I have written the code like
    Dim Pages=IndDoc.Pages
    Dim Mytype=TypeName(Pages)
    Pages.Move(InDesign.idLocationOptions.idBefore,IndDoc1.Pages.LastItem)
    but it is giving an error as method Move is not a member of Pages 
    please give mme the solution to move the Multiple pages or a group of page from one Indd to another Indd.

    Hey Peter, if I wan to move several page that part of Auto Flow text, I checked the "delete page after moving" but the content still there, not deleted.
    Is there any way to delete it automatically, just to make sure I have moved that autoflowed page?

  • Find raster Image & Vector image in adobe indesign using apple script?

    Find raster Image & Vector image in adobe indesign using apple script?

    Find raster Image & Vector image in adobe indesign using apple script?

  • Creating pdf with super/sub script using indesign

    Hi,
         I want to create a pdf with textrise for subscript and super script using indesign. I am new to this. Kindly guide me to acheive the same.
    Regards,
    Kameshwaran A.

    Hi Peter,
         Thanks for the response. I have created the file in ID and exported / print (Both i have made) it to PDF. When i open the pdf and check the textrise value is 0. Actually it should be greater than or less than zero. I don't know what mistake i have made or how to acheive the same. Could you please tell me where i have made the mistake.
    Thanks and Regards,
    Kameshwaran A.

  • How to Run Indesign Script in a file from plugin code in CS4?

    Hi,<br />I have the code to execute the InDesign script stored in external file for InDesign CS3.<br /><br />InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss)); <br />InterfacePtr<IScriptRunner> scriptRunner(scriptManager, UseDefaultIID()); <br />     IDFile scriptFile(scriptFilePath); <br />     if (scriptRunner->CanHandleFile(scriptFile)) <br />     { <br />       ScriptData returnValue; <br />       PMString errorString; <br />       ErrorCode error = scriptRunner->RunFile(scriptFile); <br />         ASSERT(error == kSuccess); <br />     } <br /><br />But the RunFile() method is cs4 expects an additional argument of the type RunScriptParams. <br />Someone please show me with a code snippet on how to excute a script file in CS4??

    Dear Ian
      Here I'm used the below coding in CS3, Its working fine....
    //In CS3 Coding
      PMString jsFullPath("c:\\windows\\sample.jsx"); // a path to my java script file
    do
    const
    IDFile outFile(jsFullPath);InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if(scriptManager){
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, kTrue, kFalse);
    while(kFalse);
    But the same time I used this coding in CS4, Its not woking
    //In CS4 Coding
    PMString jsFullPath("c:\\windows\\MacID\\BIN\\sample.jsx"); // a path to my java script file
    do
    const
    IDFile outFile(jsFullPath);InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if
    (scriptManager){
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    while(kFalse);
    I changed the "RunFile" arguments also
    RunScriptParams params(scriptRunner);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    But Still I'm facing the problem in InDesign CS4.  That's mean  "Adobe InDesign CS4" shout down for serious error happend.
    Please kindly help me, for solving this problem.
    Thanks & Regards
    T.R.Harihara Sudhan
    Message was edited by: Adobe-InDesign CS4

  • Converting a PDF to an EPUB using InDesign

    I have four finished books in PDF files, totaling 1857 pages including over 600 photographs, which I need to convert to EPUB files in InDesign.  I used a script to import all of the pages of one book into InDesign into a document reflecting the page and margin parameters of the original Microsoft Word document file.  The imported PDF looked perfect in InDesign once I switched to a high-quality display performance in the View menu.  However, when I exported the document into an EPUB file, I ran into two problems that I cannot fix. 
    Problem #1:  Both the Digital Editions EPUB reader and the Nook recognize the EPUB document as having only two pages (displaying 1 / 2 on the screen, even though I can scroll to or page to all 430 pages in both Digital Editions and the Nook.  This happens despite the fact that the correct number of pages correctly displays in the InDesign document settings.
    Problem #2:  The document text in the EPUB file is so poorly rendered it is almost illegible.  Each letter is chunky and fragmented and partially pixelated.  However, the same text in InDesign perfectly reflects the high quality fonts used in the original PDF and Microsoft Word Documents.
    I can find no documentation in the InDesign help system to explain why I am getting these results.  When I cut and paste a few pages of text from the PDF into an InDesign layout, it looks fantastic when I export it to an EPUB. But the text in the script loaded PDF pages look horrible.  And for what it is worth, Problems #1 and #2 persisted, even when bypassed the script and I hand placed a half dozen pages from the PDF into an InDesign document and exported them to an EPUB file. 
    Also, if I export back to a PDF from InDesign, the text looks perfect and the page numbering is correct in Digital Editions.  The only reference I found related to InDesign text quality on export  is in Object Export Options, but they remain disabled to me.
    And as a final test, I script loaded all 710 pages of the indesign_cs5_help.pdf to see if it would display the same problems. Not surprisingly, the text was just as poorly rendered in Digital Editions, which then displayed the first page of the document as 1 / 3 instead of 1 / 710.
    Is there some method I can use to fix these problems?  Or am I going to have to recreate the layout for all 1857 pages painstakingly object by object in InDesign?
    Thanks for all assistance.

    I have managed to work out the entire process over the past three weeks both working with InDesign with EPUB and by helping a friend post a series of books directly from Microsoft Word via MOBI to Amazon.  I will discuss the latter process first to point out the inherent problems with the direct approach, so the reasons for using InDesign become more apparent.
    From Microsoft Word
    First, I recommend you reformat your Word document into a smaller book size to simulate the maximum text display you will get on a Kindle (3.0 in. x 5.3 in. margins) or Nook (3.3 in. X 5.5 in. margins).  Next, make sure you are using style tags and paragraph and page layout options everywhere (no tabs or spaces in formatting), and a TOC object for the table of contents.  All photos or images must be centered, and if you want them to have horizontal width, then stretch them from side to side.  Leave your cover photo out of the document, and add it via the author panel specifying you want the uploaded cover image to be used inside the book.  This will assure that the cover photo will correctly fill the frame.
    Next save your DOCX document as a FILTERED HTML.  Then close Word and load the HTML into the Kindle Previewer to review to verify your images are correctly displayed.  When you do this, it creates a MOBI file that you can upload to a Kindle to view first hand.  Then when you are satisfied with the results, you can upload this MOBI book file to Amazon Authors Direct.  The upload dialog does not say it will accept a MOBI file, but the HTML file it recommends does not contain any image data.  As it accepts an EPUB file, it only made sense it would accept the MOBI file, and it does (even the Amazon technical staff did not know this).
    Using InDesign
    The results of going from Word direct to MOBI are far from perfect.  But I would judge they are minimally acceptable.  However, if you want complete control of a book’s layout I recommend going the InDesign route.  Without exception, the pages, text and images laid out in InDesign are (or will be soon) perfectly reflected on the Nook and Kindle.  Granted, it takes time to lay out a book page by page, but if you do it right by using the InDesign paragraph and object styles, the process goes quickly. 
    Create an InDesign Book with each chapter a separate document in the book to ensure chapters start on a new page.
    Make document pages small to maintain the look and feel.  They need not be 3.5 x 5.5.  I used a 5 x 7 inch document page and everything looked fine on the Kindle and Nook.  Get used to the idea that the text will always flow differently based on the text size selected, So only worry about inline image placement, chapter headings and such, and leave the rest to fate.
    After you get one chapter finished, use it to create a template document to use for subsequent chapter documents to facilitate laying out your book.  A photo in a graphic frame with an anchored caption text box is easily copied and pasted elsewhere to standardize all image objects.  Be sure to synchronize styles and swatches for each new chapter added.
    InDesign footnoting did not work correctly in the EPUB for me, but I found it easy to use the hyperlink system to emulate footnoting functionality.  By placing the footnotes at the back of the book and implementing a hyperlink back to the inclusion point of the footnote in a chapter, the reader can use the footnote pages like a hot index as well as a hot footnote.
    When generating an EPUB,
    Select No cover image
    Select ordering same as Article panel
    Set Book margin to 0
    Image size relative to page
    Contents XHTML
    Use InDesign TOC (set style used)
    Generate CSS with all boxes checked.
    One thing to be aware of is that the digital readers will read the HTML page objects left to right then top to bottom, so I recommend the following:
    In InDesign Guides and Pasteboard preferences, set the Snap to Zone to 1 to guarantee all page objects line up on the left margin exactly.  Manually adjust each object box X location as necessary.  Lock object when completed to minimize inadvertent movement
    Always guarantee all text box objects stretch from left to right margin.  Use the Indent controls to vary text placement and make this a new paragraph style.
    Always anchor a photo (inset in a graphic frame) to a caption text box stretched margin-to-margin to ensure the photos will not sink to the bottom of a page in the EPUB. 
    Photos snapped to each margin will display full width and will display larger when the Kindle is rotated 90 degrees.
    Add 0.25 in, Space After on the last paragraph before an image and 0.25 in, Space Before on the first paragraph after an image to create a bit of white space around the image and caption.
    Always use the Article list to verify the placement of page objects in each chapter document.  I have had a few images sink when the article list is generated despite all the above precautions.  But it is easy to manually make adjustments.
    Kindle Tools
    Amazon released a series of tools and PDF documents a few weeks ago that greatly simplify the process of posting a book for sale via Direct Publishing.  That said, rabbit holes abound waiting to catch anyone who is not already familiar with HTML and document layout software technologies.  So the non-tech masses should be wary.
    The Amazon Tools are at https://kdp.amazon.com/self-publishing/help?topicId=A3IWA2TQYMZ5J6 .
    KindleGen v2.4 – a command line tool used to build eBooks that can be sold through Amazon's Kindle platform. This tool is best for publishers and individuals who are familiar with HTML and want to convert their HTML, XHTML, XML (OPF/IDPF format), or ePub source into a Kindle Book.
    Kindle Previewer v2.4 -- a tool that emulates how books display on Kindle devices and applications. Kindle Previewer makes it easy to preview the layout of a book and make sure its text displays properly for any orientation or font size. This tool is recommended for publishers, eBook conversion companies, and individual authors in combination with KindleGen to produce the highest quality Kindle books. It is available for both Windows and Mac OS X platforms.
    Kindle Plugin for Adobe InDesign® v0.96 (Beta) --  a plug-in which can be used to convert documents or books created in Adobe InDesign® to Kindle format.  For more information on creating books for the Kindle platform from Adobe InDesign®, please see the Publishing Guidelines for Kindle Plugin for Adobe InDesign® available for download in PDF, Kindle and Adobe InDesign® formats.
    I found that the Previewer and the DOS KindleGen produce identical MOBI files, so I recommend the previewer for its ease of use.  After extensive testing I have found the Kindle InDesign plugin will perfectly convert the text from InDesign; however, it fails to size, place and display photographs and captions in all cases.  It also does not render the InDesign TOC correctly.  But remember, it is Beta software .  I sent in a bug list to Amazon via the Export Book to Kindle dialog in InDesign and never got a response, but presumably someone is working on the problems and will eventually get them fixed.  On the other hand, currently the Previewer perfectly displays photographs in a MOBI file when the InDesign EPUB file is fed into it; and the only problem with the text is that the line spacing is incorrect so paragraph lines are somewhat scrunched together.  While this is not a problem for developing a book, I would wait until the final release of the Kindle Plugin for InDesign before generating and publishing a MOBI book.
    I hope this helps.

  • When do I have to use InDesign Server?

    This might be a bit off topic, but maybe someone here can help me.
    I have an application that communicates with a database driven editorial system. Basically it displays all the pages of an issue. And it can poll the database, see that there are layouts that need to be updated. Then it will checkout the layout load articles (i.e. InCopy content) and check in. A new preview is generated and I get the updated view of the issue.
    The question is: Am I allowed to do that with the InDesign Desktop application on my machine? All the stuff done can also be done manually. But some people tell me that it is actually a Server job.
    So can anyone explain in laymans terms what is legal to do with regular InDesign scripting?
    Any opinion (or definite answer) would be greatly appreciated.
    Thank you,
    Ralf

    well, i'm no expert, and i understand the licensing policy of ID Server is really complicated. I believe that one rulw o' thumb is that if alle the users of your system also use either InDesign or InCopy, it's permitted to deploy a stand-alone InDesign as a server. If 70% or more of the users have InDesign, and you want the stability and speed of the server version, you could go and get the 'entry' license. There's also a corporate license for use within the same firewall thats 3 times the cost of the entry, and if you want to make your service available to the general public, it will cost you even more.
    But, as i said, i'm no expert and certainly not an adobe sales rep, and it's probably best you ask someone at Adobe to be sure.

  • Using a script to get the color of a colorized Black & White Bitmap image

    I've been running into this wall for quite some time and would greatly appreciate any help that can given for it.
    I have an Illustrator script that runs inside of a BridgeTalk session within an InDesign script.  Yeah, it's complicated.  The upshot is that the Illustrator part opens up an EPS file, looks through all objects on a certain layer in that file, and returns an array of the colors used in it.  So, it looks at fill colors, stroke colors, gradient stops, etc.  One of the biggest stumbling blocks (next to PlugIn Items, which I'll ask about in a separate post) is getting the color of raster images.
    Most raster images, I realize, are going to be CMYK or RGB images, but our company mostly deals with either Grayscale images or Black & White Bitmaps that are embedded in the EPS file.  Those two allow the ability to colorize them by simply selecting them and then choosing a color, such as a spot PANTONE color from one of their color books.
    Now, I need the script to read the color that the raster image has been colorized with.  This works okay for images that have a GrayScale color space, as the script just looks at Colorant[0] of that image.  However, I run into a problem with Black & White Bitmap images.  Here's a piece of code that I try to make work with an EPS file that has a raster image:
    var document = app.activeDocument;
    for (var i = 0; i < document.layers[0].pageItems.length; i++) {
              // Stepping through each item on the layer.
              var currentItem = document.layers[0].pageItems[i];
              $.writeln("Current item is " + currentItem.typename);
              $.writeln("Number of channels is " + currentItem.channels);
              $.writeln("Color Space is " + currentItem.imageColorSpace);
              $.writeln("Colorized Grayscale? " + currentItem.colorizedGrayscale);
              $.writeln("Number of Colorants: " + currentItem.colorants.length);
              for (var j = 0; j < currentItem.colorants.length; j++)
                        $.writeln("Colorant number " + j + " is " + currentItem.colorants[j]);
              $.writeln("Its parent is " + currentItem.parent);
              $.writeln("Parent's typename is " + currentItem.parent.typename);
    This code runs successfully on an Illustrator file that has a Black & White Bitmap image on the top layer, but if you try and run it, you'll see the problem:  Even if you've colorized your Bitmap image with a PANTONE spot color (and the script even returns "true" on the line "Colorized Grayscale?"), Colorant number 0 is "Gray".  It should be the spot color assigned, not "Gray".
    Can anyone please help me figure out how to get the script to recognize the actual colorant of a Black & White Bitmap image in Illustrator?

    If you're a professional photographer with 50,000 pictures stored now and more coming all the time, you need to forget about using iPhoto and get yourself some professional-quality digital asset management software. iPhoto is not meant for people like you, and instead of providing a simple, elegant one-stop answer to all your needs, iPhoto is actually complicating your life.
    You need an application that will:
    - catalog ALL your images and keep track of where they are, no matter how many DVDs, folders, partitions or hard drives they're spread over;
    - display thumbnails of ALL of them, even when the DVD that contains them is not present in any drive, so you can select all the ones you want for a project;
    - find and copy (or export) the originals of all the files you've selected in the browser window, even if it means prompting you to insert the necessary DVDs for all of them.
    I suggest Googling "digital asset management software Macintosh" and seeing what turns up. I used to use an old version of Extensis Portfolio, and even that would have been better for your purposes than iPhoto is.

  • How do I handle Style Groups in InDesign Scripting?

    Hi,
    I am relatively new to InDesign scripting.
    I'm trying to map Paragraph Styles to CSS, and it seemed to be working fine, till I came across Style Groups -
    Styles belonging to a group are identified as - Root Style Group name : Child style group name : ...... : Style name
    Because of this paragraph style  <Style name> was not mapping to the TOC style <Root Style Group name : Child style group name : ...... : Style name> and my TOC styles were not correctly mapping.
    I wrote a fix for this in my app, by fetching parent groups and appending to a string - which i check in the TOC style entries.
    Before calling this a FIX, I need to confirm if there are any more hierarchies/represnetations that could be used to represent a Paragraph Style as a TOC style? I don't want to see that a week later I discover something like <Style : Nested paragraph style> as a TOC style and then I'd have to fix my fix!
    Thanks.

    Hi,
    If YourPara is a paragraph style in myDoc and defined inside group of styles named myStGroup
    you can refer to it using:
    myDoc.paragraphStyleGroups.item("myStGroup").paragraphStyles.item("YourPara");
    Jarek

  • Call Photoshop script from Indesign script CS4 JS

    Hi, I open Photoshop linked file from InDesign in Photoshop and I need same InDesign script to run Photoshop script on the file. How I can call the Photoshop script from InDesign script.
    Thank you very much for your help.
    Yulia

    Thank you, Kasyan.
    800 lines of script is little be intimidating.
    What we are trying to achieve is to open jpgs in Photoshop and resave them as tiffs and replace same jpg with corresponding tiff in Indesign as it was placed before.
    Is there a way to call Photoshop from Indesign through appleScript.
    I have most of the script done for Indesign and I have Photoshop shript ready that saves jpgs as tiffs done. I am only missing the part where I can call this existing Ph. script from Indisign.
    We prefer not to use BridgeTalk if possible, because we have a lot of programs open and running in the same time, and would like to avoid to open one more program (BridgeTalk).
    Thank you very much for your great help.
    Yulia

  • JS: Using CS2 Scripts with CS3

    We're getting ready to (finally) upgrade from InDesign CS2 to CS3. We use several scripts (Javascript) regularly. I know quite a bit changed with the object model in CS3. I've seen a couple of threads here where Olav mentions "script versioning" that allows you to reference the old object model, but I haven't been able to find HOW to do that.
    I want to upgrade all of our scripts to the CS3 model, but that will take some time, as I am no expert. Is there a way to use our CS2 scripts just as they are for now (until I'm able to get them all updated)?
    Thanks,
    Lisa

    That script won't see any styles that are in style groups in CS3 -- is that the problem?
    Or it could be that the effect of simply reasserting the style in CS3 is different from CS/CS2. I don't remember.
    Dave

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

  • Combine PDF-files using Indesign?

    Hi,
    Is it possible to combine, lets say 15, PDF-files using Indesign and some scripting magic?
    I know it's easily done in Acrobat Pro, but I'd like to skip that step and make it even easier for my colleagues.
    Any hints, tips or links are much appreciated.
    Thanks,
    Thomas

    All you have to do in Acrobat is drag one file after another onto the same window, correct? Then save?
    You can combine PDF files with InDesign, but then you'd get an InDesign file, so you have to export as a new PDF again. Sure, a script can do that for you, but it still sounds like it would take more time, and *definitely* not as easy as the straightforward drag-drop-save steps in Acrobat Pro.

  • Any easy to way to use custom scripts?

    Is there any plug-in or whatever that gives me a separate window where i can just click to use custom script? Any other easy ways are fine.

    You should be able to use the Actions palette for this. You can record the selection of a Script as an Insert Menu Item step in an Action. But this has been broken almost since the scripting functionality was added, in that the steps which invoke the scripts disappear from your stored Actions after Illustrator is quit and relaunched.
    It would be a hugely useful thing if Adobe ever bothered to fix this. You could automate things that are a combination of operations that can be performed by Actions but not by scripts, and vice-versa. But people have been after Adobe to fix this for something like seven versions now.
    You can organize the Scirpts menu into folders. And you can organize the Actions palette into Sets. It's just idiotic that Illustrator provides no mechanism for easy access to that organization, as does InDesign. Typical half-baked feature implementation.
    But it's a moot point now, anyway. I really no longer care whether Adobe gets around to fixing the many, many things that Illustrator has so long needed, because I'm not going to pay monthly rent for Illustrator, even if they do. ;-)
    JET

  • Can InDesign or an InDesign script solution tell me if I have hidden elements in a document?

    Can InDesign or an InDesign script solution tell me if I have hidden elements in a document? As in the following examples:
    • I import a picture file and some, or all of the file is not viewable in the picture frame, can InDesign alert me of it?
    • I accidentally place a picture so that it is completely covering another picture, can InDesign alert me the an image is being completely covered by another?
    I am using InDesign CS on a Mac running OSX version 10.4.11.
    Thanks,
    Elliott

    Not out of the box. Perhaps with a script. You can ask in the scripting forum.

Maybe you are looking for