[JS] Export jpg from each page with specified number from database

Hello,
I imported a database into InDesign (CS 5 with OS X 10.7.2), so that every product and product number is on a different page in InDesign. Now I need to export each page to a jpg-file. The name of the jpg should be "productnumber.jpg".
I found the script „PDFExportCropper.jsxbin“, which does what I want but creates pdf-files instead of jpgs.Thereafter, I can convert the pdfs to jpgs automatically with Photoshop.
But: The script takes hours and hours to create the pdf-files: Right now, more than 8 hours for only 100 pdf-files. The database has 65.000 products!
Any idea to improve the workflow? Any other script available which I did not find but does what I need?
As a designer, I have no experiences at all in scripting.
Thanks for answering!
Best regards
Rainer
from Germany

I think I fixed it.
In line 20, I have now the following code:
var page = myImage[i].parentPage.name;
Is this the right way, to get the actual page?
Also I would like to know, how can I export the images cropped to their "box"? How do I have to change my script?
Thanks

Similar Messages

  • How can I make a PDF file from each folders with layers, where each page is a each folder?

    How can I make a PDF file from each folders with layers, where each page is a each folder?

    I found an answer to my own question. A work around of sorts.
    Download Photoshop Elements 6 for Macintosh. With PSE6 I made a slide show with 550 images 1920x1200, without thumbs. I ran into one problem making the slide show. My images contained 4 images which had not ben created by Photoshop and could not be included in the slide show. Opening the images in Photoshop CS4 and re-saving them still did not make then acceptable. Not a big deal. I probably could have fixed the four images by stripping all EXIF data before opening them in Photoshop. BTW, PSE6 made the slide show in demo mode.
    I hope the bug in Photoshop CS4 will be fixed in Photoshop CS5.

  • Repeat Group Header On Each Page with Underlay Following Sections

    How to overcome the following problem?
    1. I am using Crystal report 13.0.5.891
    2. I have designed the report with Group Header as [Underlay following section]
    3. I have checked the group to repeat on each page
    4. Number of lines in the group header may vary
    5. Number of lines in details may also vary
    My objective is to print the separator line placed in group footer, after the
    header lines or after the detail lines which one is taking the maximum lines.
    This is not happening, and I am getting the following output, which is not meeting my requirement
    Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
    as the report ends there, but in the output, the line is coming just after the end of detail record.
    like following
    As a result of this, the next record of the group is overlapping with the first record and creating a mesh
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                 Detail Record 1 Line 1
    Group 1 Header Line 2                 Detail Record 1 Line 2
    Group 1 Header Line 3                 ----------------------------------------------------------------------------------
    Group 1 Header Line 4                 Detail Record 2 Line 1
    Group 1 Header Line 5                 Detail Record 2 Line 2
    Group 1 Header Line 6                 Detail Record 2 Line 3
                                                      Detail Record 2 Line 4
                                                      Detail Record 2 Line 5
    ======================LINE IN GROUP FOOTER========================
    PAGE BREAK
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                    Detail Record 3 Line 1
    Group 1 Header Line 2                    Detail Record 3 Line 2
    Group 1 Header Line 3                    Detail Record 3 Line 3
    Group 1 Header Line 4                    Detail Record 3 Line 4
    ======================LINE IN GROUP FOOTER========================
    Group 1 Header Line 5
    Group 1 Header Line 6
    Thanks in advance.

    Thanks for you response.
    I have updated the crystal report to 13.0.13.1597.
    Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
    I am also uploading 2 images of the final pdf that I am getting, for your opinion.
    The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
    Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
    Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
    I have modified the existing code to overcome this exception.

  • Exporting or Printing each page of a Crystal Report to a separate pdf file.

    Is there a way to export or print each page of a Crystal report to a separate pdf file?  If possible, I would look to use the family nunmber field in my report as the file name.  This is not required, but would be helpful.  Thanks

    Hello,
    Standalone CR Designer doesn't have the ability but CR Server or BOE does. Or if you have a .NET or Java you could write an app that would spit out one page at a time.
    Don

  • Reinstalling,APSE11,from,original,CD,with,serial,number,,I,get,the,message,"Key,not,valid, for,use,in,specified,state."

    While reinstalling APSE 11 (windows) from original CD (with serial number), I get the message "Key not valid for use in specified state."  What do I do?

    Unfortunately, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • How to compare input sound (from mic.) with sound on my database

    i want to campare sound (from mic.) with sound on my database
    ex:
    if i say "hello" it show message "hello"
    but if i say other word it will show message "try again"
    forgive for my english
    eak_

    Speech recognition is a whole area in its own right
    Lots of info and other references and the Java Speech APIs can be found here
    http://java.sun.com/products/java-media/speech/index.jsp

  • Export as Separate PDF Pages with Unique Names

    I have an InDesign document that has several pages. I want to export each page as a seperate PDF, but they have to have a unique name that I want to be able to specify.
    For example, I want to export page 1 as "calendar page 2014"
    Page 2 as "Diary page 2014" etc.
    I found some solutions, but they aren't quite what I need:
    Export as Seperate pages with image name
    This apple script takes the name of the first image on the document and uses that as the name.
    However, my document has no images.
    Exportools
    A paid tool that offers many options for exporting. However, the name has to be based on a pattern, which is no good for me.
    I'm hoping that there will be a script that can take the name from a non-printing area/layer. That way, I can just put the desired name on the page and it will export with that name each time.

    have you looked at the extention Autosplit PRO?  This may be what you are looking for.  (Although, I don't think this software is compatable with MAC...but if you find out otherwise, please advise!)
    good luck..

  • How can I export to a web page with movies?

    Hello,
    I just noticed that when I exported a folder of pictures and movies to a web page, only the pictures showed up. Is there a way I can use the export to web page feature and see my movies?
    Thanks!

    Are you using iWeb to create your web page? If so then the only options from within iPhoto for exporting are a photo page or blog page. You need to export only the photos and once in iWeb create a separate movie page and import that movie to that specific page via the Media button at the bottom.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Need script to insert pages with specified master

    Several years ago, someone here (I think Dave, maybe Ole) helped me out by giving me a short script that when run added a blank page (with a specified master page different from the previous page) after each page of a document.
    I've had an emergency reformat of my system and have lost that script which I need constantly for work projects. I tried searching here, but it was before the current forum setup (I think around 2 years ago) and I can't find a way to get to the archives.
    If anyone can either provide me with the java script code for this or point me to the old messages about it, I'd be very appreciative.
    And, BTW, I am now using CS4 (though I'm sure the script I've been using was from an older version).
    Thank you.

    Aaahhh ... PageMaker scripting. Now there was a challenge -- I don't think I ever could write the thing I intended with that.
    This quick javascript works on CS, but I don't think the syntax has changed (much) for CS4. Yell if it doesn't work.
    Be sure to fill in the right 'blank page' name in the first line! That includes the prefix and the hyphen -- the script will alert you if you got it wrong
    //DESCRIPTION: Add Blank Master Page after each page
    masterPageName = "A-AddMe";
    masterPage = app.activeDocument.masterSpreads.item(masterPageName);
    if (masterPage == null)
    alert ('"'+masterPageName+'" is not a valid master...');
    exit(0);
    // Start at the end:
    currentPage = app.activeDocument.pages.length-1;
    while (currentPage >= 0)
    theNewPage = app.activeDocument.pages.add (LocationOptions.AFTER, app.activeDocument.pages[currentPage]);
    theNewPage.appliedMaster = masterPage;
    currentPage--;
    Copy, paste into a plain text editor (InDesign's ESTK is good) and save as "insertBlanksAfterAll.jsx" in your Scripts folder. When saved in the right folder, it will automatically become available in the Scripts Panel.

  • Output each page with a custom file name

    We have 150 photos to place in an Indesign file with Data Merge. Each page has: the photo, the name and surname.
    Is it possible the export these pages as separate files but named with the file name of the photo?
    gert

    Sure it's possible. Try this -- don't forget to adjsut the export path and PDF preset name.
    exportPath = "c:/temp";  // Adjust to fit!
    exportPreset = "My Favourite Preset"; // Adjust to fit!
    for (p=0; p < app.activeDocument.pages.length; p++)
      processPage(app.activeDocument.pages[p]);
    function processPage (a_page)
      var i, link;
      for (i=0; i<a_page.allGraphics.length; i++)
        if (a_page.allGraphics[i].itemLink.isValid)
          linkname = File(a_page.allGraphics[i].itemLink.filePath);
          app.pdfExportPreferences.pageRange = a_page.name;
          app.activeDocument.exportFile (ExportFormat.PDF_TYPE, File(exportPath+'/'+linkname.name.replace(/(\.[^.]+)$/, '.pdf')), false, app.pdfExportPresets.item(exportPreset));
          return;

  • Changing the body image on each page with CSS

    Hi,
    I need to have a different background image for each page of this site (body)
    1) I have one template currently
    2) I have one css file currently (linked)
    I've done a lot of research as to how best to do this including;
    a) Using different body id's for each page
    b) Using another css rule for body (inserted into th file AFTER the main linked ccs file)
    Because I am using templates I can't see an easy way to do this (Header is largely locked) and have little control over position of b) and the same for a) as the body tag is also locked. I have also looked at "specify editable tag attibutes in a template" but couldn't get this to work.
    There is something simple to do here but I cannot see it.
    Any sample / advice would be appreciated.
    Rick

    John and DWILCOX01,
    OK I tried it - it seems to be working ok although I have to test a few things.
    However the one thing I did was remove the body style from the linked CSS file as the linked file is BELOW the new body style...
    Although am I correct in assuming that if the new body style you suggested is added AFTER the linked CSS file then I don't have to worry?
    Thansk,
    R

  • Rendering a JSF page with a choice from CoreSelectOneChoice!

    Hi,
    I have a jsp page with lots of ADF and JSF components. I have a CoreTable component that gets it values from a DB thru Toplink. On this page I have a CoreSelectOneChoice component with a ValueChangedListener. When the user makes a selection from the CoreSelectOneChoice component I want the CoreTable to update its value based on code in the ValueChangeListener.
    My problem is that when the user makes its selection on the CoreSelectOneChoice component my CoreTable dont renders out from the new values I set in the ValueChangedListener.
    So how can I render (re-post) my CoreTable component or my whole page after the code in my ValueChangedListener has run? Or what code should I put in the ValueChangedListener to get the wanted behavior.
    Hope that sombody can help a stuck developer :-)
    Eskild

    Hi,
    set autosubmit = true on the core selet one component and define an ID value. On the table component, set the PatrialTriggers property to the ID value
    Frank

  • Hpw tp call a 'Page with Flow Logic' from within a View

    Within the same BSP, I have the requirment to call a page in the ;Page with Flow Logic' section from a page in the 'View' section.   
    Is this possible and if it is, how do I do it?  I have tried some calls but they all have failed.
    Thanks
    Glenn

    in the view you want to navigate then try
    <bsp: call > or <bsp: goto>  htmlb tags. or else you can use window.open method and open in a new window.

  • How to display column headings only once in each page with repeated blocks

    Hi,
    I have a report with 1 block on one column. The block has a table in it and will repeat in one page.
    I need to display the column headers only in the beginning of each page. Can someone share your experience in implementing this ?
    Thanks for your help.

    >
    andyhchsu wrote:
    > Hi,
    > I mean in each block within section, I only need to display the table header once in each page.
    > However if I check table header, it will display repeatedly. Any way to get around this ? Thx.
    The trick I use to do that is turn off all the headers on the block (table and break) and put the header information in its own block above the section and set the new header block to repeat on each page.  You just have to remember to resize the columns in the header block if you make changes to the column sizes in your data block.

  • Calling a BSP page with flow logic from LAYOUT

    Hello all.  I am developing a BSP transaction to update HR data on SAP.  I initially developed this with one 'page with flow logic' and several 'page fragment's.  It has been suggested that I break this out into several pages with flow logic because the code in  the 'OnInputProcessing' Event Handler was getting quite complicated.  I was using the BSP directive to execute my 'page fragments'.  This was very simple to do.  What do I replace the BSP directive to call a page fragment with in order to call a page with flow logic.  I have included the code below.  I have converted the 'body.htm' 'page fragment' to a 'page with flow logic' and I am not sure of the correct way to call the page.  I do not have access to the navigation->goto_page( 'body.htm' ) at this point.  I am new to BSP and appreciate any help offered.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <htmlb:content id     = "content"
                   design = "design2002+design2003" >
      <htmlb:document disableBackspaceNavigation="TRUE" >
        <htmlb:documentHead title="ESS: Employee Self Service" >
        </htmlb:documentHead>
        <htmlb:documentBody>
          <htmlb:form id="OOEform" >
            <%-- Positioning --%>
            <htmlb:gridLayout columnSize = "2"
                              rowSize    = "2"
                              width      = "100 %" >
              <%-- Row 1 - Header --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "1"
                                    colSpan           = "2"
                                    width             = "100 %"
                                    verticalAlignment = "MIDDLE" >
                <DIV style="border-bottom-style:solid;border-color:#A5B1BF;border-width:20px">
                <%@include file="header.htm" %>
                </DIV>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 1 (Body Area) --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "2"
                                    width             = "80%"
                                    verticalAlignment = "MIDDLE" >
                <%@include file="body.htm" %>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 2 (Right Area) --%>
              <htmlb:gridLayoutCell columnIndex         = "2"
                                    rowIndex            = "2"
                                    width               = "20%"
                                    verticalAlignment   = "TOP"
                                    horizontalAlignment = "LEFT" >
                <%@include file="right.htm" %>
              </htmlb:gridLayoutCell>
            </htmlb:gridLayout>
          </htmlb:form>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

    Hi,
    uhmmm, as it was previously suggested, you should perhaps think about MVC for your development. Working with classes and methods gives you more room for a better looking code. But at this point I´m not sure where your real problem is. You mentioned first that you created one page with logic and several page fragments and then you are worried because the code in the OnInputProcessing event is getting out of control
    First, you cannot insert a page in a page. You can only insert fragments in a page with <%@include file="header.htm" %>.
    Second, if you don´t have idea of MVC or you don´t want to switch to MVC, then create a modules program (SE38) where you´ll enter your code as subroutines and you call these subroutines from OnInputProcessing as follows:
    perform subrout1 in program XXXXXX tables YYYYY using AAAAA.
    In your programm XXXXX you declare the code as:
    form subrout1 in program XXXXXX tables YYYYY using AAAAA.
    This can be a substitute to classes and methods.

Maybe you are looking for

  • DYNPRO_SYNTAX_ERROR runtime error occurs in execution of module program

    Hi...   I have created a module pool program and screen there is no error in that . But at the time of executing thru tcode , it shows runtime error as , Runtime Errors         DYNPRO_SYNTAX_ERROR Date and Time          09.07.2008 13:48:47 Short text

  • Bluetooth could not send files out

    pls kindly advise me how to use the bluetooth in this Nokia 3500C asi can receive file but not sending anything out with it. Thanks

  • Reverting back to Mountain Lion from Mavericks

    Hi, I just upgraded up OS X Mavericks and all of my Adobe software (Photoshop, After Effects and Premiere) open and work fine. When I open Encore CS 5.1, it freezes with the Beach Ball. Is there anything I can do or download to get it to open up? If

  • UWL - Display SAP Inbox Documents in the Universal Worklist

    Hi, I'm working on the implementation of the UWL on EP 6.0. I do not succeed in getting the SAP Inbox documents in the UWL views. Does anybody know how to display these SAP Inbox documents in the UWL? Thanks a lot for your feedback. Gilles.

  • No icon for sending streams to vu+

    I have installed the appendix "Send to vu+" and Frefox has confirmed the installation, but I cannot see any icon anywhere to click upon to send something to my vu+ receiver.