Script to print just the story in InDesign

Does anyone know where could help me with a script that would just print or export to PDF by history of InDesing or failing - to make the individual files on the stories?

I have a client who insists on taking my file pdf and breaking apart [manually] to regroup and to use by various other groups. The stories are data merge files generated from the CSV files and relate to grants. These grants have names, types of industries and regions. I can sort by region as each region has a different master page. And I can generate a table of contents-related that sorts by industry and by the name of grant. But he really wants to make the separate files for each grant and fill in different directories with individual pdf files.

I need to be able to break up of my InDesign file to create a separate pdf file for each grant. Each concession is a story in my paper. Some grants have 2 pages while others have 4 - it would be very difficult to do manually. If I could get the separate files for each grant or print in history, everyone would be happy.

Thank you

Ann

Hi no Ann,.

So each of your donations is a story threaded permanently, and every new help start a new thread? If so, it was an interesting challenge. Here is a Javascript that exports each 'history' as a PDF of its own - it follows the nets but does not produce twice on the same page. (In case you son cross-moved autour story.) I tried to manage some possible pitfalls, such as "you don't have to export stuff master page" and it works on my test file meticulously built... but Please check if you have all your grants, whenever you use . I'd hate to see someone lose his cause of money from a script of mine.

if (app.documents.length > 0)
{
          myFolder = Folder.selectDialog ("Choose a Folder");
          if (myFolder != null)
          {
                    var counter = 1;

                    storylist = app.activeDocument.stories;
          //          alert (storylist.length+" stories to go");
                    for (s=0; s 
         

Tags: InDesign

Similar Questions

  • How can I print just the screen that I'm looking?

    • How can I print just the screen that I'm looking? CTRL + P doesn't (I have WIndows Vista)

    auntjilly wrote:

    * How can I print just the screen watching you? CTRL + P doesn't (I have WIndows Vista)

    Two ways:

    (1) by design, as it has always been with all versions of Windows, press copy the entire screen, including the wallpaper desktop, in the Clipboard (iow, in RAM).  By pressing + of only copies the active window to the Clipboard.  To view the screenshot, open a graphics program, such as MS Paint and press + V.  This will paste the contents of the Clipboard (your screenshot) in the file open and allows you to view or save it as a file for later use.

    How to capture screenshots in Windows by using the print screen key
    http://support.Microsoft.com/default.aspx?scid=kb; us; 173884

    (2) as long as you have a newer version of Vista as the Home Basic edition, you can use the Snipping Tool.  (Start > all programs > Accessories).

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • How can I print just the file names listed in a window of Windows 7?

    How can I print just the file names listed in a window of Windows 7?

    I found the info in this post...
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/for-Windows-7-can-i-print-a-listing-of-what-is-in/b233cbeb-647d-4E32-ae1f-8523d62b2dc9

    Here, a link takes me to an article at this link...
    http://support.Microsoft.com/kb/321379

    This article explains then that I need to download and run blindly 'Fix - It' application to obtain the simple ability to print a directory window... but it does not say what I'd do once downloaded the general application of "Fix - It" to get this option which should be part of the Windows 7 basic features first.

    Or, the article told me that I can "modify the registry" (?) in order to get the print option window... but I know that by having a character moved when editing the registry, it can bring down the entire computer and make it completely unusable.

    Those are really the only options to print all simply a window?... in addition to several screenshots and melted together in Photoshop and then print this image?

    Why not just give Windows 7 a 'PRINT' button under 'FILE' as other operating systems have always done... has always done Windows default this feature?

    This seems just crazy... This misunderstanding?

    Thank you

    NuMetro

    I tried to copy and paste the name of the window... This time I tried while holding down the SHIFT key and it sticks anything in Notepad.

    This is not what I've proposed.

    • Select the files whose names you want to print. CTRL + A selects all.
    • Hold the SHIFT key, then right click on a file and select copy in the path from the context menu. This will put a list of filenames (path) to the Windows Clipboard.
    • Click inside a document, and the stick.

    Have another go.

    Noel

  • Fill out a form to print just the menu and not the form?

    I have are a number of forms and I just want to print the Scriptures not on the form, the form will be in the printer to accept my data can I do this?

    Patrick O

    Acrobat has a print border to print only the form fields.

    Player would require some work in Acrobat to make it work.

  • Is there a way to avoid printing the body of the email and print just the attachments?

    I want to set the printer to only print attachments instead of print also the body of the email.

    Hi MJuds,

    The answer to your question is unfortunately not.  ePrint by default displays the content of the body of the email, and then it tries to open and print all attachments supported, as appropriate.

  • PRINTER WILL NOT PRINT, JUST THE TAIL DOCUMENTS?

    LEXMARK 1200 SERIES ALL IN ONE PRINTER, NOT PRINTING NOT JUST OF THE DOCUMENTS OF QUEUES TO THE TOP. NOT SUSPENDED?

    Try to stop and start the spooler service.

    Click on the round of Windows (start), type or copy / paste cmd /k net stop spooler & net start spooler (note the 8 places) and press ENTER. Close the cmd prompt window and try to print a document.

  • Print to the shared printer on the Windows network problem.

    Hi all

    I apologies if someone read this the Forum of Acrobat Pro, but I was told I can get help on this forum. I have a problem that I'm beating my head up against. In my company, we have certain pdf documents that have been created using LiveCycle for our movement from the Green go 'paperless', but we hit a snag. We have some 'virtual' in use printers with our management software document who work as printers in normal network, but instead of capturing an image of the printed document and run OCR on our documents for the record-keeping. Each pdf document has its own virtual printer to recognize appropriate to use OCR models. To this end, we have many virutal sweepers for many of our documents. We love our LiveCycle documents but, when you try to use javascript to print on a particular network printer we found our complication. We do not map the printers using windows or to train our employees on their profile network printers adding as there is so much, and each document is assigned to a virtual OCR printer, we want the document has a built-in button that automatically prints which assigned virtual printer.

    If I open a document and edit it with Acrobat 9 Pro, I can simply place a button field and add this java code:

    var pp = this.getPrintParams ();

    pp.interactive = pp.constants.interactionLevel.Automatic;

    pp.printerName="\\\TOSHIBABILLING2\\pcl6 ';

    This.Print (pp);

    and the system prints on the printer network perfectly. However, if I use this same javascript in LiveCycle we get nothing. Further reading I found some details that I can't use this same script to print to the printer network using LiveCycle and am so at a loss.

    I tried to open the form in Acrobat 9 Pro to modify and just add the button using Acrobat Pro, but every time I change the document, it opens LiveCycle Designer.

    I don't know which forum to use as this problem has been found between the work with both programs. Can someone help me change the code for LiveCycle, or at least to find a way to open the document in Acrobat 9 Pro for just add the "print" key to the shape of LiveCycle. Any help would be greatly appreciated.

    ~ Max

    Thirsty just translated us your script that uses the Acroform model to use the xfa template, it should work... right?

    Your code in an xfa form would look like this:

    var oDoc = event.target;

    var pp = oDoc.getPrintParams ();

    pp.interactive = pp.constants.interactionLevel.Automatic;

    pp.printerName="\\\TOSHIBABILLING2\\pcl6 ';

    oDoc.print (pp);

    Try and let us know if it worked.

    Paul

  • Illustrator script will not print on the correct printer.

    I call an Illustrator using BridgeTalk script within a script InDesign, but I doubt it would make a difference.  Here's the question: we have four printers on the network that are named 'Printer 1', ' printer 2 "," printer 3 ", and"printer 4"on each Mac on the network." "  I want to print a document to a specific printer, based on the computer that is used to run the script.  Pretty simple idea and I have illustrated it in my script in progress below:

    function illustratorDie(artFile, dieFolder, companyName, orderNum, shipDate, dieInks)
    { 
              // Before anything else, find out to which printer we'll be sending our document.
              var machine = $.getenv("USER");
              $.writeln("(IL) Environment variable 'USER' is " + machine);
              var localPrinter;
              var shipPrinter;
              switch (machine)
              {
                        case "aerostar":
                                  $.writeln("Machine is aerostar.");
                                  localPrinter = "Printer 4";
                                  shipPrinter = "Shipping";
                                  break;
                        case "apache":
                                  $.writeln("Machine is apache.");
                                  localPrinter = "Printer 3";
                                  shipPrinter = "Shipping";
                                  break;
                        case "navajo":
                                  $.writeln("Machine is navajo.");
                                  localPrinter = "Printer 3";
                                  shipPrinter = "Shipping";
                                  break;
                        case "seneca":
                                  $.writeln("Machine is seneca.");
                                  localPrinter = "Printer 2";
                                  shipPrinter = "Shipping";
                                  break;
                        case "warrior":
                                  $.writeln("Machine is warrior.");
                                  localPrinter = "Printer 2";
                                  shipPrinter = "Shipping";
                                  break;
                        case "tomahawk":
                                  $.writeln("Machine is tomahawk.");
                                  localPrinter = "Printer 1";
                                  shipPrinter = "Shipping";
                                  break;
                        case "Marketing":
                                  $.writeln("Machine is Marketing.");
                                  localPrinter = "Printer 1";
                                  shipPrinter = "Shipping";
                                  break;
                        default:
                                  $.writeln("Machine has defaulted.");
                                  localPrinter = "Printer 3";
                                  shipPrinter = "Shipping";
              }
              $.writeln("(IL) Thus, the local printer is " + localPrinter);
    
    
              // First, create a new document for the die.
              var dieDoc = app.documents.add();
    
    
              // Then open the document that contains the artwork.
              var artDoc = app.open(artFile);
    
    
              // Group the art from the document with the artwork,
              // just in case it hasn't already been grouped.
              artDoc.layers[1].locked = true;
              artDoc.selectObjectsOnActiveArtboard();
              var sel = artDoc.selection;
              var newGroup = artDoc.groupItems.add();
              newGroup.name = "ArtGroup";
              newGroup.move(artDoc, ElementPlacement.PLACEATEND);
              for (var i = 0; i < sel.length; i++)
              {
                        sel[i].moveToEnd(newGroup);
              }
    
    
              // And copy the artwork from the art document to this new die document.
              var copiedArt = newGroup.duplicate(dieDoc.layers[0],ElementPlacement.PLACEATEND);
    
    
              // Now we can close the art document as it will no longer be needed.
              artDoc.close(SaveOptions.DONOTSAVECHANGES);
    
    
              // Back to our die document, let's fix up the art now.
              // We do so by first centering it on the page.
              copiedArt.left = ((dieDoc.width - copiedArt.width) / 2);
              copiedArt.top = (dieDoc.height + copiedArt.height) / 2;
    
    
              // Then we change all paths to black & white.
              // For this, we will assume that there are no gradients nor raster art.
              var pathsToRemove = new Array;
              var blackColor = new CMYKColor();
              blackColor.cyan = 0;
              blackColor.magenta = 0;
              blackColor.yellow = 0;
              blackColor.black = 100;
    
    
              convertBW(copiedArt);
    
    
              $.writeln("Removable paths: " + pathsToRemove.length);
              for (var v = 0; v < pathsToRemove.length; v++)
              {
                        pathsToRemove[v].remove();
              }
    
    
              // Now specify the contents of that text block.
              var newLine = String.fromCharCode(13);
              var textContents = companyName + newLine;
              textContents += orderNum + newLine;
              textContents += shipDate + newLine;
              textContents += newLine;
              textContents += "W: " + Math.round((copiedArt.width / 72) * 100) / 100 + newLine;
              textContents += "H: " + Math.round((copiedArt.height / 72) * 100) / 100;
    
    
              // And finally actually place the text block while formatting it.
              var textDesc = dieDoc.textFrames.add();
              textDesc.position = [36, dieDoc.height - 50];
              textDesc.contents = textContents;
              textDesc.textRange.characterAttributes.size = 36;
    
    
              // Let's set print options for the two printers.
              var localPrintOptions = new PrintOptions();
              localPrintOptions.printerName = localPrinter;
              var shipPrintOptions = new PrintOptions();
              shipPrintOptions.printerName = shipPrinter;
    
    
              var myJobOptions = new PrintJobOptions();
              myJobOptions.copies = 1;
              shipPrintOptions.jobOptions = localPrintOptions.jobOptions = myJobOptions;
    
    
              $.writeln("Printing to " + localPrintOptions.printerName);
    
    
              // Now we need to print this text block to the local printer as well as the Shipping printer.
              $.sleep(2000);
              dieDoc.print(localPrintOptions);
              $.sleep(2000);
              dieDoc.print(shipPrintOptions);
    
    
              // Before saving the file to an .EPS, we need to hide (or delete) the text block.
              textDesc.remove();
    
    
              // Lastly, we need to save this document as an .EPS file in the proper location.
              // Set the SaveOptions first, just like the PrintOptions earlier.
              var dieOptions = new EPSSaveOptions
              {
                        compatibility = Compatibility.ILLUSTRATOR16;
                        preview = EPSPreview.TRANSPARENTCOLORTIFF;
                        embedAllFonts = true;
                        cmykPostScript = true;
                        postScript = EPSPostScriptLevelEnum.LEVEL2;
              }
    
    
              // And then actually save the document.
              var savedFile = unescape(dieFolder.toString()) + "/" + artFile.name.slice(0,-4) + "_Die.eps";
              $.writeln("Inside Illustrator script, savedFile is " + savedFile);
              dieDoc.saveAs(File(savedFile), dieOptions);
    
    
              // Finally, close the document.
              dieDoc.close();
              return savedFile;
    
    
              // END OF MAIN.
    
            function blackIt (currentItem)
            {
              ...
             }
    }
    

    I at first thought that the script was running too fast, so I added the two "$.sleep (2000)" orders near the end to see if it would help - it didn't.

    The bits of important, after defining the variables localPrinter and shipPrinter, come after the line / / Let's define the printing options for both printers.

    Instead of print to the local printer, sometimes it will print to the other.  For example, I am the machine called "apache".  The script must localPrinter on "Printer 3".  And, according to the statement of $. writeln() , he does.  However, despite this setting, almost always displays "Printer 2"!  From time to time he actually does it print "Printer 3".

    This happens on other systems, too.  It almost seems as if it prints to a printer that is numerically the one less than that to which it is supposed to print.  "aerostar" prints often to "3", "warrior" often it prints for "printer 1", and then the 'marketing' impressions, we do not yet all printers output a page!

    What is the cause to happen and, more importantly, what can I do about it?  Help, please!

    Of course, I get another set of printers listed.  Nevertheless, I found a solution for this.  Since it seems that the printerName of PrintOptions property is buggy, I decided to try the printPreset property instead.  I created of the presets on each computer, one for each printer and the accordingly modified script.  Works like a charm now.  Now the switch statement:

    switch (machine)
    {
              case "aerostar":
                        $.writeln("Machine is aerostar.");
                        localPrinter = "Printer 4";
                        localPrintPreset = "Color Proof Printer 4";
                        shipPrinter = "Shipping";
                        break;
              case "apache":
                        $.writeln("Machine is apache.");
                        localPrinter = "Printer 3";
                        localPrintPreset = "Color Proof Printer 3";
                        shipPrinter = "Shipping";
                        break;
              case "navajo":
                        $.writeln("Machine is navajo.");
                        localPrinter = "Printer 3";
                        localPrintPreset = "Color Proof Printer 3";
                        shipPrinter = "Shipping";
                        break;
              case "seneca":
                        $.writeln("Machine is seneca.");
                        localPrinter = "Printer 2";
                        localPrintPreset = "Color Proof Printer 2";
                        shipPrinter = "Shipping";
                        break;
              case "warrior":
                        $.writeln("Machine is warrior.");
                        localPrinter = "Printer 2";
                        localPrintPreset = "Color Proof Printer 2";
                        shipPrinter = "Shipping";
                        break;
              case "tomahawk":
                        $.writeln("Machine is tomahawk.");
                        localPrinter = "Printer 1";
                        localPrintPreset = "Color Proof Printer 1";
                        shipPrinter = "Shipping";
                        break;
              case "Marketing":
                        $.writeln("Machine is Marketing.");
                        localPrinter = "Printer 1";
                        localPrintPreset = "Color Proof Printer 1";
                        shipPrinter = "Shipping";
                        break;
              default:
                        $.writeln("Machine has defaulted.");
                        localPrinter = "Printer 3";
                        localPrintPreset = "Color Proof Printer 3";
                        shipPrinter = "Shipping";
    }
    

    and the transfer block that accompanies it, which uses the new variable:

    // Let's set print options for the two printers.
    var localPrintOptions = new PrintOptions();
    localPrintOptions.printPreset = localPrintPreset;
    var shipPrintOptions = new PrintOptions();
    shipPrintOptions.printerName = shipPrinter;
    

    I hope this will help someone else who is faced with this problem!

  • Development of InDesign documents for print and the web

    I develop InDesign documents for offset printing, but the Organization now wants to slip into the 21st century by also erect these same documents on the web (as interactive web pages that respond to user input). I'm looking for the outline of the best way to combat this, just so I don't waste too much time trying to learn the technology wrong or the fake software.

    I started to score my documents with XML, so I think the course on the web is from InDesign to XML format, then via XSLT or CSS in XHTML. What is the best or only way to do? I guess that DreamWeaver will also feature in the equation at some point.

    These documents are examination questions. They are pretty simple. All paras have paragraph styles, but there will be some substitutions of the police as bold, italic, underlined, clue, exposing. Without doubt, these must all XML tag, possibly using character styles? There are a lot of graphics inserted (files have and psd) which need to be converted to png, I guess. I have also attached metadata via XML attributes and I want that metadata to get to the web page and direct aid, action based on user input (like what answer they give to a question).

    As I have always worked on the print documents, I don't know XSLT, CSS, XHTML or HTML even if I just want to start on the right foot.

    Any suggestions welcome, including perhaps good tutorials or other resources. And of course, I want to automate this process as much as possible by using scripts.

    Thank you

    Brian

    For what it's worth, I would use the following XSLT to perform this task:

    http://www.w3.org/1999/XSL/transform">

    To test it in a browser, make sure that change you the file extension exported from "xml" to "html".

    In addition, make sure that your original InDesign document has the correct structure:

    Jeremy

  • [Req] script to update the links in Indesign using spotlight

    Hello

    I have a challenge, can someone help me please?

    I'm a graphic designer from Holland and I work with a lot of Indesign documents

    which links are missing because they are displaced, so that they are some share on our server.

    I have several scripts to connect the missing links, but they are slow,

    because they each directory and in each subdirectory. It takes some time.

    The apple search engine, Spot, is much faster.

    So I think that I have this great idea, I thought about the following:

    I select a missing link in the linkpanel in Indesign.

    Then I run the script.

    The path of the missing link is copied and ready to just the name of the file

    The name of the file is then copied to the Clipboard.

    The script then opens the dialog window to repeat the missing link.

    It the name of the image is pasted into the spotlight search engine.

    Here, the script stops.

    Click the correct file (if there is more choises) and recreate it a link is done.

    I think that this way of restoring links can be much faster.

    And you can also work with predefined smart windows (to limit results), for example:

    -a witch only shows jpg

    -a witch only shows tiff

    -a witch only shows pdf

    I know a very small little scripting, but this one I can't understand yet.

    Can someone give me help please?

    Best regards, Eric

    PS. I'm still working in CS4

    Although you have a solution and sorry for quitting yout ID should have tested more then once, it was a pretty old script and I just copy and paste...

    just rewritten my old script a little to run on ID CS OSX 10.7.4 5.5

    Should pass on missing links in the Active Document, use mdfind to search for files with simular names as name of missing link in the given directory, reveals possibly the file in the finder and shows / selects currMissingLink in ID-file. If 'ok' rebuild the missing link (without leaving ID ;-) I hope).

    global myFolder
    
    set tid to AppleScript's text item delimiters
    
    tell application "Adobe InDesign CS5.5"
        set currDoc to active document
        set theMissingLinks to every link of currDoc whose status is link missing
        if theMissingLinks is not {} then set myFolder to choose folder with prompt "Where to search for the missing links?" --select a mounted volume, folder ...
    
        repeat with missingLink from 1 to count of theMissingLinks
            set currMissingLink to item missingLink of theMissingLinks
            set currFileName to name of currMissingLink
            set theResultList to my mdFind(currFileName)
    
            if theResultList is not {} then
                repeat with i from 1 to count of theResultList
                    set theItem to (item i of theResultList)
    
                    set currDialog to display dialog theItem with title "Relink this file?" buttons {"OK", "Cancel", "Show in Finder first"}
                    if button returned of currDialog is "OK" then
                        try
                            relink currMissingLink to POSIX file theItem
                        on error e
                            display dialog e
                        end try
                    else if button returned of currDialog is "Show in Finder first" then
    show  currMissingLink --select the missing link in ID
                        my revealInFinder(theItem) --show the found file in finder
                        activate
                        set currDialog to display dialog theItem with title "Please switch to Finder to see the file. Relink the file shown in Finderwindow?" buttons {"OK", "Cancel", "Continue searching"}
                        if button returned of currDialog is "OK" then
                            try
                                relink currMissingLink to POSIX file theItem
                            on error e
                                display dialog e
                            end try
                        end if
                    end if
                end repeat
            end if
        end repeat
    
    end tell
    
    on mdFind(currFileName)
        set AppleScript's text item delimiters to return
        set PathToAllFiles to every text item of (do shell script "mdfind -onlyin '" & quoted form of POSIX path of myFolder & "'" & space & " -name '" & currFileName & "'")
    
        set PathToAllFiles to my cleanList(currFileName, PathToAllFiles)
    end mdFind
    
    set AppleScript's text item delimiters to tid
    
    on cleanList(fileName, listOfFilePaths)
        set myCleanList to {}
        set AppleScript's text item delimiters to "/"
        repeat with p from 1 to count of listOfFilePaths
            set aName to (text item -1 of (item p of listOfFilePaths))
            if aName is equal to fileName then set end of myCleanList to (item p of listOfFilePaths)
        end repeat
        return myCleanList
    end cleanList
    
    on revealInFinder(somePosixPath)
        tell application "Finder"
            set myAlias to (POSIX file somePosixPath) as alias
            activate
            reveal myAlias
        end tell
    end revealInFinder
    

    Hope it will work

    Hans-Gerd Classen

  • The value of PDF file printed via the script name

    Hi people!

    I have a little problem with the generation of a PDF file. First my Workflow:

    I have an InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After it is merged, we need to generate a PDF file. This PDF file is opened in acrobat. In the document, I am looking for one ID for each record so I can split the document to 100 files (each with 6 pages) and name by the ID that I found.

    The Acrobat script is finished and functional. I thought: the InDesign script is over, too. But I was wrong-. -.

    I merged the databasefile with the document and it has exported to PDF. But after export, we noticed that the Acrobat script isn't finding the adressheader where ID is in. The script only noticed the text after this header. The result is, as get-Acrobat always 'null' as ID

    If print us the PDF with our PDFprinter, the header could be read by our script of Acrobat. I don't know why this is... But now, I changed the script to print the files through our PDF printer. Unfortunately I can not set a name for my exported file - do you know if it is possible to print PDF files without asking for confirmation after each other as well as with a via script name?

    Here you can see the old writing for InDesign and after her, the sript Acrobat. Maybe I made a mistake by generating my PDFexport and have no need to use the printer?

    INDESIGN SCRIPT:

    /**
    * invite filebrowser and stores the name and path of the file in variable
    */
    var sourceDocument = File.openDialog ("Bitte Indesign-Dokument Park", "*.indd", false);

    /**
    * stores the only prefix of file name to use as the new file name
    */
    newName var = sourceDocument.name.substr (0, sourceDocument.name.length - 5);

    /**
    stores in folder where the file is stored
    */
    var dbSourceFolder = sourceDocument.parent + "/"; "

    /**
    * guests for databasefile, where production is expected to begin
    */
    var dbstartfile = File.openDialog ("Start-Datenbankdatei of Bitte Park", "*.txt", false);

    /**
    * Gets databasefile basename
    */
    var dbstartfilename = dbstartfile.name.slice (0, dbstartfile.name.search(/_Teil+/));

    /**
    * Gets number of first databasefile
    */
    var i = dbstartfile.name.slice (dbstartfile.name.search(/_Teil+/) + 5) .slice (0, -4);

    /**
    * generates the path and name of the first databasefile to use
    */
    var dbSource = dbstartfile;

    /**
    * set PDF preset to generate PDFS
    */
    var PDFPreset = app.pdfExportPresets.item ("GAG - PDF");

    /**
    * stop throwing alerts
    */
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    message will be thrown if databasefile is not existing
    If (dbSource.exists == false) {}
    reboot to launch alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    Alert ("File" + dbSourceFolder + dbprefix + "_Teil" + i + ".txt konnte nicht werden found! \n\rBitte starten Sie den procedure Rubis und Sie die right Datenbankdatei one enter.");
    }
    another process begins
    else {}
    even if (dbSource.exists == true) {}
    Opens the document indesign source without displaying
    mergeDocument = app.open (File (sourceDocument), false);
    defines what databasefile should be used for data merging
    mergeDocument.dataMergeProperties.selectDataSource (File (dbSource));
    starts the file database and the indesign document merging
    mergeDocument.dataMergeProperties.mergeRecords ();
    document generated in PDF export
    app.activeDocument.exportFile (ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
    farm open indesign document
    mergeDocument.close (SaveOptions.no);
    i ++ ;

    change the name of the database file to get the next file
    dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    }
    }
    reboot to launch alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    Alert ("PDF-Generierung sky!");

    SCRIPT ACROBAT:


    /**
    * Path where files should be saved
    * Special characters like spaces must be preceded of--------.
    * If you want to change the folder, use the following form:
    * ' / DriveLetter/foldername /... /LastFolderName/.
    * Be careful not to forget the / before and after the location
    */
    filepath var = "/ c/pdf_split_test / ';

    /**
    * Number of display pages - do not hesitate to change
    */

    pageType = app.prompt var ("Please die Seitenzahl der presentations one gewunschte.", "");
    Alert (PAGETYPE);

    /**
    to search for regular expression
    */

    var idNumber = / 08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;

    /**
    * If possible this function gets the number sought as string
    *
    @param string of revenge that is to be found in the document
    * @return null if rematch is not found or a string if the rematch is
    */

    function ExtractFromDocument (reMatch) {}
    try {}
    var Out = new Object();
    for (var i = 0; i < 1; i ++)
    {
    numWords = this.getPageNumWords (i);
    var PageText = ' ';
    for (var j = 0; j < 30; j ++) {}
    var Word = this.getPageNthWord (i, j, false);
    PageText += Word;
    }
    var strMatches = PageText.match (reMatch);
    If (strMatches == null) continue;
    }
    Return strMatches;
    } catch (e)
    {
    App.Alert ("processing error:" + e)
    }
    }

    /**
    * tries to load given filename (excerpt number)
    *
    @param string file name of the file that should be checked
    @param n number of iterate when checking files
    * @return true if the file exists or false otherwise
    */

    function checkIfFileExists (filename, n) {}
    var existingDoc = false;
    try {}
    If (n == 0) {}
    var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
    } else {}
    var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
    }
    checkDoc.closeDoc ();
    existingDoc = true;
    } catch (e) {}
    }
    If (existingDoc == true) {}
    n = n + 1;
    n = checkIfFileExists (filename, n);
    }
    return n;
    }

    var pageAmount = this.numPages;
    for (i = 0; I < pageAmount; i + pageType) {}
    var filename = ExtractFromDocument (idNumber);
    fileExistence = checkIfFileExists (filename, 0);
    If (fileExistence! = 0) {}

    this.extractPages ({nEnd:(pageType-1), cPath: filepath + filename + "-000_" + fileExistence + ".pdf"});
    } else {}
    this.extractPages ({nEnd:(pageType-1), cPath: filepath + filename + ""-000.pdf ""});
    }
    this.deletePages ({nStart:0, nEnd: pageType-1});
    }

    Hello

    I have a little problem with the generation of a PDF file. First my Workflow:

    I have an InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After it is merged, we need to generate a PDF file. This PDF file is opened in acrobat. In the document, I am looking for one ID for each record so I can split the document to 100 files (each with 6 pages) and name by the ID that I found.

    Why you are not exporting 6 pages PDF directly from InDesign?

    Robin

    www.adobescripts.co.UK

  • Whenever I have print to the shared printer on my desktop Windows 7, the print job will just sit in the print queue.

    Whenever I have print to the shared printer on my desktop Windows 7, the print job will just sit in the print queue.  If I stop and then start the print spooler, the job will print.  It happens from an XP laptop. Print jobs sent from the computer Windows 7 local print just fine.

    How can I solve this one?  :(


    This problem with some windows running portable computer particular Xp and windows 7 family

    Hello

    Thanks for posting your question in the Microsoft community forum!

    I understand that you can not print over the network. I will try to help you with this question.

    (1) did you make any changes before the show?

    (2) you receive an error message/code?

    I wish that return you these items for you help in detail.

    Method 1: Open printer troubleshooting.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2: Install a printer

    http://Windows.Microsoft.com/en-us/Windows7/install-a-printer

    Method 3: Install a printer on a home network

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-a-printer-on-a-home-network

    Also applies to Windows 7

    Method 4: Troubleshoot network printer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-printer-problems

    Also applies to Windows 7

    Method 5: File and printer sharing: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/file-and-printer-sharing-frequently-asked-questions

    Please post back if you have any questions about Windows. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • How can I print a copy of the files in a folder - not each file - just the list

    original title: list of print files

    How can I print a copy of the files in a folder - not each file - just the list? List of cases of printing

    How can I print a copy of the files in a folder - not each file - just the list?

    Karen's directory printer (free)

  • When I print from the internet, the font is so small, I can hardly read it, it's just begun

    When I print anything the Internet police is so small that I can hardly read, it just started that past how can I fix.

    Hi KathyHodges,
     
    -What happens when you try to view documents in preview option before printing?
     
     
    In the Printing Preferences dialog box, you set the options that affect the way documents are printed. The available options vary from printer to printer, but for most printers, they allow options that are mentioned in the following article:
     
     
    Additional reference on:
  • HP Deskjet 1000 printer - just changed the black cartridge for the first time and now it will only print first half of the page. Can anyone help

    HP Deskjet 1000 printer - just changed the black cartridge for the first time and now it will only print first half of the page.  Can anyone help

    Hello Gloria,.

    I ask you to execute methods in the following link and check if the problem is resolved.

    Solve printer problems

    You can also contact the manufacturer to find out how to clean the print head.

    http://h10025.www1.HP.com/ewfrf/wc/siteHome?cc=us&LC=en

    Please get back to us with the State of the question.

Maybe you are looking for