PageToOpen for opening PDF not working

Hi there
I’m trying to create a looping function that will open each page in a multi-page PDF, do some things, then save and close the document. However, the pageToOpen property of the PDFFileOptions object seems to be having no effect—I am prompted to select a page each time.
Here is my code so far:
var fileRef = File.openDialog('Please select the file to be imported:');
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
for(i = 0; i < 10; i++){
    pdfOptions.pageToOpen = i + 1;
    if (fileRef != null) {
        var myDoc = open(fileRef, DocumentColorSpace.RGB);
I’m using Illustrator CS4 on Windows 7.
I’d appreciate any insights.

var uIL = userInteractionLevel;      
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
// Rest of your script goes between…
app.userInteractionLevel = uIL;
Carlos… script is here…
http://forums.adobe.com/thread/946055

Similar Messages

  • Links to open PDF not working in WebHelp RH TCS3

    In my FM files I want to create links to open a pdf file (ideally at named destinations, but that seems a distant dream )
    In RoboHelp I have included the PDF in my baggage folder (in it's own folder, called PDF)
    My Go to URL link in FM is: message URL PDF/ICM_User_Manual.pdf
    The link seems ok as far as the view source for the .htm file is concerned
    The help is being served from a folder on a Tomcat web server, if that makes any difference.
    However, the link does not display as a hyperlink (no hand is displayed). I've tried all kind of things to make it work, but to no avail.
    Having searched the forums, I haven't come across a definitive answer as to:
    A. Whether this actually works in a linked project.
    B. If it does work, what the correct syntax is in FM to persuade the link inn RH to do as it should?
    Mark

    Hi Mark,
    Compare the link in the RH file with the location of the PDF baggage file. Modify the FM marker to reflect that path.
    One note:
    Per Rick (I think) you should disable the Mark of the Web in order to see a working link in the generated SSL. This doesn't impact the published file (and in any case it would work in the published project) but with MOTW on, you will experience a dead link when previewing the project.
    -Matt

  • Some PDFs not working in Preview. Mac created PDFS work but windows created PDFS dont

    Some PDFs not working in Preview. I installed adobe reader and then deleted it because the software was aweful and PDFs have been haveing issues ever since. I can open up PDFs created on my Mac in preview just fine...
    But when I try and open a PDF created on a windows computer it says:
    "Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/products/acrobat/readstep2.html.
    For more assistance with Adobe Reader visit http://www.adobe.com/support/products/ acrreader.html.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. "
    I am not sure why where the PDF was created would make a difference but couldnt help but notice that was the difference between the PDF files that work and the ones that give that message. I can view the PDFs on a windows computer just fine and never had issues untill adobe, it seems to have messed up PDFs on my Mac and I am so frustrated with them. I have searched my computer for any remaining adobe files, deleted them and restarted my computer but I am still getting this message.

    Uninstall Adobe Reader's plug-in.
    Remove the following two files from  /Library/Internet Plug-Ins/:
    AdobePDFViewer.plugin
    AdobePDFViewerNPAPI.plugin
    Open Safari Preferences > Extensions. Do you see AdobePDFViewer? If yes. disable.
    Log out/in and test.
    Another option is to download and install this plugin. Schubert|it PDF Browser Plugin . PDF Browser Plugin 2 is free for not-for-profit activities if used at home or at educational institutions.
    http://www.schubert-it.com/pluginpdf/

  • Why is exporting to PDF not working?

    Why is exporting to PDF not working?

    Dear Claudio,
    I know it wasn't much to go on but I got your attention!
    I work for a charity and use a program called "Donor Perfect".
    It has a feature that when you generate a report it gives you the option to export to MSWord, Excel, and PDF.
    Below is the step by step description of what happens.
     After log on ......
         1. Click on Reports
         2. Listings
         3. Report Category(any)
         4. Select Record type(any)
         5. Select report options (any selection filter that fits or Build a filter) and sort order(any)
         6. Enter title (accordingly)
         7. Click on Preview
         8. When next screen opens with report visible - in "Report Print preview" line above report choose PDF icon
         9. Export to PDF window opens
         10. click on Page range-ALL
         11. What to print-All pages in Range
         12. Save as C:\DPW32\dpsumm.pdf
         13. collate
         14. number of copies(1)
         15. Click on "Screen" 
         16. Click on "Display Conversion Status"
         17. Then "OK"
         18. After conversion status reaches "100%" nothing happens -screen does not change!
    Then I minimize DP screen and I go to Start menu 
         1. Click on Start
         2. Then "My Computer"
         3. Local Disk "C"
         4. Dpw32
         5. Look for "dpsumm" file with today's date
         6. Size of file says 0 KB and that's it!!!!
    In previous versions of DP (8 and 9)
    the PDF would open on the screen as soon as the Step 18 was finished, then I could save it with an identifying name to a different folder and use it as an attachment that a Donor could receive by e-mail.
    I hope I can get back to that because now I have to convert to "Word" (Which takes a long time)then from that I have to create PDF from Acrobat. too many steps ..... if I have 20-30 reports it's too cumbersome.
    Waiting for your suggestions,

  • Adobe PDF not working in N95

    in my nokia N95 i m not able to open pdf files last 20 days i think adobe PDF not working properly i want to repair it but how i donn know? can anybody help me to get rid of this prob

    I do not think that PDF Maker has been updated for IE9 yet. IE9 is a recent release and Adobe does not generally work on the final software until the release. They also have to be sure it still works with other products. In the meantime, try just printing to the Adobe PDF printer or opening the URL in Acrobat directly.

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • Reflow in Adobe Reader for Android does not work

    The reflow option in my Adobe reader for Android does not work. The PDF book I am trying to read is too wide to be legible when I fit it into the screen (even in landscape), but the reflow button doesn't change that. When I click it, nothing happens. The only thing I know to do is to uninstall and re-install, but that did not work. Any other tips or ideas?

    Mehwish,
    Thank you so much for responding, and so quickly. I appreciate it.
    It does not appear as though the PDF I am trying to read would have an element in it that would block it from reflow, but that is always possible. It’s a textbook, and I understand that toward the end of the book there are some charts and diagrams, but I haven’t gotten to those chapters yet. So far, I’ve just been trying to use the Adobe Reader to read the introduction and first chapter and nothing I have done has made it reflow.
    I’m enclosing a copy of the entire book. Perhaps you can uncover something in it that I didn’t see.
    Thanks again for you help.
    Stan
    Dr. Stan G. Duncan
    123 Sumner St.
    Quincy, Massachusetts 02169
    617-855-7539 (hm)
    781-504-6875 (cell)
    215-647-7583 (fax)
    508-295-1630 (Ch)
    <mailto:[email protected]> [email protected]
    <http://homebynow.blogspot.com/> http://homebynow.blogspot.com
    <http://www.huffingtonpost.com/stan-duncan> http://www.huffingtonpost.com/stan-duncan

  • CS4 "Save as Adobe PDF" not working in Mountain Lion

    CS4 Save as Adobe PDF not working in Mountain Lion
    Just bought a new Mac with mountain lion, installed CS4 design premium twice trying to fix this. When you go to "print" then "Save as Adobe PDF" the process fails with a pop-up saying "An error occurred while saving the PDF file". I can still do the standard "Save as PDF" - but that usually results in a file size 10x larger than Save as Adobe PDF so it won't work for me; I need the small file sizes of Save as Adobe PDF.
    When I go to Help > Repair Acrobat Installation it seems to be recognizing a repair needed with Adobe PDF Printer (see screenshot below); but when I go through the repair nothing changes it still won't work.
    Any help is much appreciated!

    "Save As Adobe PDF" works fine in Snow Leopard.
    Thanks for the link, but this is no help - I already have "Save As Adobe PDF" on the menu - the problem is when I click that it errors out...
    I just think its sad that Adobe charges people $2000 and provides zero support for future updates; when I buy an iMac for half that amount of money or an iPhone I get operating system support and bug fix downloads to deal with the latest internet advances for years to come - but Adobe apparently takes your money and says sayonara! Is it really that hard to provide updates on $2000 worth of software for say 24 months??

  • F4 help for 0MAT_SALES is not working in BI 7

    Hi Gurus,
    The F4 help for 0MAT_SALES is not working when distibution channel is selected as (!=02) in Bex Analyzer. But for all other values for distibution channel  i am getting values in F4 help.
    Since 02 is excluded it is supposed to give values for all other combination. but it not so.
    Could anyone of you please help me on this?
    Thanks in advance.

    Closing Thread

  • Short key for copy does not work all the time now.

    After I have installed the latest OSX - Yosemite, my short key for copy does not work all the time.  It is infrequent how it works. I'm using the same keyboard that I have always used, my wireless logitech keyboard for mac.  Please help.

    I've plugged in my default mac keyboard and the short key copy still does not work.

  • I have an iMac with OS Lion. The Smartart feature for Office for Mac will not work when I am logged on to my personal user account. It works with other user accounts on the same computer, and it works after "safe start". How can I fix the problem?

    The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?

    You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed. The serial # for 13 does not work. Any thoughts on how I can get a number for PSE 12?

    I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed 12.
    The serial # for 13 does not work. Any thoughts on how I can get a serial number for PSE 12?

    Hi
    There is a newer version of Resolution+ Plug-in released for an Qosmio X series
    [Resolution+ Plug-in v 1.1.2004|http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=381&selSeries=231&selProduct=7506&sel ShortMod=null&language=13&selOS=all&selType=400&ye arupload=&monthupload=&dayupload=&useDate=null&mod e=allMachines&search=&action=search&macId=&country =all&selectedLanguage=13&type=400&page=1&ID=82406& OSID=30&driverLanguage=42]
    try it out...
    If it has not been installed properly, try rebooting your computer and reverify.

  • My itnues for pc is not working :( it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    Please helppppp

  • Hi pls help me my iphone is forest i update but  after my iphone is  devices open is not working i click but sim card installed , attempting to activate this one coming pls help me answer me

    hi pls help me my iphone is forest i update but  after my iphone is  devices open is not working i click but sim card installed , attempting to activate this one coming pls help me answer me

    Sounds like your phone was hacked to use with your carrier.  Updating it has relocked the phone to it's original carrier.  You will not get the phone working again without a SIM from the original carrier.

Maybe you are looking for

  • ITune will not open!

    iTunes would not open, so I followed the information on this board and uninstalled iTunes, Quicktime, Apple Software updates, Apple mobile Device Support, Bonjour, Apple Applications support and all folders, then reinstalled iTunes. It's seems to be

  • No inspection lot create in PM

    Dear PM Grue I am trying to create Inspection lot. I did all efforts but I am unable to create it. I assigned task list with order along with notification. Maintained 300 for inspection point for inspection Characteristic along with sampling. Also in

  • Putting two and two together....how do I do this?  Table Layout...

    A friend pointed out that sometimes layout is easier by creating tables.  So I have started created a website entirely with tables.  This seems more logical to me, but now I am stuck.... http://test.taffyproductions.com/  See that great background un

  • SQL Server 2012 Management Studio

    I need to install SQL Server 2012 Management Studio. Where can I find the link to install the program?

  • PDF export, lost when i did a system restore, how do I go about reloading from ADOBE website?

    I paid for program and downloaded 3 months ago from adobe website.  I have a PC  not Mac.  I had to do system restore and it erased the program.  How do I go about downloading the program I aid for again? any suggestions? jeremy