Need a script for InDesing culture pdf files

Hello

I have over 200 pages pdf file. I need to place pages in InDesign, jump the 4 sides about 20mm in InDesign. I did place using the script. I need to crop all pages, including at - it a script for the same... ?

Thanks in advance.

Hello

You can try with the code below:

var myDoc = app.activeDocument;
var myGraphics = myDoc.allGraphics;
for (var a = 0; a

But make sure that your rule should be in mm.

This is Zanelli script to put pdf in Indesign.

Shonky

Tags: InDesign

Similar Questions

  • get files from a specific folder for adding a pdf file

    Hello

    How can I get a file in a specific folder for adding a pdf file?

    You don't need to get the files in the folder B, if you know what is the path of the folder B, and what are the names of files...

    To process several files, you use an Action in Acrobat Pro. They have to run the following JS code (assuming that this file B is actually C:\Temp\B\):

    var folderBPath = "/ c/temp/b /;

    this.insertPages ({cPath: folderBPath + this.documentFileName});

    Then add a Save command, and you're done.

  • I have 9, 1 pages in PDF files that are accessible and the need to combine them into 1 PDF file.  I tried adding, adding and the combine process of PDF files. The file created does not take my changes. The file created is partially accessible, but I have

    I have 9, 1 pages in PDF files that are accessible and the need to combine them into 1 PDF file.  I tried adding, adding and the combine process of PDF files. The file created does not take my changes. The file created is partially accessible, but I have to re - the problems that I had fixed in the unique files. I need suggestions on what else can be done, if any. Using Acrobat pro XI.

    By habit, I tend to combine PDF files in the Page pane by right-clicking thumbnails then 'Insert of Pages'-> 'From File'. For me, this preserves the tags of these two documents, although the tags may have to be moved to the correct location (if I remember correctly the tags for inserted pages are put at the end of the tag structure, regardless of where the pages are inserted), if I put the tags in the document to insert into a container as a Section tag It makes the process easier. Travel set of tags in the right place is the only re-fixing that I remember having to do. What behavior you encounter?

    a 'C' student

  • Need a script for marginal elements consists of two tags

    Hello world

    I need a script for the marginal elements with two paragraph tags. Object styles, library items are all available for this work. My requirement is to cut two paragraph tags and put it in the library and also using styles of both object elements. Is this possible? Can help you to do this. For more information, I have attached this file also.Screen shot 2011-04-05 at 4.41.13 PM.png

    Waiting for your answer...

    Hi try this code...

    main();
    main() {} function
    If {(app.documents.length!=0)}
    {if(App.Libraries.Length!=0)}
    myStyleDialog();
    }
    else {}
    Alert ("Please open library.");
    }
    }
    else {}
    Alert ("Please open a document and try again.');
    Exit (0);
    }
    }

    function myStyleDialog() {}
    var myLabelWidth = 120;
    var myParaStyleNames = myGetParagraphStyleNames();
    var myObjStyleNames = myGetObjectStyleNames();
    myDialog = app.dialogs.add var ({name: "Choose the Styles instead of anchoring"});
    {with (MyDialog.dialogColumns.Add ())}
    {with (borderPanels.Add ())}
    {with (dialogColumns.Add ())}
    {with (dialogRows.Add ())}
    {with (dialogColumns.Add ())}
    staticTexts.add ({staticLabel: "choose paragraph Style1:", minWidth:myLabelWidth});})
    }
    {with (dialogColumns.Add ())}
    myParaStyleDropdown1 = dropdowns.add ({stringList:myParaStyleNames, selectedIndex:0});})
    }
    }
    //---------
    {with (dialogRows.Add ())}
    {with (dialogColumns.Add ())}
    staticTexts.add ({staticLabel: "choose paragraph Style2:", minWidth:myLabelWidth});})
    }
    {with (dialogColumns.Add ())}
    myParaStyleDropdown2 = dropdowns.add ({stringList:myParaStyleNames, selectedIndex:0});})
    }
    }
    //----------
    ~ {with (dialogRows.add ())}
    ~ {with (dialogColumns.add ())}
    ~ staticTexts.add ({staticLabel: "Object Styles:", minWidth:myLabelWidth});})
    //~                             }
    ~ {with (dialogColumns.add ())}
    ~ myObjectStyleDropdown = dropdowns.add ({stringList:myObjStyleNames, selectedIndex:0});})
    //~                     }
    //~         }
    }
    }
    myReturn = myDialog.show ();
    if(myReturn == true) {}
    myParagraphStyle1 = myParaStyleNames [myParaStyleDropdown1.selectedIndex];
    myParagraphStyle2 = myParaStyleNames [myParaStyleDropdown2.selectedIndex];
    myObjectStyle = myObjStyleNames [myObjectStyleDropdown.selectedIndex];
    myDialog.destroy ();
    }
    else {}
    myDialog.destroy ();
    }
    }
    }
    function myGetParagraphStyleNames() {}


    var myStyleNames = app.documents.item (0).paragraphStyles.everyItem () .name;
    Return myStyleNames;
    }
    ~ function myGetObjectStyleNames() {}
    ~ var myObjStyleNames = app.documents.item (0).objectStyles.everyItem () .name;
    ~ return myObjStyleNames;
    //~ }

    //----------------------------------------------
    myDoc var = app.activeDocument;
    var myDoc.stories = monarticle;
    var myParas, myCount = 0;
    myLib var = app.libraries [0];
    var AnchorItemName = prompt ("Enter the name of library point exactly", "", "anchor point");

    for (i = 0; i
    {
    myParas = .paragraphs [i] monarticle;
    If (myParas.length > 3)
    {
    for (j = 0; j
    {
    firstPara var = myParas [j];
    var nextPara = myParas [j + 1];
    var firstParaStyle = firstPara.appliedParagraphStyle.name;
    var nextParaStyle = nextPara.appliedParagraphStyle.name;
    If ((nextParaStyle == myParagraphStyle2) &&(firstParaStyle == myParagraphStyle1))
    {
    myText = myLib.assets.item (AnchorItemName) .placeAsset (firstPara.insertionPoints [0]) [0];
    firstPara.move (LocationOptions.after, myText.insertionPoints [0]);
    nextPara.move (LocationOptions.after, myText.insertionPoints [-1]);
    myText.fit (FitOptions.frameToContent);
    myCount ++;
    } //End If
    } //End of iteration Para
    } //End of If paralength > 2
    } //End of iteration history
    Alert ("Found and dealt with Occurrences" + myCount);

    --------------

    Green4ever

  • Can I share a link to a document (for example, a .pdf file) for anyone to view and/or download?

    Can I share a link to a document (for example, a .pdf file) for anyone to view and/or download on iCloud drive?  I currently do with Copy.com and Dropbox.  If so, how.

    Post edited by: mac710

    iCloud drive does not have this capability. You must continue to use Dropbox or Copy.com.

  • I need a key for hide my secret files in my pc

    I need a key for hide my secret files in my pc. How I see and use encrypt the key in my mini laptop. Start Windows 7. HP.

    There is no way to 'hide' a file in Windows. A person with good skills of Windows will still be able to find it. However, you can encrypt, for example with TrueCrypt. Take care to create a backup before going forward!

  • I am on a trial with Acrobat Pro DC on a Mac and when I try to combine files for example a pdf file and a word doc it says "additional permissions to access to" the word doc, so I have to select a folder and grant access, etc.  It's too long - is the

    I am on a trial with Acrobat Pro DC on a Mac and when I try to combine files for example a pdf file and a word doc it says "additional permissions to access to" the word doc, so I have to select a folder and grant access, etc.  It's too long - is there a way to get around this?

    Hi Alex,

    This is not related to Acrobat, Microsoft, you can see this problem with Microsoft Word is known: grant access file: cannot open the document: user - Microsoft Community it is a sandbox application. It restricts user with several workflow.

    Unfortunately, there isn't much we can help at this stage.

    Kind regards

    Tariq Dar.

  • I need acrobat pro to open a pdf file I created in quark and reduce the size of the file?

    I need acrobat pro to open a pdf file I created in quark and reduce the size of the file?

    It may be preferable to use a downsampling image option in Quark during the pdf creation process.

  • How to integrate the police Segoe Script in a saved pdf file?

    When I save a file .psd in .PDF (with Photoshop elements 12), two of the three fonts do appear fine in the .pdf file, but not the third (Segoe Script).  I open the PDF with Adobe Reader XI.

    How to integrate the police Segoe Script in the .pdf file?   (Depending on the printer, it must be there.)

    Thank you.

    Yes you will not be able to use either the distorted text.

    (these kinds of properties do not appear in this font)

    If you want to tilt the text as it would be for the italicized text, you can use Image > transform > Skew.

  • You will need to replace existing Web site pdf file. Help, please!

    Our intern left this summer and we are clueless on Dreamweaver. We have a Spry Menu with a link to a pdf file of our employment application. Our application has been reviewed, and we need to replace it on the Web site.

    From what we have gathered, Spry Menu Widget is no longer available for download, and we cannot change the link in a new file via the widget because the intern took his notebook with the installed widget.

    So to do this, I downloaded the files from the website my Local folder, deleted the old application employment pdf file and replaced it with the new application with the same exact filename than the old.

    My question is... If I point out the new application in our local folder and click on download, it makes the link in the menu to go to the new application?

    Thanks for you help in advance!

    Okay, of course. If we were to replace a pdf file linked in our spry menu bar. We had the widget and do not think that you could download it, then we went to the folder on the lower right part of the screen and open the remote folder. We then highlighted all files except for the / at the top of the file. Then we clicked on the arrow down to copy these files in our local folder. Once they have been uploaded, we went in the local and found the file folder that we needed to switch out. We then deleted this file, named our new file the same exact file name and clicked and dragged from our computer to the folder containing the file that we removed. Then we have highlighted in this file, click right and choose 'PUT', as Jon had instructed us to do above. Downloaded the file. When it was over, we checked our website and got an error because the pages would not load. However, a few minutes later, we tried again and everything worked perfectly. The new PDF had replaced a former and always connected correctly the MenuBar.

  • Scripting inDesign: Generate a PDF file

    Hello

    I have a bug with my script. Everything is OK:

    The script imports the xml file into my Indesign file and the new generated file (.indd) is correct...

    But this script generates PDF files with only 2 pages.

    You know the correct code to generate large PDF files?

    This is my script:

    var myTemplate is File.openDialog ("select a template");.

    myFolder var is Folder.selectDialog ("choose a folder to treat");.


    myDocs var = myFolder.getFiles ("*.xml");

    for (i = 0; i < myDocs.length; i ++) {}

    Open the template:

    var newDoc = app.open (myTemplate);


    Import XML:

    var myXMLImportPreferences = newDoc.xmlImportPreferences;

    myXMLImportPreferences.allowTransform = false;

    myXMLImportPreferences.createLinkToXML = false;

    myXMLImportPreferences.ignoreUnmatchedIncoming = false;

    myXMLImportPreferences.importCALSTables = false;

    myXMLImportPreferences.importTextIntoTables = false;

    myXMLImportPreferences.importToSelected = false;

    myXMLImportPreferences.removeUnmatchedExisting = true;

    myXMLImportPreferences.ignoreWhitespace = true;

    myXMLImportPreferences.repeatTextElements = true;

    newDoc.importXML (myDocs [i]);

    Add the additional document-specific treatment steps here


    Save:

    var NouveauNomFichier = myFolder.absoluteURI + ' / ' +. [i] myDocs name.replace (/ xml /, 'pdf');

    app.activeDocument.exportFile (ExportFormat.pdfType, File (newFileName), false);


    var NouveauNomFichier = myFolder.absoluteURI + ' / ' +. [i] myDocs name.replace (/ xml /, "indd");

    newDoc.save (new file (newFileName));

    app.activeDocument.close ();

    }

    Thank you

    Hey!

    Try to add before you export it in PDF format:

    app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;
    

    --

    tomaxxi

    http://indisnip.WordPress.com/

  • problem w / script to merge 2 PDF files

    Hello

    Is anyone please tell me what is the problem with my JavaScript?

    var newDoc = app.newDoc ();  create a new doc PDF

    newDoc.insertPages ({nPage:-1, cPath: "/ c/doc1.pdf",});    Insert doc1.pdf

    newDoc.insertPages ({nPage: newDoc.numPages, cPath: "/ c/doc2.pdf",});   Insert doc2.pdf

    newDoc.saveAs ({cPath: "/ c/myNewDoc.pdf"});     Save the new doc

    newDoc.closeDoc (true);    close the doc

    I fell on the batch processing of Adobe Pro 9.0 - he gave me the invalid argument type.

    Undefined Doc.insertPages:13:Batch: Exec = > nPage parameter.

    I'm trying to merge 2 PDF files using the Acrobat JavaScript Scripting Guide script sample, but it does not work for some reason any.

    I can has merged the 2 PDF files manually, but not by script.  I hope that in a script I can forced Adobe XFA forms that I created LCDesigner with the AcroForms.  Merge AcroForms and XFA forms.  I know that in manually may not merge. I wonder if it can it be done through JavaScript?  The doc1 doc2 I have are regular AcroForms

    Thank you 1 million for your help & suggestions

    Trang

    Hi Trang,

    XFA forms (created in the LC Designer) and AcroForms (created in Acrobat) are completely different animals!

    The XFA form is wrapped in a wrapper that runs in Acrobat/Reader. You cannot merge (AFAIK) an XFA form and a PDF (or AcroForm).

    The best that you will achieve is to attach an XFA form into a PDF file.

    Alternatively, you can group the XFA and PDF forms in a portfolio.

    Good luck

    Niall

  • Search for content in pdf files stopped working after the migration of Windows 2008 Indexing Service

    Hello

    We have designed a search custom as an aspx page that uses the Indexing Service to search for content in a set a which coexist document types (doc, pdf, xls, etc.)

    We moved to a Windows Server 2003 Indexing Service to Windows 2008 and since the Indexing Service has stopped the search pdf files. The search returns only another type of pdf files.

    On the new server where the Indexing Service, I installed Adobe PDF iFilter 11 for 64-bit platform, I think it's the plugin the Indexing Service uses to find the content of pdf files.

    Does anyone got the Search Indexing Service content in PDFs on Windows 2008 server?

    Thank you

    Mihaela

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • How do you auto generate bookmarks for a combined pdf file?

    Hello

    I download at least 20 batches of PDFs in a Web site. By pdf file there may be 1 or more documents.  I then combine files into a single 20pdf.

    How can I auto favorite of all my documents? I use Acrobat XI and it only generates automatically the first page of each batch of the 20 pdf.

    In addition, can I program the bookmark to use part of my document as the name of the label of favorite?

    This time, I go through each page and bookmark documents.  (the documents are the same formats).

    Hoping for some assistance.

    Thank you

    Hi mariea49126148,

    You can add bookmarks using Acrobat application, see this KB doc. helps Acrobat | InPDFs thumbnails and bookmarks the page. Is not possible using the player.

    Kind regards
    Nicos

  • Need a script for vlanid

    Hello

    Can you please help me for a powercli script that retrieves the VLANID of all distributed virtual port groups? I need only virtual port group name and vlan id in the output format.

    I'm afraid of Robert solution will not work for the vlanid and pvlans ranges.

    Try this

    Get-VirtualPortGroup -Distributed | Select Name,
    @{N="VlanId";E={
        $t=$_.Extensiondata.Config.DefaultPortConfig.Vlan
        if($t.VlanId.Count){
            $t.VlanId | %{
                $_.Start.ToString() + "-" + $_.End.ToString()
            }
        }
        elseif($t.Pvlanid){
            $t.PvlanId
        }
        else{
            $t.VlanId
        }
    }}
    

    I limited the script for distributed Exchange, because I think that's what you were asking.

Maybe you are looking for

  • Ehternet Instrument IP address using MAX

    I have several instrument (PS, freq counter etc) which are the instrument of ethernet. I'm trying to find: 1. If the IP address can be changed in the form of LabVIEW for each instrument? It is after that the aircraft is initially configured with an I

  • How can I add MUIs for my laptop?

    Hello. I have standard Windows Vista on my laptop and said I need to download an additional MUI in order to have the Japanese feature. Help Windows said I should see these MUIs in Windows Updates, but until there was nothing. I read on another answer

  • Cannot install the game The Witcher due to insufficient privileges

    HAVE YOU TRIED 2 ASSISTANTS TO ANOTHER COMPUTER.  THEY COULD NOT HELP.  WE SAID MAYBE HE WOULDN'T PLAY A WINDOWS 7.  ANY HELP WOULD BE APPRECIATED.

  • Display of weathermap

    Suddenly the Wxmap Interactive at www.intellicast.com gets stuck w / the word "boot"; and, unable to display items atwww.LLBean.com .  Research since Saturday to resolve. If a player can offer the right keyword technical (a program?  an Add On?) so t

  • HP Probook s 4710 Ram upgrade

    Hello I have a proobook Hp s 4710 with win7 ultimate 64 bit and I want to upgrade my Ram. Currently, according to CPU - z I 2 GB 800 MHz. By searching hp.com and the net I discovered that some 4710 s take other ddr3 and ddr2. So I chated with an HP e