Delete blank page with javascript

Hi,
I have some pages in a Indesign CS3 document and want to delete few pages which are blank page(nothing text frame, graphic) with javascript. Anyone can help?
Thanks,
MatthewChau

var doc=app.documents[0];
var pag=doc.pages;
for(var i=pag.length-1; i>=0; i--){
    if(pag[i].pageItems.length==0&&pag[i].guides.length==0){
        pag[i].remove();
if page items and guides are not exist, pages will be deleted.
more difficult matter?

Similar Messages

  • When I open pages it scrolls through various numbers of blank pages with a line at the side, then stops at a document, but usually an old document. I have to  go to "open recent" to get on the page I want.

    Hi
    When I open Pages it scrolls through numerouss blank pages with a line at the side 1st, then settles on an old saved pages document.I then have to go to "open recent" to select the one I want. Why?

    No
    It's the 1st version of Pages I've had on my computer.
    Can't delete them as they scroll through them at a rapid pace. The longer I've had the problem the more blank pages it scrolls through.

  • How to delete blank pages in pdf

    How do you delete blank pages in a PDF?

    Do note that you cannot delete pages in a PDF with the free Adobe Reader.
    Be well...

  • I have Adobe Reader XI. Is there a way that I can fix skewed pdfs and delete blank pages? If so, How?

    I have Adobe Reader XI. Is there a way that I can fix skewed pdfs and delete blank pages? If so, How?

    Not possible with Adobe Reader.

  • My mail, which used to work, comes up with a blank page, with no escape.i no longer connects to to the internet as it once did.

    My email, which used to work, now comes up with a blank page, with no escape.

    Wayne-
    Can you get back to the home page?  If so, double click on the Home button and a row of recent Apps will line up along the bottom of the screen.  Scroll across and look for the Mail icon.  Press and hold on it until it starts to wiggle.  A red minus sign should appear on each icon.  Press the minus sign on the Mail App to remove it from the list of recent Apps.  This will stop it from running in the background.
    If you can not get back to the home page, try to reboot the iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad should restart in a couple of minutes.
    Fred

  • With brand new iphone 4s when plugging into computer itunes shows a blank page with an apple logo in top left and a small lock in the top right. right clicking iphone under devices shows only eject.

    with brand new iphone 4s when plugging into computer itunes shows a blank page with an apple logo in top left and a small lock in the top right. right clicking iphone under devices shows only eject.

    Having same issue here:
    https://discussions.apple.com/message/19043181#19043181

  • HP LaserJet 4200 Printer outputting blank page (with creases) before printing

    HP LaserJet 4200 Printer
    Keeps outputting a blank page, with creases in the paper (about the middle of page), before it prints the intended page.
    This happens at random, but quite often. We have been using this printer for years without any issues. This has been happening for about the last few weeks. 

    Hi have the same problem with my HP LJ4200.
    The problem is intermitent , blank page with with creases before the document
    Have you found a solution ?
    thanks !

  • Trying to upgrade a MacBook Pro to snow leopard 10.6.3 and all I get after the upgrade is done is the a blank page with the apple trade mark. I did restart the computer few times and all the same

    Trying to upgrade a MacBook Pro to snow leopard 10.6.3 and all I after the upgrade is done I just get a blank page withe apple symbol. I've rebooted the computer and nothing happens

    Upgrading from which Mac OS X?
    Is this v10.6.3 a retail disc?
    You can purchase Snow Leopard from the Apple online store > Mac OS X 10.6 Snow Leopard - Apple Store

  • Blank Page with button

    I need to create a blank page with a button. When the button is pressed a process is run.
    I created a blank page, can create a process, but does not allow creation of a button.
    Any ideas.
    Thanks

    Hi!
    I wonder if you have created a region on your blank page? Without a region you can't create a button. You may use a template for your region without title and border so your regions is invisible for the user.
    Hope that helps!
    Yours sincerely

  • Blank page with quick reply on all mybb forums, the same thing was with Fire fox 3.0.1?

    blank page with quick reply on all mybb forums, the same thing was with Fire fox 3.0.1?
    == URL of affected sites ==
    http://world.alnel.com

    I know we already had this feature, but it was through a modification, not an official feature. It is now an official feature and it is implemented quite well in my opinion. Also new - you can now modify the title/subject of threads that you posted right from the forum display - just click and hold on the link to the thread, and it'll change to a textbox. Then just click out of the box or hit enter to save!
    [url=http://www.micrositez.co.uk/link-building-packages.html] Link Building[/url]|[url=http://www.micrositez.co.uk/link-building-packages.html] Link Building Services[/url]

  • All of a sudden I can't print anything on my macbook.  I am directly connected to a printer where i had printed before now if I hit print it just gives me blank pages with websites header? any ideas what went wrong?

    I just started having issues printing with my macbook when before I had no problem.  same printer, nothing has changed. when I try to print it just prints me blank pages with internet headers even WHEN i am not printing off the internet, simply pdf documents.  any idea what I am doing wrong or what changed?

    Hi evelia,
    Welcome to the Support Communities!
    The first thing I would suggest is to shut down your computer and turn off your printer.  Then do the reverse -- turn the printer on first, then your computer.  If the issue still persists:
    Check to make sure there are no jobs waiting to be printed. (Apple Menu > System Preferences > Printers & Scanners)
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    If all else fails, reset the printing system and install the printer again:
    OS X Mavericks: Reset the printing system
    http://support.apple.com/kb/PH14141
    I hope this information helps ....
    - Judy

  • Cannot open photos in IPHOTO.  Only get a blank page with turned down corners.

    Cannot open photos.  Appearing only are blank pages with turned up corners.

    These are your options:
    1. Restore the iPhoto library from the most recent backup that predates the issue.
    2. Repair or rebuild the library.
    3. Scavenge the library with a third-party application called "iPhoto Library Manager," which you can find in a web search. From the application's menu bar (not the iPhoto menu bar), select
    Library ▹ Rebuild
    Books, calendars, and slideshows won't be preserved.

  • Photo Book: Alert Symbol/Deleting Blank Pages?

    Greetings,
    Two questions:
    (I'm assembling a photo book for the first time...)
    1. What does it mean when there's a small yellow alert symbol (a yellow triangle) in the upper right corner of my image?
    2. How do I delete blank pages from the end of my photo book? I've created too many...
    Thanks!
    -Mark

    It means your photo is below 180 dpi
    LN
    PS you may find a couple of things useful
    1 - iPhoto have a neat system called HELP - click on the HELP menu and ask your question
    The reaults for "Yellow Triangle" includes the following
    If you see a low-resolution alert
    A digital photo is made up of millions of individual dots of color, called “pixels.” A photo’s “resolution” is the number of dots per inch (dpi) that it contains. The higher the resolution, the more dots per inch. Some photos look jagged or blurry when printed if their resolution is too low.
    When you include low-resolution photos in a book, calendar, card, or print order, an alert symbol marks those photos.
    To improve a photo’s print quality:
    Choose a smaller print size. In a book or calendar layout, you can do this by increasing the number of photos per page.
    If you previously cropped the photo, revert to its original version, and then crop off a smaller portion, or leave it uncropped.
    If you positioned a photo within its frame by zooming in on it, zoom out of the photo.
    If you continue to see a low-resolution alert after trying these methods, you can still order prints of the image or include it in your book, calendar, or card, but it may not print as clearly as your other photos.
    Related Topics
    Cropping photos
    Zooming in and out of a photo
    Changing the design of individual pages in a book
    Reverting to the original version of a photo
    Was this page helpful? Send feedback.
    2 - there are some great tutorials that will make your life much simpler and improve your understanding of iPhoto (and other Apple products)
    http://www.apple.com/findouthow/photos/#books

  • Error code: sec_error_untrusted_issuer, after i add the exception, get the certificate i get a blank page with big letters NOT FOUND.

    www.google.com uses an invalid security certificate.
    The certificate is not trusted because it is self-signed.
    The certificate is only valid for 78-159-121-201.local
    (Error code: sec_error_untrusted_issuer)
    After i add an exception for the site, i get this:
    Certificate Status:
    This site attempts to identif itself with invalid information.
    Wrong site:
    Certificate belongs to a diffrent site, which could indicate an identity theft.
    Unknown Identity
    Certificate is not trusted, because it hasn't been verified by a recognized authority.
    And then a blank page with big letters "Not Found"
    == URL of affected sites ==
    http://google.com , www.youtube.com , www.omegle.com , www.lockerz.com

    Do NOT add a security exception: someone is tampering with your internet connection!
    When you ask to connect to these sites using https, Firefox gets a certificate from the website which responds. Anyone can make a certificate, but to be valid the certificate must be signed by an organization which Firefox trusts.
    The person responding provided a certificate with its response which which was not signed by anybody, so Firefox doesn't know who sent the response, and neither do you.
    In short: you asked to talk to google and google did NOT send the response.
    As this is happening for several different websites, the attacker is probably on the network between your computer and the internet. Ask the people you get your internet connection for help: they may have had their computers hacked, may discover that the problem exists further along in the network, or they may even be responsible themselves.

  • I can't print web pages or emails. All I get is a blank page with nothing but the headed tag at top.

    I can't print my emails. Tried to get help from my email provider. They asked if I could print pages. I tried and found out that didn't work either. All I get is a blank page with the header tag at the top.

    Hi,
    Please see [http://kb.mozillazine.org/Problems_printing_web_pages this]. If the web page has a Print button/icon you can try to use that. You can also try right-clicking on the relevant section of the page > '''This Frame''' > '''Print Frame'''.
    [https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox?e=sph&redirectlocale=en-US&as=s&s=printing&r=0&redirectslug=Firefox+prints+incorrectly Fix printing problems]

Maybe you are looking for

  • How to save a file in client system?

    I have a requiremnet like this: "When the user selects a file from his local drive (say c:\), I have to upload the file to a LAN connected to his machine." I have written the TestUpload class like below. It will work if my server is on the same machi

  • Mac Mini Crashes and unable to install OS X

    I have a Mac mini (late 2009) with osx 10.6.  A few days ago it crashed and I got the screen of death.  So I rebooted and it worked for around 15 minutes crashed again. Then I got it to boot up again, I checked and repaired my permissions. It crashed

  • How can I enlarge text on a copy.

    On an HP Officejet 6500A Plus - how do I enlarge a copy?

  • Transferring song from iTunes to GarageBand

    How do you transfer a purchased song into the GarageBand application?

  • Getting Inbound deliveries

    Hello All, I need to develop a selection screen with following as parameters: •  shipping point •  shipment type •  GI date •  outbound delivery number •  purchase order number   •  delivery type And then I need to display all such outbound deliverie