remove unused pages after copyng to previous pages

original title: remove unused pages after coptyng to previous pages

Hi, I have vopy oand CPAST info frompages to prreevios of pages but can not remove unused pages. Can you help me?

Thank you

Vicki

Hello

A few questions will help us better to solve your problem. Please answer these questions for us:

1. what operating system do you use?

2. what programs you have problems with?

3. is there an error message generated?

4. what type of file you go when this happens?

5 How long this issue is past?

6. is there anything changed/added/deleted before this issue popped up?

It's basically the who, what, when, where and why of troubleshooting.
b Eddie

Tags: Windows

Similar Questions

  • IDCS6 MACOSX JS: script of 'remove unused layer' is not from masters of the masters

    Hello everyone.

    I have an old script I've used several times to remove the unused layers. Until today, I thought that worked well:

    var layers = app.documents[0].layers.everyItem().getElements();
    for(var i=layers.length-1;i>=0;i--){
      if(layers[i].pageItems.length==0){
        layers[i].remove();
      }
    }
    

    However, today, I used the script on a document that was a never used layer once on a master page to which other master pages have taken place on the basis. To my surprise, when the script is run, this specific layer has been removed.

    my knowledge of the script is poor, but looking at the script, it seems that the script is looking at all the layers that have something in them and any layer comprising any element should be removed. However, I think that only made pageItems refers to the regular pages or template, not masters BASED ON other masters.

    I think that the problem is similar to another that I had recently where I had a script that has removed the unused masters, but deleted that other masters masters took place on the basis, and I think that the principles are the same. This thread can be found at:

    http://forums.Adobe.com/message/5922004#5922004

    In short, the script that worked there were as follows:

    xUnusedMasters(myDoc);
    
    function xUnusedMasters( docRef ) {
    var mpNames = new Object () ;
    var allPages = docRef.pages ;
    for ( var pIndex = allPages.length - 1 ; pIndex >= 0 ; pIndex-- ) {
    mpNames = addMasterName ( mpNames , allPages[pIndex] ) ;
    }
    
    var allMasterPages = docRef.masterSpreads ;
    for ( var mpIndex = allMasterPages.length - 1 ; mpIndex >= 0 ; mpIndex-- ) {
    if ( ! mpNames[allMasterPages[mpIndex].name] ) {
    allMasterPages[mpIndex].remove() ;
    }
    }
    return ; 
    
    function addMasterName ( MPDB , pageRef ) {
    if ( pageRef == null ) { return MPDB ; }
    if ( pageRef.constructor.name == 'MasterSpread' ) {
    MPDB[pageRef.name] = true ;
    }
    return addMasterName ( MPDB , pageRef.appliedMaster ) ;
    }
    }
    

    is it possible to modify the script above so that instead of remove unused pages of masters, it takes away the layers used in a similar way?

    Thank you very much

    Colly

    Hello

    Maybe a little differently...:

    Array.prototype.filter = function(collection) {
              var k, i, con, ids = collection.everyItem().id;
              con: for (k = ids.length - 1; k >=0; k--)
                        for (i = 0; i < this.length; i++)
                        if (this[i].id == ids[k]) {
                             ids.splice(k, 1);
                             continue con;
                             }
              return ids;     // array with unmatched ids from collection
              }
    
    var
              mL = app.activeDocument.pageItems.everyItem().itemLayer,
              mUnusedLayersID = mL.filter(app.activeDocument.layers),
              len = mUnusedLayersID.length;
    
    while (len-->0)
              app.activeDocument.layers.itemByID(mUnusedLayersID[len]).remove();
    

    mL is a table with a layer of each pageItem;

    filter compared to the collections of doc.layers;

    unmatched ways not so used are deleted.

    Jarek

  • Acrobat Pro XI Java: Removal of Page is very slow

    Hello world

    Here is a set of code that I had working in Acrobat XI to pull up a popup window which, when the user selects Yes, is able to search a keyword hidden on some pages in the PDF file and then delete the corresponding pages.  It works, but the problem is that it takes almost a minute to treat.  I'd love to someone entered for what might slow the process down.  I am very new to Java specific suggestions would be greatly appreciated!

    Thank you in advance,

    Christian

    CMSG var = "continues with the current action will delete the TASKS application and its data."  This may take a few minutes to complete. « ;

    CMSG += ' \n\nDo you want to continue?

    var nRtn = app.alert (GSMC, 2, 2, 'Question Alert Box');

    if(nRtn == 4)

    {/ / A yes answer}

    Code to do the thing you can do on a Yes

    Console.println ("the answer is Yes");

    for (var p = this.numPages - 1; p > 0; p--) {}

    for (var n = 0; n < this.getPageNumWords (p); n ++) {}

    If (this.getPageNthWord (p, n) == 'CHESDELETE') {}

    this.deletePages (p);

    break;

    }

    }

    }

    }

    Another yew (nRtn is 3)

    {//No response

    Console.println ("the answer is no");

    }

    on the other

    {//Unknown response

    Console.println ("the response was something other than yes/no:"+ nRtn ");

    }

    Hello world

    After review of this topic, I realized a solution.  So I hope that someone in my situation can benefit in the future!

    * A brief summary, I had an interactive PDF application where multiple pages are "generated" when some options (check boxes) are selected.  When the items are deselected, I needed a way to get these pages on the document.  Research of the approach of the nth Word worked, but it is become very slow, especially as the PDF has grown larger.  The approach below you will remove the pages having engineered very quickly a document based on a button/field value and can be adjusted accordingly.

    As follows:

    1. Somewhere in the document (not on the template, unless you make sure that the domain names are static when created) create a field text and format to store the numbers with decimal places to zero .  It's your container (so, for example, I named it CHES container).
    2. Then go into the model that needs to be created at a later date. In the page toolbar, right click on your model page and go to properties > Actions
    3. For select trigger, choose "Open Page"; For select Action, choose "Run a Java Script"
    4. Paste and modify the following script:

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

    var p = this.pageNum;

    Console.println (p);

    this.getField("CHES_Container").value = p;

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

    5. This action will say your model page, when, created to identify its own page number and place it in the "container", which once again, for me, is called "CHES container.

    NOTE: Check to be sure your container shows a number, and that it is accurate.  Later, you can hide this field, but for now, it is useful to find errors that may occur.

    6. click OK and click on the button (checkbox etc.) that will trigger the removal of these specific pages.

    7. go in field properties > Actions.  For select trigger choose "Mouse Up"; For select Action, choose "Run a Java Script"

    8 paste and modify the following script:

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

    var p = this.getField("CHES_Container").value;

    this.deletePages ({start: p, nEnd: p + 2});

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

    NOTE: nEnd: p + 2 adds just 2 pages to the start range.  So just change accordingly based upon the number of pages given birth there are requiring deletion.

    As a tip, my relaxation complete box script was:

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

    Var SHEETS = this.getField ("CHES Check");

    var CHES1 = this.getTemplate ("CHES Pg1");

    var CHES2 = this.getTemplate ("CHES Pg2");

    var CHES3 = this.getTemplate ("CHES Pg3");

    var p = this.getField("CHES_Container").value;

    If (ches. Value is "Yes")

    {

    CHES1. Spawn();

    CHES2. Spawn();

    CHES3. Spawn();

    }

    on the other

    {

    this.deletePages ({start: p, nEnd: p + 2});

    }

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

    Please let me know if I missed something or if you have any questions!  Thanks again to everyone for your feedback and patience.

  • [basiljs] remove all pages except one

    In a script, I create pages, export to PDF, remove pages and then create a new etc.

    Right now I use this:

    [code]

    for (var j = b.pageCount (); j > 1; j-) {}

    b.removePage (j);

    }

    [/ code]

    But it's really slow. I think that indesign made many calculation after deleting a page (deadline: link textfields) so it would be more efficient to remove all pages at once.

    Now my question is how do?

    I tested and if I delete about 5500 empty pages with the script it takes about 8 minutes.

    If I select all in indesign, and then delete it takes about 10 seconds.

    Another way to speed up a litle is to erase all the content. It will take a long time but probably a bit faster.

    Thing is that I have

    b.Clear (b.doc ());

    but this removes the master page as well and I need to keep the master page.

    In short, how to remove all pages (except one since indesign needs a single page) at the same time?

    Hello

    I will remove a lot of pages in indesign with

    • Use documentPreferences.pagesPerDocument (faster)
    • use while loop or for
    • Close doc without saving changes, and then open again. (in some cases)

    Here's the test code, run with old Macbook Air + CS5 + OSX10.7

    var pp = function (args) {
      $.writeln(args);
    }
    
    var remove_all_pages_use_pref = function (doc) {
      pp("start deleting (use preferences)");
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 1;
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    var remove_all_pages_use_loop = function (doc) {
      var i = doc.pages.length;
      pp("start deleting (while --)");
      $.hiresTimer;
    
      while (i--) {
        if (i==1) {break;}
        doc.pages[i].remove();
      }
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    function main() {
      var doc = app.documents.add();
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 5500;
      pp('# create 5500 pages');
      pp($.hiresTimer);
      var indd = new File("~/Desktop/5500.indd");
      doc.save(indd);
    
      pp("------------");
      remove_all_pages_use_pref(doc);
      doc.close(SaveOptions.NO);
    
      pp("------------");
      pp("# try another way");
      var doc2 = app.open(indd);
      remove_all_pages_use_loop(doc2);
      doc2.close(SaveOptions.NO);
    }
    main();
    

    result

    # create 5500 pages
    30395026
    ------------
    start deleting (use preferences)
    end deleting
    28215999
    ------------
    # try another way
    start deleting (while --)
    end deleting
    268641063
    

    Thank you

    mg

  • Remove / delete pages with javascript (or vbs)

    There is a MyPage.Add ()... There is no MyPage.remove ()?

    Can I delete a page with a script number?

    The problem:

    I have a problem facing pages. I need essentially to remove two pages to two pages, remove both and so on for about 2000 pages. Of course I could click and delete, but what would be the fun in that?

    The pages are created in a facing-pages datamerge. I do not understand why CS4 cannot manage in the face of datamerge pages... Whatever it is, I need a work around.

    Visually in the PAGES tab, what I have is the following

    Merge data entry enter merge data

    In the face of the Page A In the face of Page b.
    Merge data entry AMerge data entry A
    Merge data entry BMerge data entry B
    Merge data entry CMerge data entry C
    Merge data entry DMerge data entry D

    What A, A, B, B, C, C, D, D, etc.

    What I need to finish with is

    A B
    A
    B
    C
    D

    What A, B, C, D, etc.

    The rules: the database is untouchable. Face to face Pages A and B side are formatted differently.

    Any help or information leading to a job work around willl be rewarded of handsomly now that I get my cheque to a rich African uncle, I unfortunately discovered through an email today, had recently died.

    Thank you very much!

    Marc

    But there is a myPage.remove)

    There are frames of text on pages to delete block? In a script, it behaves exactly as in the UI: text block is moved to the next section in the thread (usually on the next page). So if this is the case, this script works but not the way you intended.

    In any case, you want to delete a single page, then go two pages - remove two pages - jump 2 - etc., until the end of the document.

    This Javascript should do it:

    var curpage = 0;
    app.activeDocument.pages[curpage].remove();
    while (curpage < app.activeDocument.pages.length)
    {
     curpage += 2;
     app.activeDocument.pages[curpage].remove();
     app.activeDocument.pages[curpage].remove();
    }
    

    It boings out with an error at the end if your document contains an odd number of pages (?), because he might try to remove a page after the last of them, but this isn't a critical error, it seems to me.

    I tested it on a document of 30 +, and it has successfully removed #1, then #4 and #5, then #8 and #9, etc. Yet, paranoia is a healthy lifestyle (when applied to computers), then running on a copy, will ya.

  • How can I remove a page from an email that appears when I open my computer?

    How can I remove this page that appears every day, I cut down on my computer. The page is from an email sent to my long from a friend who has his social security information. How can I remove this?

    Hi lost,

    Try a boot minimum http://support.microsoft.com/kb/929135.  If the problem goes away then it's just a matter of tracking down the culprit at the origin of the problem.   Follow the procedures described in the article.  Once found, remove, delete, disable or uninstall.  Once don't forget to reset yout system back to the normal state, as described in the procedures. If the problem occurs in clean mode then just restore the system to normal and reboot - this solution will not work.  If you are using XP, see: http://support.microsoft.com/kb/310353.

    I hope this helps.

    Good luck!

  • A document of several pages and the need to remove all other pages.  Document to wholesale remove each page separately.

    I have a multi page document (1, thousands of pages) and you need to delete all the other pages.  I can't understand how to do this and I know it's doable.  I haven't the time to delete this one page at a time.  Help, please.

    If you have Adobe Acrobat DC Pro, you can create a custom command using the following JavaScript code to remove all pages:

    // process document from the last page to the first page
    for (var i = this.numPages-1; i>=0; i--) {
        if (i % 2) { // this will delete all even numbered pages
            this.deletePages(i);
        }
    }
    

    To find out how you can create a custom command, follow the steps detailed here: create orders customized in Adobe Acrobat DC Pro - KHKonsulting LLC

    If you want to remove all odd numbered pages, simply change the line #3 to this:

    if (!(i % 2)) { // this will delete all odd numbered pages
    

    If you use an earlier version of Acrobat Pro, you can use an Action to accomplish the same thing. If you use Adobe Acrobat Standard, you do not have access to the action Wizard or custom orders, and you have to write a script of folder level to create a new menu item that can remove odd or even numbered pages.

  • Can I remove a page from a PDF document?

    Can I remove a Page from the PDF that I don't want in a PDF file?

    Hello

    Using Acrobat, you can remove a page from the PDF.

    Please see this link:using Acrobat | Rotate, move, delete and renumber PDF pages

    Kind regards

    Florence

  • How can I remove a page from a pdf document?

    How can I remove a page from a pdf document?

    If you have Acrobat and the document has no security restrictions or anything else that could stop him, you would select the following:

    Acrobat 11: Tools > Pages > delete

    Acrobat 9: Document > Delete Pages

  • remove a page break

    How to remove a page break in a PDF with Acrobat Pro?  My document has two pages cropped and I want it all on one page.

    Is my only option to convert the file in Word and it do?

    To add a so slightly, Acrobat does not have the type of editing capabilities that you MENTION. So the workaround solution has been mentioned is a way to do what you want.

  • How to remove a page of the PDF document?

    How to remove a page from the PDF?

    Tools > Pages > delete

    Select that range from the page to remove

    Click on the OK button

  • [AS] Cannot remove a Page element

    I'm confused as to how to remove a page element. It is a jpeg embedded in a document of AI, I can remove it by selecting and executing a simple script like this:

    Tell application "Adobe Illustrator"

    say active document

    delete selection

    end tell

    tell the end

    However, if I try to find and delete as part of a larger script, it won't clear. No error is thrown and everything else in the script works, but the item not be deleted. Here's a piece of the script that I had hoped to find and remove the element. Note that the script can find the item very well because I am able to copy its position property and it allows to place another point in that I paste.

    the value question for each page element of the document 1

    Repeat with e from 1 to the number of question

    put pourla to the point e of question

    If width of pourla = 26 may

    on theBounds position of pourla

    delete pourla

                        paste

    Paster point value 1 of the selection

    theBounds the value position of Paster

                   end if

    end repeat

    Any ideas would be a great help. Thank you.

    You might have better luck looking for elements of running through all the elements of the page if you want to remove is always an embedded JPEG images.

    This is an example

    Tell application "Adobe Illustrator"
    the docRef active document value
    Define rasters (each point on the page of the docRef) whose class is the point of frame
    Remove rasters
    Close docRef save Yes
    tell the end

  • How can Hello I remove unused assets please

    How can Hello I remove unused assets please

    Hello

    In this scenario, select "go to trump" among the options that you get to drop down.

    Once you click on "go to trump" Muse will open the page in design mode that has this very special and will choose this asset.

    Now you can remove it by pressing the button DELETE in the keyboard.

    Concerning

    Vivek

  • Removing unused columns - pre and post checks

    Friends...

    DB: 11.2.0.3

    OS: Linux

    I have a few quick questions in relation to removing unused columns which I intend to do on the production database (5 tables 20 GB each)

    The columns are already defined as unused tables, but I'm trying to get a backup plan for this tables if something goes wrong, while editing the table.

    Could some experts share their experience with me?

    1. What backup plan, I can have 5 tables to retrieve them in case something goes wrong?

    (I thought about import export, but I think import will fail if I try to import after that "alter table drop unused column" did not order)

    Also some tables have 500 lines and taking the export compliance will be problematic.

    2. any request to know in advance which package could be invalid after the fall of the column?

    3. statistical does is invalid?

    (According to my knowledge, I think that it won't affect his stats and also tested this and stale_stats column was not after a column.)

    4. do I need to scan the table or rebuild indexes to ensure that this drop column does not affect the performance of the application?

    5. any other minor/major that keep them in check after a fall unused column?

    Thank you

    Mike

    @rp0428... I understand your doubts and yes it's true, there were 5 tables of 20 GB each and additionally 5 tables, there are a few smaller tables I thought won't create a problem. For large tables, I did used control point.

    As always, I have tested plan in dev environment with the same size/data lines but a unused fall was quick and no problem with cancellations is why during production, it took me surprise.

    I had cancellation of 32 GB, so obviously, I was confident of small tables)<5 gb)="" should="" definitely="" fit="" in="" 32gb="" (but="" it="" wasn't="" the="">

    OK - but we can only go through the information you post and you don't post anything of this.

    If you had my question would be why you do not use "checkpoint" when you tested and why you didn't used it for this 5 GB table in production that generated 100 GB of REMAKING?

    My next question would be: what PROBLEM have you tried to solve by dropping the unused columns? Your application was working fine so why was the decision taken?

    And the reason for this question is that ANY significant changes to a table (standard partitions, add virtual columns, split partition, etc.) is ONLY suitable for technical purposes.

    There are almost always other changes that could / should be made and it is usually beneficial to make all these changes as a whole. Common examples include 1) get rid of the old data (dilation), 2) addition of such constraints as NOT NULL, 3) a table partitioning, 4) adding new columns - perhaps with NOT NULL value and/or default values constraints.

    Since 'other' someof these changes can be problematic if done online, it is generally advised to do a thorough analysis to make sure that you have identified ALL the changes you want, you can then do all at once. Often the best solution is to re-create the table and data using the DEC.

    1. a normal 'drop unused' rewrites all the blocks. It's not moving lines to other blocks - it essentially tightens just online content in order to remove all the content of the unused column.

    2. a normal 'drop unused', even if you use control points, leaving the "unusable" table until the WHOLE picture was treated. This means you NEED to perform the operation before normal re-use of this table, you can resume

    3. a normal life 'unused drop' will NOT free space which can be used by other objects - the same lines occupy the same blocks - the lines are just "small". Therefore, there is NO space to release.

    Creating a table (e.g. DEC) you can use a bulk loading and parallel operations and move lines of new blocks. It can also if take care of these 'other' I mentioned with little or no extra charge of the changes.

  • How to remove unused genres

    I'm trying to remove unused genres in my library?

    A few types are predefined in the standard MP3 tags. Others, created by you or inherited as part of the downloaded files can be eliminated by changing all instances of this kind.

    In music > My Music > select songs like point of view. You should see a list of the types near the top of the window > select a type you want to eliminate > select all songs are listed in the main window > read information (cmd + I) > remove or change the type field in the window that appears.

Maybe you are looking for

  • Does not start after installation of the graphics driver

    After installation of the graphics driver from Nvidia NVS 140 m on the new installation of XP Pro SP0, black screen on reboot. All solutions?

  • Hotmail Web page problem

    You use Internet Explorer 6 SP1, in environment Windows Millenium, I get a blank page when you try to go to login.live for hotmail. Web page gets the following error: line: 2 Char: 8675 error: class not registered Code: 0 has happened for about 2 mon

  • read a brief

    I use my PC LPT port to connect with my (CHIP) device, my device contains 60 x 8-bit registers, which means that 60 different addresses, then I have to send data to these registers to adresing them and be able to read on their part contains it choose

  • Error 80070002 continues to show and can not install the update KB936330

    "Windows Vista Service Pack 1 for x 64-based systems (KB936330) WILL NOT be INSTALLED. My computer; "HP Pavilion dv9000". I tried several times but it still fails. I followed the instructions and 1) order windows update service and deleted temp files

  • HP Photosmart 3310 all-in-one does not print print test page doe but doesn't show is not black

    I have a printer all-in-one HP Photosmart 3310 that does not correctly print a test page (print color but not black) and does not print a WORD document from my computer.  The color that should be black in the test page after CLEANING print head appea