Place PDF pages inline

I'm using data merge to create a multi-page PDF of formatted records.
I need a way to place these generated pages into a text flow so that they flow around other content in the layout. Is there an existing script that does such a thing? i.e. instead of getting a cursor to create a new graphic frame, it would automatically create more graphic frames within the text flow.
Thanks,
Andrew Vit

Turned out to be pretty straightforward to write, borrowed some from one of the sample scripts:
function placePdfPagesInline(pdf, insertion) {
     var pageCounter = 1;
     var breakFlag = false;
     while(breakFlag == false){
          app.pdfPlacePreferences.pageNumber = pageCounter;
          var currentInlineFrame= insertion.place(pdf)[0];
          if(pageCounter == 1){
               var firstPage = currentInlineFrame.pdfAttributes.pageNumber;
          else{
               if(currentInlineFrame.pdfAttributes.pageNumber == firstPage){
                    breakFlag = true;
          pageCounter = pageCounter + 1;

Similar Messages

  • Place multiple page PDF script no longer runs correctly

    I have place multiple PDFs into ID java script. Recently, when running the script, I'm no longer prompted to use current doc or new doc. I also don't get a prompt to place PDF starting on page x. It just opens a new 8.5 x 11 doc and places the PDF pages.
    I haven't deleted my prefs yet (haven't made a note of what they are). Nor have I deleted the script. Thought I'd check here first before nuking prefs or script. I get a lot of PP presentations as PDFs for printing so I need the ability to place into an 11 x 8.5 file.
    AFAIK, I haven't added anything new to my workstation which is running CS3 on Dual G5 with OS10.4.11. I have a tendency to troubleshoot after a 12 hour day and I've found out after the fact I did a lot of unneeded busy work by not thinking on it out more or asking around beforehand.
    Thanks in advance for any help.

    Does any other script show any dialog at all?
    If not, some rogue (or interrupted) script switched off User Interaction. You can enable it again with this one line javascript:
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;

  • Place multi page pdf at a consistent zoom

    I have minutes that need to be placed into InDesign at say 50% of their original size.  What is fastest way to do this in CS4?
    The minute pages are individual pages so I am selecting 3 at a time.
    Thanks

    Knowing the size of PDF to be imported, I make a layout with frames  that are 50% of PDF size. Then just place PDFs to created frames and  use fit content to frame.
    If PDFs are different size I  simply place them with one click (without creating the content frame)  then select them all and just type 50% in the control bar. Then fit  content to frame.

  • Place multi-page pdf and resize pages automatically

    Hi everyone,
    I have an A4 sized multi-page pdf file and I wanted to place the pages of the pdf into a US letter sized Indesign document. I planned to use the placemultipagepdf.jsx script that comes with indesign, to do this. When I place the pages though, they come in as A4 and I have to adjust the size manually within each image box. Is there a way to have them place but then resize automatically to the US letter sized height?
    Appreciate any help.

    Use this one: InDesignSecrets » Blog Archive » Zanelli Releases MultiPageImporter for Importing both PDF and INDD Files

  • I have an issue with a script that places multiple page PDF files...

    I'm using a version of "PlaceMultipagePDF.jsx" that I modified to use Media Box when placing the PDF file pages.
    That part was easy and works perfectly.
    The issue I'm having it that every time it places a PDF page, InDesign pops up a dialog saying that it's Importing pages from "file" and Creating preview with a progress bar. This dialog pops up once for each page, and the UI time it takes to do this is slowing down the import.
    So is there any way to turn off this feedback dialog?
    Note: I still need to see the dialogs to choose the PDF file and pick the document and page to start placing. I just want the one that displays for each page to not display...

    I found this in the Developer KB.
    But I can't find any of the functions in the Scripting Ref...
    How To: Suppress the progress bar when processing a command.
    Summary
    You can suppress progress bar display by turning it off before processing the command.
    Issue
    I use the IImportFileCmdData interface and pass kSuppressUI (do not display any UI) as UIFlags. When processing the command, I get a progress bar, which is called "Adobe InDesign Tagged Text Import Filter", whereas I expect no UI.
    Solution
    To suppress progress bars you should explicitly turn them off before you process the command (or commands).
    1. Get the interface IProgressBarManager (it's on kAppBoss, which you can get from gSession).
    2. Use IProgressBarManager::SuppressProgressBarDisplay() to turn off the progress bars.
    3 .Process the place command(s).
    4. Turn the progress bars back on when you're done.
    In InDesign 2.x and above, you can also use the SuppressProgressBarDisplay class (ProgressBar.h) class to achieve this. In order to use this class you just need to create an instance of the class on the stack as shown here:
    SuppressProgressBarDisplay suppress(kFalse);

  • Place all pages in pdf into indesign

    I want to place all pages in a pdf file into indesign, I mean need to load all pages in a pdf in single place method and place every pages individually on iterating through pages in indesign.
    Note: Manually this can be done by enable "Show import option",which opens preference window in which we can prefer to ALL option under PAGES menu under GENERAL tab while preforming Place pdf.

    You are finding PlaceMultipagePDF.jsx script and here is it for you
    //PlaceMultipagePDF.jsx
    //An InDesign CS3 JavaScript
    //Places all of the pages of a multi-page PDF.
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/xml_scripting.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    //Display a standard Open File dialog box.
    var myPDFFile = File.openDialog("Choose a PDF File");
    if((myPDFFile != "")&&(myPDFFile != null)){
         var myDocument, myPage;
        if(app.documents.length != 0){
            myDocument, myNewDocument = myChooseDocument();
        else{
              myDocument = app.documents.add();
              myNewDocument = false;
        if(myNewDocument == false){
             myPage = myChoosePage(myDocument);
        else{
            myPage = myDocument.pages.item(0);
        myPlacePDF(myDocument, myPage, myPDFFile);
    function myChooseDocument(){
        var myDocumentNames = new Array;
        myDocumentNames.push("New Document");
        //Get the names of the documents
        for(var myDocumentCounter = 0;myDocumentCounter < app.documents.length; myDocumentCounter++){
            myDocumentNames.push(app.documents.item(myDocumentCounter).name);
        var myChooseDocumentDialog = app.dialogs.add({name:"Choose a Document", canCancel:false});
        with(myChooseDocumentDialog.dialogColumns.add()){
            with(dialogRows.add()){
                with(dialogColumns.add()){
                    staticTexts.add({staticLabel:"Place PDF in:"});
                with(dialogColumns.add()){
                    var myChooseDocumentDropdown = dropdowns.add({stringList:myDocumentNames, selectedIndex:0});
         myChooseDocumentDialog.show();
        if(myChooseDocumentDropdown.selectedIndex == 0){
            myDocument = app.documents.add();
            myNewDocument = true;
        else{
             myDocument = app.documents.item(myChooseDocumentDropdown.selectedIndex-1);
            myNewDocument = false;
        myChooseDocumentDialog.destroy();
        return myDocument, myNewDocument;
    function myChoosePage(myDocument){
        var myPageNames = new Array;
        //Get the names of the pages in the document
        for(var myCounter = 0; myCounter < myDocument.pages.length;myCounter++){
            myPageNames.push(myDocument.pages.item(myCounter).name);
        var myChoosePageDialog = app.dialogs.add({name:"Choose a Page", canCancel:false});
        with(myChoosePageDialog.dialogColumns.add()){
            with(dialogRows.add()){
                with(dialogColumns.add()){
                    staticTexts.add({staticLabel:"Place PDF on:"});
                with(dialogColumns.add()){
                    var myChoosePageDropdown = dropdowns.add({stringList:myPageNames, selectedIndex:0});
        myChoosePageDialog.show();
        var myPage = myDocument.pages.item(myChoosePageDropdown.selectedIndex);
        myChoosePageDialog.destroy();
        return myPage;
    function myPlacePDF(myDocument, myPage, myPDFFile){
         var myPDFPage;
         app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
         var myCounter = 1;
         var myBreak = false;
         while(myBreak == false){
              if(myCounter > 1){
                   myPage = myDocument.pages.add(LocationOptions.after, myPage);
              app.pdfPlacePreferences.pageNumber = myCounter;
              myPDFPage = myPage.place(File(myPDFFile), [0,0])[0];
              if(myCounter == 1){
                   var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
              else{
                   if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
                        myPage.remove();
                        myBreak = true;
              myCounter = myCounter + 1;
    Shonky

  • How do I: put multiple PDF pictures into one PDF page?

    I have just installed Adobe Acrobat Pro Ver 9 - so this apllication and its associated SDK are the only applications available to me for use.
    Adobe Acrobat was chosen because of its AutoCAD capabilities (when AutoCAD is not present). i.e.  Using Acrobat & AutoCAD's plot configuration files & Pen / colour selection table ensures the output has correct line thicknesses (sometimes colours in CAD are used to represent a line's thickness) - this is preserved when using Acrobat.
    The generated output is fantastic. However, when I try to print the output via Excel / Word (used for layout) - my perfect output is reduced to imperfect results.
    So: is it possible to layout multiple PDF pictures inside one PDF entity for printing purposes such that the original output is not distorted?
    I have in the past put pages in front or behind other pages but cannot find any references or code that works with Pro 9 nor indeed the manual way to insert PDF pages at any location on a single PDF Page?
    I'll try and explain.  My template coud consist of 6 boxes on a single A4 page thus:
    My base PDF Page (can be thought of as a template - ideally it wont be printed - but even if it is - it wont be printed on any media material) has 6 areas (any number of areas up to 100) on it.  In each area, there is a box.  It is within these boxes that I wish to place a PDF Picture.  Not all pictures will be the same.  How can I do that?  Ideally I'd like some example C# code - though doing it as a user will suffice, for now.
    Is there a way of programmatically selecting each of the above boxes on the base PDF Document?
    I do know of one manual method (though it seems long winded) and it is not accurate enough in that (even though the layers are deselected) - the hidden layers are subsequently outputed too - not good!
    Uses a button icon over each box.
    All the current Adobe help for the SDK refers to Pro 8 and previously - which all seems to have now been replaced in Pro 9
    This question will be placed in the Developer & User Forums - as it pertains to both.
    Thankyou in advance for anyone that either knows any workarounds or any ways to affect a solution. 

    Picture of what I want to see:
    What I get, and don't want to see is:
    The PDF was generated using Adobe Acrobat Pro 9 from an AutoCAD LT (DWG) file without AutoCAD being present but making use of a plot configuration (PC3) file & pen table (CTB) file.  The resultant file [WhatIWantToSee.pdf] is perfect - all the lines are the right thickness & colour and are perfect vectors (with no construction / proofing layers visible).  When you view that file in Acrobat and show the "Layers" property box, you see that the correct number of layers whilst are still present are indeed turned off.
    However, when I add a forms-button to one of the rectangles (please refer to initial post - where there are 6 rectangles), and display same file as icon display.  The resultant view is the one shown above named [ What I get and don't want to see].  It seems the saved layer settings are all ignored?
    I generated the PDF file through Adobe Acrobat Pro 9  Menu | File | Create PDF | From File (Files of type Autodesk) | Options | Selected Layers | Layout | Last Active Layout.
    Rectangles are regular content elements - not fields (in the general meaning of form-fields).

  • Bug in Automator's Combine PDF Pages action?

    Hi guys,
    I've been playing around with 10.6's new Automator and Services. I decided to make an Automator Service so that if I have some PDFs selected in Finder, I can combine all the pages into one PDF and save it to a location. So I created the following service:
    * Get Selected Finder Items
    * Combine PDF Pages (appending pages)
    * Move Finder Items (to Desktop by default, show this action when the workflow runs)
    * Rename file (comes up as Name Single Item in Finder Item Names, show this action when the workflow runs)
    I tested this in Automator by selecting some PDFs on my desktop and hitting the Run button; everything worked out well. So I saved it as an Automator Service, only available for PDF files but in all applications (drop down lists at the top of the Automator window).
    I noticed however when I ran this workflow as a service, the pages in the resulting PDF file is actually duplicated. For example, if I had page 1 in page1.pdf, and page 2 in page2.pdf, running the service on these two files will produce a PDF with the following pages: page 1, page 2, page 1, page 2.
    Does this happen to anyone else in here, or is it just me? I tried saving the workflow as an application, placed it in the Dock, and then dropped my test files on it and it does the same thing. And this happens with other PDF files too.
    Is this a bug? Can someone confirm that it happens on their machine too?
    Thanks.

    Anyone? It doesn't take long to create an Automator workflow with the 4 actions above. Probably 2 minutes max. Can someone test on their machine?
    I tried to do the same with my MBP, which I also upgraded to Snow Leopard, and it does the same thing there. For some reason, it works perfectly when the workflow is run within Automator, but when it's exported as an Application or a Service, it duplicates pages.
    I tried to submit a bug report to Apple, but I couldn't log in with my current Apple ID -- it shows me an error page to submit a bug report! That's what I've been trying to do in the first place, but it seems the bug report process has bugs that they want you to report on. Chicken and egg scenario methinks.

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    How to I get multipage pdf file placed in my document to conform to the document that I set up?  I have InDesign cc and the pdf pages are placed outside of my document?

    Hi Rave,
    InDesign cc couldn't open the script, I get an error message that it is not a supported file type.  I tried this first before using the "place multipage pdf" in my InDesign document.  The script which comes with InDesign cc works, but places the pages outside of the document.  That's what I'm trying to figure out how to do.  I had no trouble doing this in PageMaker 15 years ago.  I don't know why it doesn't work on my computer??
    Thanks,
    Yerbamansa

  • Problem with opening adobe pdf page in Firefox 4 b10

    The pdf pages do not display in the correct colours and when scrolling sections seem to dissapear as if there is masking taking place.
    If you print the document then the pages come out correctly.
    Is there a fix for this or would it be better to go back to an earlier version.

    For us luddites, could someone post instructions on how to disable PDF Downloader in Firefox 4? Thank you!

  • Size of placed PDF Page

    After placing a page from a PDF, I want to display the size of the page in a text frame.
    The closest to the size of the PDF page that I get is when using
    app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
    Sometimes I get and expected size like 8.5 by 11 but some PDFs give me a size of 8.4###### x 10.9######.
    If I open up the PDF in acrobat that in indesign showed 8.4###### x 10.9######, it shows 8.5 x 11.
    Is my only way around this is to set up some rounding/precision routine?
    Thank you in advance!
    ** I calculate the size but it starts with geomtric bounds having a lot more decimal places than expected.

    Yes, ExtendScript does support toFixed(), but you need a toFixed() that also trims any trailing zeros:
    * same as toFixed(), but trims off those annoying trailing zeros
    * @param decimalPlaces maximum number of digits to the right of the decimal point
    * @returns the same string as toFixed(), except that any trailing zeros are removed
    Number.prototype.toFixedNice = function(/**Number*/decimalPlaces) /**String*/
         return Number(this.toFixed(decimalPlaces)).toString();
    So if you include the above in your extendscript, you can do this:
    var x = .999999999999;
    alert(x.toFixedNice(5)); // gives "1", instead of "1.00000"

  • Icon size for audio file insert on a PDF page.

    Acrobate X V10.1.9 Windows 7.
    I wish to insert an audio file on a pdf page. I select "multimedia", "sound". Get the window to select the file. Once selected I then find that I cannot size the icon that appears on the page (click to play). The two fields are grayed out. If I click "OK" it results in a very large "click to play" icon. I cannot resize the icon on the page..
    Does this function require C++? Have been getting an error message on PC startup about something being in error. I click OK and all seems to be working ok.
    Any ideas?
    Thanks,
    Joe

    You can crop it, but the size will not change to letter. However, after cropping, you can print with expand to fit page selected. If you like you can expand this to a new PDF using print, though not generally the recommended approach. Do you have any idea how it was reduced in the first place? If so, have you tried the reverse process?

  • [Automator] Render PDF Pages as Images problem

    Hi,
    I'm using an Automator Action called "Render PDF Pages as Images". It is not working properly. I've also tried one called "Change Types if Images" with the same results. The problem is both of these actions will create an image, but they won't put it anywhere other than a temp directory. With the second action, if I do it on an image file like a jpg, it will convert the image and put it in the directory the file exist in. I have a bunch of PDFs that are really just scanned images that I need to convert to TIFF and I want to automate it. It is frustrating that the actions are not working as documented. Both are supposed to render the change on the existing file in the location it exists and neither is work that way when run against a PDF.
    Any help would be appreciated.

    Christopher Stumpf wrote:
    It's really simple.
    It's a service item and it contains just one of the actions I've already listed. They are supposed to change the existing file to the desired type, in place.
    no, they are not supposed to do that. they don't say anything of the sort in their descriptions. moreover, this is completely impossible if a pdf file has several pages. I just tried it and it works just fine. I passed a multipage pdf to the action "render pdf pages as images" and it made a number of separate pdf files - one for each page, as it should according to the description. they are temp files, yes. so you just need to follow it by the action to copy (or move files) and then by "rename finder items".
    my workflow:
    1. get specified (or selected) finder items.
    2. render pdf pages as images.
    3. move finder items
    3. rename finder items.
    Message was edited by: V.K.

  • How to expand size of content on a PDF page

    Hi,
    I have a PDF page that is miniaturized  and I want to expand it back to a full 8.5x11inches so I can print it out and see it at regular size.
    The PDF page, itself, is on an 8.5x11 page at this point, but the content has become shrunk so that it occupies less than half of the current page. Obviously I can zoom in on the content and see it, but if I try to print it out, the content is shrunken, I can barely see it.
    If I was to open the PDF in Photoshop I could use the crop tool and make the currently shrunken content back to regular letter page size, but i was wondering if this was somehow possible in Acrobat Pro 9?
    So, can the content be expanded?
    (sorry for the poor explanation)
    Thanks for any help.
    Phil

    You can crop it, but the size will not change to letter. However, after cropping, you can print with expand to fit page selected. If you like you can expand this to a new PDF using print, though not generally the recommended approach. Do you have any idea how it was reduced in the first place? If so, have you tried the reverse process?

Maybe you are looking for