InDesign export to single PDF files with variable Filename

Hi there,<br /><br />I create a document with Data Merge which contains about 200 Pages. Now i want to export each page to a single PDF-File. Also the filename has to be generated from the placed content. The placed content are adresses. So i want to generate a filename with a static name. I got an ID, a static phrase and then a ZIP-Code. The Filename should look like this: <ID>September<ZIP Code>.pdf while ID and ZIP Code are fields from the datamerge.

what you need is to operate throuh a loop.<br />for(i=0; i<app.activeDocument.pages.length;i++)<br />{<br /> //Assuming you labelled the textframe containing the ID with ID<br /> var myID = app.activeDocument.pages[i].textFrames.item("ID").contents;<br />//Assuming you labelled the textframe containing the ZIP with ZIP<br /> var myZip = app.activeDocument.pages[i].textFrames.item("ZIP").contents;<br /><br />var myPath = //something like "/disk/folder/" //Set a path to where you want to export the pdf<br />var myFileName = myID + myPath + myZip + ".pdf";<br />//Export to PDF - the forum is full of examples, you should find easily what you are asking for with search<br />} <br /><br />Loic

Similar Messages

  • How do I create an interactive PDF file with variable data

    We would like to basically do a 'mail merge' of our list of customers with an interactive PDF file (including videos, menus, etc - not just form fill out and web links) to create a single PDF file that contains multiple mail pieces ... one for each customer ... with each mail piece being customized for that customer.  Customizations would include different greetings (Dear Bob, Dear Dana, etc), as well as different charts based on data unique to the customer, different photographs, etc.
    I've seen that InDesign and Acrobat Professional can be used to create an interactive PDF (such as from http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  However I don't understand how I can insert data from a database, csv file, excel file etc into the PDF file so that each page, or each set of pages, within the PDF can be customized.
    Can anyone point me to a tool to use for this?
    Thanks,
    Bob Kendall

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • How do I create a single PDF file with multiple pages?

    Hi, I occasionally need merge several jpg images into a single pdf file with multiple pages (one Jpg per page). I have tried doing this on Preview, and by selecting all the pages I want to include in my document and trying to save to Pdf through the "Print" function, but every time it only saves the first page.
    Can anyone tell me if there is a way to save multple-page pdf files without having to purchase a specific program (i to this too infrequently to justify the cost)?
    Thanks very much,

    This works for me...
    Open first image in Preview View > Sidebar. Drag the other images into Sidebar, then select all.
    From File menu > print selected images. Choose PDF > Save as PDF
    -mj

  • In Design Data merge into separate pdf files with variable data name

    Hi all, thank you for taking the time to read this.
    Here's what I have.
    I've created a file in indesign using a 65 page document.
    With this document I've set it up to have specific data in certain areas with data merge.  I have that part setup and it works fine. 
    When I go to export PDF it creates one massive pdf document with all the variable data in it.  However here is the scenario I would like.
    1. Indesign to create a separate pdf file for each record.  So in this example it would be 100 different 65 page pdfs since it should have different pdfs for each record and there are 100 records in the csv.
    2. The pdf should be named after each variable record.  For example record one says name "Joe", record 2 name "Frank".  So it should create joe.pdf, frank.pdf etc.
    How can I accomplish this?

    I don't know if this script works in CS4 or not:
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php

  • How to make a single PDF file with pages for each Invoice (XML/XPD)

    I appologize, this is my first time doing this so try not to assume too much when responding.
    I have designed an invoice form in LiveCycle Designer and have it properly connected to an XPD feed that is dynamically created with PHP. When the user opens the URL, the invoice they selected shows up perfectly in the PDF. Yeah!!!
    Now the problem, they want to have multiple invoices show up in the PDF as their own "pages" in a single PDF document. Page 1 = Invoice 1001, Page 2 = Invoice 1002...etc.
    The XML scheme is something like the following. A single header with a variable number of detail lines.
    form1
    header
    invoice_id
    invoice_date
    etc...
    /header
    details
    detail
    item_descr
    item_qty
    item_price
    detail
    detail
    item_descr
    item_qty
    item_price
    detail
    detail
    item_descr
    item_qty
    item_price
    detail
    /details
    /form1
    Now I figure this is a simple matter of replicating the invoice XML in the XPD that is generated, but no matter which way I do it, I only get a single page.
    Is there something I need to do in the form in LiveCycle that tells it to produce multiple pages if I give it multiple "records"?
    Does that make sense?
    BTW...I'm not using a FormServer or anything else. Just simple XPD dynamically created with PHP that points to a PDF created with LiveCycle.
    Any help would be very much appreciated. Again...assume I'm a newbie...

    Hi All,
    What I thought to develop is to write a JDBC connection in the Stan-alone PDF template and access database.
    example: PDF is designed in such a way that it should have "USERNAME" , "PASSWORD" , "LOGIN BUTTON" , so that PDF stand-alone template on every desktop should access the database on entering the correct credentials.
    is it possible..?
    if possible , please provite the solution..?

  • Send Invoice as PDF Attachment with variable Filename

    Hello!
    We got a requirement from one customer. We should send our invoices as PDF-Attachment via E-Mail but the attachment must have a variable filename. At the Moment we can send invoice as PDF-Attachment but only with a fix filename.
    How can we change the filename in our Adobe Forms?
    Best Regards
    Markus

    Hi Florian!
    Answer 1:
        The original Name is Druckdaten.pdf
    Answer 2:
         Our entry in NAST-NACHA = 1
    Answer 3:
         I can implement some ABAP-Code
    Here some Screenshots:
    Configuration  of printer E-MAIL:
    Best regards
    Markus

  • Can't combine InDesign files to single PDF file

    I'm using Windows XP, Acrobat 8 Professional, InDesign (CS3). Here is the problem: When trying to combine three InDesign files into one single PDF file with Acrobat 8, I get an error message saying something about expecting PDF default presents but get 'Standard'. I've gone into the InDesign files and set the presets to another setting but still get the same message. Quite confused as to how to fix this. Does anyone know, or is there another way of creating a single PDF of three separate Indesign files??

    Try exporting the files from within InDesign as PDF and them combine them in Acrobat.

  • Interactive PDF file with layer visibility issue.

    I have created an interactive PDF file in InDesign CC and added buttons in Acrobat CC. The buttons reveal layers with the layer visibility action under properties. The problem is that Reader takes 3-4 seconds to show the layer in full screen mode and flickers in any other view.

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • Possible to create medium res .pdf file with InDesign CS5?

    Hello,
    Can anyone tell me if there is a way to create a medium res .pdf file with InDesign CS5?
    I'm working with a client and have been sending him both high res and low res files of a catalog project. High res .pdf is 12.8MB and low res is 1.2MB. He is asking whether I can create something in between the two, say somewhere around 6 to 8 MB.
    Any insight would be much appreciated.
    Many thanks,
    Tania

    PDFs do not have a resolution. The graphics within do, however..
    Look at the downsampling settings and experiment until you get what you want.
    Bob

  • Merge Different Spools containing a Single PDF page into a Single PDF file.

    Greetings,
    I am developing a custom object where in i need to read PDF file from many different Spools(Range given on Input Screen), where each spool has a single PDF page in it. I need to combine all these PDF Pages into a single PDF file & either create a new Spool or save it on an Application Server.
    At present i have developed the code where in i am able to read the PDF files from different spools & convert them into Binary but i am not able to generate it back to PDF file.
    Kindly find my code for your reference.
    CODE:-
    START-OF-SELECTION.
      PERFORM f_get_spool_1000 .
      PERFORM g_conv_pdf_to_bin_2000 .
    *&      Form  F_GET_SPOOL_1000
          text
    FORM f_get_spool_1000 .
      SELECT * FROM tsp01
               INTO TABLE gt_tsp01
               WHERE rqident IN s_spool
               ORDER BY rqcretime DESCENDING.
      IF sy-subrc = 0.
        SORT gt_tsp01 BY rqident .
      ENDIF.
    ENDFORM.
    *&      Form  G_CONV_PDF_TO_OTF_2000
          text
    DATA: lv_filename_out   TYPE string,
                lv_len            TYPE i,
                lt_tab            TYPE tsfixml .
      DATA: lwa_print_parms    LIKE pri_params,
                  lv_valid(1)       TYPE c .
      DATA: lv_linsz LIKE sy-linsz VALUE 132, " Line size
                  lv_paart LIKE sy-paart VALUE 'X_65_132'.  " Paper Format
      DATA : lt_tsp01 TYPE STANDARD TABLE OF tsp01 ,
                   lwa_tsp01 TYPE tsp01 .
      CLEAR : gv_pdf, gwa_tsp01, gv_renderpagecount .
      LOOP AT gt_tsp01 INTO gwa_tsp01.
        CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
          EXPORTING
            i_spoolid         = gwa_tsp01-rqident
            i_partnum         = 1
          IMPORTING
            e_pdf             = gv_pdf
            e_renderpagecount = gv_renderpagecount
            e_pdf_file        = gv_pdf_file
          EXCEPTIONS
            ads_error         = 1
            usage_error       = 2
            system_error      = 3
            internal_error    = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CLEAR lv_len .
        REFRESH gt_bin .
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = gv_pdf
          IMPORTING
            output_length = lv_len
          TABLES
            binary_tab    = gt_bin.
        CLEAR gwa_bin .
        LOOP AT gt_bin INTO gwa_bin.
          APPEND gwa_bin TO gt_listout.
          CLEAR gwa_bin .
        ENDLOOP.
      ENDLOOP.
    Get FP reference
      DATA: lo_fp     TYPE REF TO if_fp VALUE IS INITIAL,
            lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL,
            lo_exc    TYPE REF TO cx_root,
            lv_xslt_message TYPE string .
      lo_fp = cl_fp=>get_reference( ).
    For handling exceptions
      DATA: lo_fpex TYPE REF TO cx_fp_runtime VALUE IS INITIAL.
      TRY.
          lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
      Set document
          lo_pdfobj->set_document(
            EXPORTING
              pdfdata = gt_listout ).
      Tell PDF object to extract data
          lo_pdfobj->set_extractdata( ).
      Execute the call to ADS
          lo_pdfobj->execute( ).
        CATCH cx_root INTO lo_exc.
          lv_xslt_message = lo_exc->get_text( ).
      ENDTRY.
    Your quick reply would be of great help.
    Regards.

    Thank Your for your concern, there are many replies & posts but all of them points only to Try what they have said. As being said that trying to convert PDF to binary & appending many PDF similarly would not let you generate a single PDF again.
    Your Kind guidance would be really appreciable.
    Regards.

  • Example file, illustrator file with variables linked to xml

    CS5 – Where can i find an example of an illustrator files with variables, linked to an xml file. We want to export it immediately to .pdf format when the file is linked. Is this possible? The illustrator help files are not so clear about this matter.

    Follow the Help documentation's steps to create at least one of each of the four supported types of variable bound objects.
    Capture the DataSet.
    Edit the bound objects' content.
    Capture the DataSet.
    Save Variable Library. That's your XML file.
    JET

  • I need to make a pdf document, made in photoshop, 'page turn' and then add it to my website. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    I need to make a pdf document, already made in photoshop, 'page turn' and then add it to my website as an e-brochure. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    Hello waitingone,
    please try this (all terms are translated from my German programs to my best knowledge):
    1. Did the creator of the pdf file enable the import options?
    2. See import options: choose an other visibility option for your layer.
    3. Let you show the import options and click into one with a black background and try these out (often a gray is selected).
    4. See trimming: try the different modes there. Often works: "Media".
    5. Is the pdf file (eg from Word) correctly created?
    6. Is the PDF file protected? >>> no import possible.
    7. If that does not help, store the pdf file in Acrobat, repair possible errors, run the PDF Optimizer before placing in InDesign.
    Good luck!
    Hans-Günter

  • How do i combine multiple pdf file into a single pdf file?

    how do i combine multiple pdf files into a single pdf file?

    The thread was started in early March and it's Mid-April, I know this very well. The OP of this thread posted a very common and simple question or maybe he/she would have resolved this. For an Adobe Acrobat user it's not at all difficult to combine multiple PDF files into one. But to combine PDF files full version of Adobe Acrobat is mainly required, otherwise PDF files can't be combined. For example, I'm using Adobe Acrobat 9 Pro. These simple steps are mainly required to combine PDF files:
    Open Adobe Acrobat.
    Click on Combine and click on Merge files into a single PDF.
    A window will be appearing, click on Add Files and select the PDF files you want to combine.
    Arrange the selected files in any order with the help of Move Up and Move Down button.
    Now click on Combine File and the selected PDF files will be combined within a few seconds.
    A new PDF file will be created. Click on Save As and name this new PDF file. Then, click on Save.
    A new PDF file will be created and all the selected PDF files are combined in it. The steps shown above might be different in other versions of Adobe Acrobat. Other than this, some third-party PDF merge software are also available. Most of them are available with a demo version for free evaluation. I've heard much about SysInfoTools PDF Merge software on other forums and directories and it's demo version is freely available. One may check its demo version if Adobe Acrobat (full version) is not available.
    Regards

  • How do I edit a PDF file with Adobe PDF Pack?

    How do I edit a PDF file with Adobe PDF Pack?

    Well, you don't. Editing a PDF is a difficult and fraught business even with the most expensive software.
    But PDF Pack lets you export to Word; then often you can edit in Word. Now you can make a new PDF. It might look like the original, or it might not. If small changes matter you might be out of luck. ON NO ACCOUNT USE THIS FOR GOVERNMENT FORMS.

  • How to ZIP a PDF File with a Password Protection

    Hi,
    i've a pdf file with created smartforms and i want to assign a password to that pdf file but the SAP doesn't let doing that protection. So i want to create a zip file with a password protection for PDF file.
    How can i create a zip file with a password protection? Can somebody help me please?
    Thanks.

    Hello,
    Check this links
    Take a look to the class CL_ABAP_GZIP
    open (top-)zip-archive
    CALL METHOD lo_zip->load
        EXPORTING
          zip             = lv_zip_file_head
        EXCEPTIONS
          zip_parse_error = 1
          OTHERS          = 2.
    create sub-zip-archives which contain the files you would assign to a folder
    add sub-zip-archive to top-zip-archive
    CALL METHOD lo_zip->add
         EXPORTING
            name    = lv_zip_filename
            content = lv_zip_file.
    save zip-archive
    CALL METHOD lo_zip->save
        RECEIVING
          zip = ev_zip_file.
    ABAP Development
    How to ZIP a PDF file email attachment
    Re: How to ZIP a PDF file email attachment

Maybe you are looking for

  • Mac Firefox starts but no window

    Firefox starts on my iMac, but no window appears. I try File > New Window, but no window appears. I tried rebooting my iMac and I downloaded and reinstalled Firefox -- still no window. I've been using Firefox for years and have never had a problem li

  • After Effects 4K Title & Animation Issue

    Hello, I am having an issue implementing titles for my project in PP that were created in AE. I had someone make me title animations and logo animations for me. He designed them for 1920X1080, but my footage and sequence is 4096 X 2160, and now he's

  • Custom export in MMBE transaction

    Hi Experts, I have a requirement, I am replicating MMBE transaction, to add additional columns in the output and to add an export button for downloading ALV. What is the best approach to achieve this? Thanks, Anil

  • Restore previous spreadsheet version

    Hi All, I have some problem with numbers in icloud. Somehow my latest version of spreadsheet has been replaced with an older version by icloud. Replaced by an almost 10 days older version, which has been updated daily without problem. I do miss a lot

  • How to save a movie that is on a dvd to iTunes?

    I need the steps to how to save a movie that is on a dvd to save in itunes.