How to delete empty pages in the description?

Hi all

How to remove the empty page that can contain the block of text with no content or may be no text frame...

Please give me the script...

Thanks in advance,

Vel...

Hi all

The correct script is the following:

doc = APP.activeDocument;

pageObj = doc.pages.item (0);

txtObj = pageObj.textFrames.item (0);

var temp = doc.pages.length;

for (var i = 0; i)<>

{

If (doc.pages [i].textFrames.Item (0)! = null)

{

if(doc.pages[i].textFrames[0].contents=="")

{

doc.pages [i]. Remove();

I have = i-1;

-Temp;

}

on the other

{

}

}

on the other

{

doc.pages [i]. Remove();

I have = i-1;

-Temp;

}

}

Thank you andRegards,

Vel.

Friends of note:

Forum is for freedom from doubt and the search for a solution by experts. But some people are looking to make money. It's really... *

Tags: InDesign

Similar Questions

  • How to delete empty pages in iBook author

    I have a few large iBooks in iBook author. It is necessary to resort to certain paragraphs. By removing parts of a paragraph, there are empty pages and I have no idea how to do to remove them. It is very young, because of the suspension of the empty pages in the book.

    Is there someone who knows this problem?

    Y at - there someone who can help me?

    Sorry for my bad English!

    with greetings

    pjdi

    Use the Edit menu and click on delete.

  • 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

  • How to delete a playlist from the iphone 6

    How to delete a playlist from the iphone 6

    Open iTunes, plug in the iPhone, what you select ant to be on the iPhone, sync

  • How can I make Pages capitalize the first word in a sentence?

    How can I make Pages capitalize the first word in a sentence? The I phone t - it, the iPad does, why not not iMac using Pages capitalize the first word on a new sentence?

    Pages of IOS and IOS itself remain different implementations of Pages v5.6.1 for Mac and OS X. In any version of Pages v5, if there was an option to preferences in Pages ' 09, there is no auto-capitalisation function.

    See my previous post is launching an OS X App Store free application, which can be applied to auto-capitalisation to your Pages v5 documents.

  • 1536dnf. how to scan mutiple pages in the scan bed

    1536dnf. how to scan mutiple pages of the scan bed without PROMT scan PC icon each time.

    I have several pages that WILL NOT go throuhg the document feeder.

    You will not be able to scan multiple pages into the glass.

  • How to delete a contact in the menu 'To' drop down when starting a new email?

    How to delete a contact in the menu 'To' drop down when starting a new email?  Email is no longer in my list of contacts, but he continues to appear in the menu drop down and too often I am wrong send something to the wrong email since it is at the top of the drop-down list.

    2 possibilities:

    1. you have an invitation, that you still need to answer. The name stays on until you refuse the invitation. Then it will go away.

    Open outlook.com > top left, place your cursor on the Outlook logo > an arrow will appear > click on the arrow > click on people > here's the window of your people.
    Toolbar at the top, click on manage the > click on View Invitations > do you see an invitation? If so, decline the prompt will remove the names of th.
    2. There may be a suggestion of the application of the 'AutoComplete suggestion» It gives you the names so that you, at the same time, sent emails.
    You can remove this suggestion by doing this...

    Open outlook.com > top right, next to your name, click on the gear icon > click on e-mail settings more > under customization of Outlook, click Advanced Privacy settings > click the front point 'Only suggest people in my contact list' > click on save when finished.

    t-4-2

  • How to delete files orphans on the equallogic virtual volume

    It is in reference to article kb of VMware to the address following:

    https://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2108332

    So what commands or GUI options are available to remove volume virtual orphaned objects?

    vSphere indicates the virtual volume in a vacuum but a space used 53 GB to 1 TB. The equallogic gui shows several virtual machines with 0 Mb in size associated with the storage container. Any attempt to remove gui and ssh results in the following error 'storage container must be empty to be deleted. The storage container is also showing that it incorporates snapshots and related clones that I can't access.

    Storage container _ Information
    name: XXXXXXXX-VOL001 UUID:
    Description:
    Size logic: logical 10TB used: 354GB
    Free logic: 9.65 TB Aggr physical size: 1 TB
    Physical AGGR used: 53GB free physical Aggr: 971,02 GB
    VVols: 2 VVolSnapshots: 1
    VVolLinkedClones: OnlineVVolsSnapshotsLinkedClones 0: 2
    _______________________________________________________________________________
    _ Information _ pool storage container
    Name of the cluster: the default physical size: 1 TB
    Used Physics: 53 GB physical free: 971,02 GB
    Free space warning percentage: 10%
    _______________________________________________________________________________

    Fixed it myself using "vvol" or "AUTOMAGIC help command. Here's a tutorial. Use at your own risk!

    SSH in equallogic array.

    [Enter the support mode]
    support

    [Show vvols on Bay Equallogic and check if the vvol that you are trying to delete is related]
    See the vvol
    Bound _ Information _ VVols
    _______________________________________________________________________________
    Name size Type container Description
    --------------- ---------- ----------- ---------- ------------
    04250816-50 ° c 6-4, 350GB vmdk-vvol XXXXXXXXX XXXXXXX-sna
    BBC-92f0-2869-p-2016-05-
    f95a41ad 08 - 20:53:3

    [Select the vvol]
    vvol select 04250816-50c6-4bbc-92f0-2869f95a41ad

    [Displays details of the selected vvol and locate the linked access policy]
    Show

    _ Information access policy
    Name: VSMAR-160408124414913 UUID:
    0-000000-000000000-0000000000000000

    [Untie the spectacle of the access policy that you are able to remove the object vvol]
    remove the access strategy VSMAR-160408124414913 link

    [go up one level]
    output

    [check if vvol is now independent]
    See the vvol

    Non-consolidated _ VVols _ Information
    _______________________________________________________________________________
    Name size Type container Description
    --------------- ---------- ----------- ---------- ------------
    04250816-50 ° c 6-4, 350GB vmdk-vvol XXXXXXXXXX XXXXXX_1-SNA
    BBC-92f0-2869-p-2016-05-
    f95a41ad 08 - 20:53:3

    [delete the orphaned vvol]
    vvol delete 04250816-50c6-4bbc-92f0-2869f95a41ad

    [May not be no need to go up one level]
    output

    [list of storage containers]
    show tank

    Name logical size physical pool size
    --------- ------------ --------- -------------
    Value by default 10 TB of XXXXXXXXX 1 TB

    [select the storage container that had the orphaned objects]
    storage container select XXXXXXXXXX

    [view detailed information and check that used physical Aggr: or used Physics: is now 0MB]
    Show

    Storage container _ Information
    name: XXXXXXXXXXX UUID:
    Description:
    Size logic: logical 10TB used: 0 MB
    Free logic: 10TB Aggr physical size: 1 TB
    Physical AGGR used: 0MB free physical Aggr: 1 TB
    VVols: 0 VVolSnapshots: 0
    VVolLinkedClones: 0 OnlineVVolsSnapshotsLinkedClones: 0
    _______________________________________________________________________________
    _ Information _ pool storage container
    Name of the cluster: the default physical size: 1 TB
    Used Physics: 0 MB free physical: 1 TB
    Free space warning percentage: 10%
    _______________________________________________________________________________

    You are now able to remove the storage container in the GUI.

  • Delete empty pages

    Hi experts,

    I would like to delete a document all empty pages.

    What is the best solution? By storythread or pageitems or something?

    A storythread can contain one or more empty page with same tagname

    Empty page = the current page contains only empty text or frame graphic and not contain static text.

    THX: Károly

    I don't think that there is a single integrated command to perform this task.

    What constitutes an empty page belongs to your logic.

    And you need to encapsulate this logic in a function to delete the pages.

    He must know that page elements belong to spread (or more specifically spread layer) and NOT to the page.

    If you have a story, it is likely you have a framework for this container.

    So, it would not be a bad idea (though according to your use case) to search for items on the page.

    So, you can delete a page if there is no element on a page, or even treat the elements of the page to determine cases like block of empty text, empty graphic block, guides, etc..

    Review for the implementation:

    -> Cover each Board in the document (ISpreadList)

    -> For each page of the spread and make ISpread::GetItemsOnPage

    -> IPageItemTypeUtils of use to determine what type of page element is a UIDRef.

    Page article can be a graphic image, group, text frame, text on path, guide, shape spline, etc..

  • How to delete items hidden around the visible area of PDF?

    is there a way to remove easily abject (images, text...) around the visible area of PDF? See here: http://screencast.com/t/TCUMZENn4Nj as you can see in the screenshot above, are not only the extra images (its different forms and sizes at random pages) using the space and make the file more big, its not either allow me to focus a "Draft" watermark when I try to place it in the middle of the visible area. I tried to use the 'Optimize PDF' feature and checked all the option "throw objects', 'Clean Up' and ' ignore data user" but who has not actually removed something around the visible area of PDF. Does anyone have ideas of how essentially from crop everything outside the visible page?


    EDIT:

    BTW, I know that there is an option I can unckeck and the watermark will be focused: "Keep position and size of the constant of the watermark text when printing on different page size", however, is not a good idea, because 1) in the definition of the opacity of the watermark less than 100%, black becomes opaque 2) objects around the visible area still take place and increase the size of the file.

    There is a fixed upstream - "Delete page objects that are completely out of the box trim" which should work, but isn't here. (Probably because the limit of some items that happens in headliner area)

  • Delete empty Pages does not

    Hello ,.

    I'm on W7 using FM11.

    My empty pages are not deletion themselves.

    I go to Page layout,

    Pagination,

    Select single-sided,

    The value in 1st Page: I select the right

    Forward, saving and printing: I select Remove page empty.

    He never removes pages remains however.  Is it because they have a Master Page assigned?

    Hello

    FM removes only empty pages if left or right masterpages are applied to this page.

    I don't know why this does not work in your case because you have assigned the correct page.

    A few weeks ago, I wrote a script that deletes all empty pages, even if the other masterpages are applied.

    So it should work in your case. If it is free, use it at your own risk.

    Check it out:

    http://www.practice-innovation.de/SWATFrameMaker.html

    (Sorry website is in German, see the bottom of the page click the download link in the STD column).

    (ISIF is the link if you have our installed InstalScriptInFolders plugin).

    Hope this helps

    Markus

  • Delete empty rows in the CSV using Xquery/XSLT file.

    Hello
    I have a CSV output file, where in it has empty lines at the end of the file, I want to delete these empty lines, can pls help on this point, that the way to delete these empty lines using Xquery/XSLT.


    sample file:

    20110706, O, Q, GGG, POT, LMM
    20110708, AAA, OPP, P, MAST
    20110715, BBB, TTT, O, TIN


    empty lines




    Thank you...

    Published by: user12679330 on July 27, 2011 12:29 AM

    Published by: user12679330 on July 27, 2011 12:32 AM

    Published by: user12679330 on July 27, 2011 12:32 AM

    I assume you are using a Proxy Service with text messaging and transport of type file or FTP to read the file and the same configuration to write the file.
    Then, you can use a simple snippet of XQuery in OSB assign or replace to remove extra blank lines:

    The editor page here is replaceing the escape characters carriage return and linefeed real CR and LF, so I described as a sample, you can replace the values in the XQuery when you use OSB,

    if (fn:contains(xs:string($body), 'CRLF'))
       then
          fn:replace (xs:string($body), 'CRLFCRLF', '')
    else
          fn:replace(xs:string($body), 'LFLF', '')
    

    In XQuery, replace CR Ð (also remove the space between & #xD and ;))
    and LF with (also remove the space between & #xA and ;))

  • HP7520: How to scan 2 pages with the automatic document feeder and save to a file?

    How can I scan 2 pages with the automatic document feeder and save to a file?  (Right now, it happens that 2 separate files)

    I have a HP7520, & again, I wish scan 2 pages into a single jpeg file.

    Thank you

    Well, in general JPEG format does not support several concept as a document page. Thus, each image in the JPEG file is saved in a single file. If you are considering of reduction of 2 images in 1 paper size (example: A4), you may need some image editor to do

    If you are looking for a mulit-page image format, TIFF can be a format suitable to use.

    https://en.Wikipedia.org/wiki/TIFF

  • How to delete a directory from the CMD box.

    How to delete a directory that is not visible in the "programs and features" Control Panel

    The directory is visible when using BACK in the CMD box but I get "System cannot find the specified file" when I try to erase the directory using (RMDIR).

    Run these programs in the following order until the computer is clean.
     
    Adwcleaner:
     
     
    (Note: If you use this program, uncheck the free trial during installation)
     
     
  • How to open a page in the APEX after I click on the "submit" button?

    Hi gurus,

    Here's my question (I'm new to APEX so please bear with me and provide details - I'm not new to programming, however). Ok. I have open application, a menu and the option of a menu I want to be a wizard to create an object (signature).

    Once this wizard is done (it contains 3 pages linked modeless dialog), the button "submit" I want:

    1 / all data is committed to the DB

    2 / all data to be loaded into a new page that contains the full record, which was completed in steps the wizard 3

    .. and I think that's all...

    I understand the page after sending else can't do anything, not even to be triggered if everything must be done before. So, I made a dynamic action on the button end like this:

    But I will not be opened in a new page but as part of the application (below you can see that opens in a new page):

    Can you guide me please? Something must be either very easy, I guess...

    This is the first question.

    Second question: how to fill this new page with the instructions I just submit - how can I find out the rowid of the folder has just presented. Or... is there an another way of modeling that? What I want to do is create a record in a database either by attending either directly. If I click on cancel I will go on the record in page 1 where I can see full fields, if I choose assistant and then once I'm done I want to see all the data even in Page1. Where I can possibly do some mod.

    Thank you!

    Gabriela

    (if it is not clear that I can show in a short owc internally)

    Point 1: Creating a new branch on the last page of the wizard, which will take place on the State of the button "FINISH" Give branch URL of page that you want to navigate.

    Point 2: You can save the primary key of the row and go to the parent page using the direction of the point 1.

    Probably if you can build an example on apex.oracle.com, we can help more.

Maybe you are looking for

  • browser Safari has changed

    It asked me to download the latest version of Adobe Flash Player and when I did my browser changed to Yahoo. I tried to reinstall Elcapitan but nothing has changed.

  • Need help with downloading driver WLAN for Satellite A100 (PSAA9)

    Hello! I should update the drivers for my Satellite A100 (PSAA9) according to the last email received by Toshiba. Check it HERE However, I am not sure they are the right ones for my Intel(r) PRO/Wireless 3945ABG. The download page includes not 3945AB

  • Control disabled but not grey

    Hello. Is it possible to do? Thank you Vasileios.

  • The 3.0 port usb

    Hi, can someone please help me find the usb 3.0 port since all are same in appearance. My product is R014tx 15 HP

  • After lollipop 5.0, I can't watch videos.

    I recently installed lollipop 5.0 and, for some reason, I just can't open the videos on YouTube and Facebook. I installed VLC and VMX and I still can't. I do not want to restart my Z2 to the tissue, only if there is no other choice. Any help would be