Setting pdf place/open preferences

Hello, I am trying place all the pages from a multipage pdf into a new AI document. Since placing a pdf with script only lets you pace the first page, I was planning on having the place/open preference change to give access to the different pages but... its not quite working. I can get it to place just fine, but I can't get the preferences to set... as in I can still only place page 1. Another method, although not as nice would be to extract all the pages to a folder and then place them individually but I am trying to avoid it. Any one know how to properly set them? or any suggestions or even letting me know that I'll never get the preferences to stick would be helpful.
thanks
I am using:
mac cs5 and JavaScript.
javascript code:
var myDoc = app.documents.add();
//hopefully sets the default page open and place from 1 to 2
var pdfOptions = app.preferences.PDFFileOptions;
pdfOptions.pageToOpen = 2;
//lets user select a pdf for placing
function getFolder() {
return File.openDialog('Please select the file to be imported:')
function placeAll(selectedFile) {
         var myPlace = myDoc.placedItems.add();
         myPlace.file = selectedFile;
placeAll (getFolder());

hopefully sets the default page open and place from 1 to 2
I think you will find this app preference is for using with the 'open()' command only… and has no effect on the placedItems.add() command…

Similar Messages

  • How can I set pdfs to open in a new tab instead of prompting firefox to open them in Adobe itself?

    I use a website with many links to pdfs. In Windows XP (probably an older version of firefox) I could right click on the link to open a new tab, and the pdf would open in the new tab. In Windows 7 (and updated firefox) when I right click to open a new tab, a new blank tab opens and Adobe starts up displaying the document in a new Adobe window. How can I change the settings to have pdfs open within the new tab (without opening Adobe)?

    Tools -> Options -> Applications Tab
    Under Content Type find Adobe
    Under Action, Left click and select "Use Adobe Acrobat (in Firefox)"
    That should do it!

  • Setting PDF File Open Behavior?

    I know that I can set the Acrobat Page Display Preferences to display files the way I like to view them (e.g. Two Up, Zoom: Fit to Page).
    However, can I embed the page display behavior to open a file in a certain page view mode (possibly overriding user preferences)?  I have a double page spread that would look much better if it was opened in Two Up and zoomed to fit the page, and I'd like to make that the default file behavior.
    Thanks! 
    (Using Acrobat X Pro)

    Do this in the Initial View tab of the PDF's Document properties.
    Be well...

  • How to set file opening preference in OS 10.5

    I have around 1500 Census files which are JPEGS, and they opened nicely with Preview.  Today, I loaded most of iLife (iPhoto, iMovie, iDVD and iWeb).  Now, for some reason, every one of those files wants to be opened with Adobe Illustrator which is far from optimal for viewing them.  Preview is not even recognized now by the operating system as a means of opening JPEGS, and it refuses to open them even though it is open and running.
    Is it possible somewhere in the operating system to specify what piece of software has a preference to open a certain type of file?  All of those files which once has as their opening preference Preview have now been converted to Adobe Illustrator.
    Thanks for any suggestions.

    Kappy, that did not work.  I did a Google search on the subject and learned about an app called RCDefaultApp.  I downloaded that and placed it in my Library file as directed.  I then closed System Preferences and reopened it. The app showed up on the far left of the "Other" line of System Preferences.
    This let me set default apps for each "extension."  Sure enough, Illustrator was set to open jpeg, jpg, JPG, JPEG and PNG files.  I changed all of them to Preview.  Well, it still didn't work.  Even though Preview was open and actually allowing me to view one of these files, it would not let me open another one of them.
    About ready to tear my hair out, I decided if all else fails restart the computer.  That fixed the problem.  It appears the opening preferences got returned to their original values.  The files now open with Preview.
    Interestingly, when I started installing iLife, there was a warning that I would have to restart my computer when the software was loaded.  I omitted GarageBand which I don't need.  There was never any alert that the software was loaded and I should restart my computer.  So, I didn't.  Maybe some corruption crept in as a result.
    While at it, I also went into Finder preferences and checked the block under Advanced to show all extensions.  Quite a few of those census files had none, and they do now.
    Preview is working now and is opening all those files.  I also tried two small PNGs which I trashed because they would not open, and they work, too.  Happiness!!

  • How do I set Safari to open PDFs?

    Good day!
    How I can set Safari to open in Preview PDFs? that for some time and could no longer view them without having them to download. Thank them assistance to return back to normal my Mac mini

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Javascript to add "Specify Open Preference" dialog when linking with "Go to a page view"

    Hi, all!
    We're needing to file a brief with the Court.  Within our .pdf brief, we link to exhibits and transcripts.
    For the exhibits, we hyperlink using "open a file," because going to the first page of the exhibit is fine.  Here, after selecting our file, we're given the "Specify Open Preference" dialog, where you can either (a) go with the user's setting, (b) mandate opening the link in the same window or (c) mandate opening the link in a new window.  This is perfect -- we always want a new window.
    However, for the transcripts, we need it to go to a particular page, so we use "Go to a page view."  This works fine, except that it ALWAYS and ONLY goes with the user preference.  We want it to ALWAYS and ONLY open in a new window, so the Court can close the destination and be in the same place in the Source doc.  I realize they can set their preference or use "return to previous view," but we can't really communicate that.
    Is there a javascript -- or a plug-in we can purchase -- or anything -- that will somehow allow us to fix "Go to a page view" to open in a new window?
    Thank you so much for your thoughts and help!
    --ak

    After creating a "Go to page view" type link you can go back end edit it and specify how you want the other document to open:
    I realize this is a bit tedious, but that's how it's done.

  • I use adobe acrobat pro, why do existing pdf docs open in adobe reader?

    How can I set all pdf docs to always open in acrobat pro vs adobe reader?

    If you have both programs installed you can choose which one acts as the default by opening Preferences (in either of them) and on the General tab, click the "Set default PDF handler" button.

  • How get hyperlinks to PDFs to open in separate window?

    I have a very large Microsoft Word 2007 document containing lots of hyperlinks that I create a PDF from, that I must re-create from time to time due to editing changes. To save the trouble of re-entering all its hyperlinks (to other PDFs) every time I re-build the main PDF (with my resulting tendency to overlook some of them), I would like to embed them into Word ahead of time. The problem is, when I do so, the links in the resulting PDF always open in the main document, wiping out what was there.
    My main PDF contains instructions for how to install the Previous View button but the likelihood is many or most users will not notice them, with the result that when they go to one of the linked PDFs they have no way to return to the main document.
    Previously, I have been building these hyperlinks after the PDF is created, and as you know, that gives me the option to tell Acrobat that I want the linked PDF to open in its own window. Is there any way I can instruct the automatic PDF-building process from Word to do that instead of its default behavior of always opening them within the main document?
    I get the same result whether I build the PDF by loading the Word docx into Acrobat, or using the Create PDF button from within Word.
    Thanks for your help.
    Peyton
    P.S. One obvious solution would be to build links back to the main document from the smaller PDFs themselves, but that idea is completely out since it's too late for me to re-build all the smaller PDFs now. Aside from the deadline I'm working under, every one of them contains gobs of links to media files that must be re-added one by one, going through the whole set of Acrobat dialogs for choosing their parameters, which are always the same. So far all my requests to Adobe to add a default video media parameters capability have not led to this being done.

    Thanks so much for pointing me to the right place. As it turned out, the deadline I'm under to get this book ready meant I had to go ahead and insert the links to its external PDFs by hand for this version, although I plan to learn about javascript for future versions of the book, which will definitely occur.
    I used to be a web page programmer, so I'm quite familiar with javascript itself. Now what I mainly need will be to understand its object model in Acrobat, and the interface to it  from inside Acrobat.
    What I pray fervently for (but doubt I will find it there) is javascript code to set the parameters of all embedded videos, of which I have over 100, and must go through a laborious series of dialogs to set the parameters for each and every one individually! (or more likely, a function I could write that would be passed an identity code for each video clip in turn.)
    Peyton

  • Restrict pdf from opening in preview

    i'm creating a pdf that has all sorts of interactive elements. i would like to find a way which wouldn't allow the user to open the pdf in preview. apparently, the pdf shows a watermark (necessary for copy right, but should only show up when printed) and the user can't type in it. so it would be nice if people just wouldn't have the choice. is this possible?

    It's a user preference. They have to have PDF's set up to open in Reader or Acrobat.

  • Pdf files opening up way to large by default in adobe reader

    I am wondering if anyone has had the issue with pdf's opening up like 300% way to big by default? I have a customer who says that when ever he opens a pdf he can't even read it because it is toooo large. Any suggestions to help him work it out would be great. I told him it's probably a preference thing, but then why is it doing it by default then?

    If it happens to all PDFs, it probably is due to a preference setting: Edit > Preferences > Page Display > Default Layout and Zoom
    Note that there's another preference setting that comes into play as well: Edit > Preferences > Accessibility > Override Page Display > Always use Zoom Setting
    Documents can be set up with a default zoom setting as well, so that's another possible cause.

  • Linking: specify open preference

    When setting links in a pdf doc there are 3 steps. The third one opens a box called "specify open preference". I would like to default to the second option "new window" since I repeatedly select that option, but I've been unable to get the window to open with the radio button for "new window" preselected. Is there a way to do this?
    Thanks for any help.

    After creating a "Go to page view" type link you can go back end edit it and specify how you want the other document to open:
    I realize this is a bit tedious, but that's how it's done.

  • Disabling JavaScript when pdf is opened in browser

    Is it possible to disable AcroJS when the pdfs are opened in browser?
    The setting  "Enable JavaScript" in Preferences/JavaScript seems to disable JS only for pdfs opened natively.
    Thanks,
    Radu

    OK... I'm still puzzled. There seems to be something else that controls whether Acrobat JavaScript runs or not.
    If I'm loading a pdf stream though a http GET, JavaScript in Acrobat is run even when the setting in Edit->Preferences is disabled.
    <body>
        <iframe height=600 width=400 src = "http://<some servlet that returns a pdf stream>" />
    </body>
    If I'm loading the pdf from a file...
    <body>
        <iframe height=600 width=400 src = "<pdf file path>" />
    </body>
    ... the expected warning (that Adobe javascript is disabled) pops up
    The http response in the first case is something like...
    HTTP/1.1 200 OK
    Pragma: public
    Content-Type: application/pdf
    Content-Encoding: no-compress
    Content-Language: en-US
    Expires: 0
    Accept-Ranges: bytes
    Server: Microsoft-IIS/7.5
    X-UA-Compatible: IE=EmulateIE7
    Content-Disposition: inline;filename=<some UNC file path>
    Server: WebSphere Application Server/7.0
    X-Powered-By: ASP.NET
    Date: Tue, 17 Jun 2014 19:19:09 GMT
    Connection: close
    %PDF-1.6
    %����
    2 0 obj
    <</Metadata 36 0 R/Pages 3 0 R/OCProperties<</D<</RBGroups[]/ON[27 0 R]/Order 26 0 R>>/OCGs[27 0 R]>>/OpenAction 29 0 R/Type/Catalog/AA 31 0 R>>
    endobj
    Do you have any idea why this is happening?
    Thanks,
    Radu

  • A checked checkbox is rendered as unchecked in default pdf viewer of firefox. It is checked when the pdf is opened with adobe.

    I am using DynamicPDF to render a PDF. There are multiple check boxes which are checked. When the PDF is opened in Firefox, none of the check boxes are checked. However, when I save the PDF and open with Adobe, check boxes are checked. There might be a problem with the Firefox built in PDF viewer as the built in PDF viewer for other browsers work fine.

    Current Firefox versions have enabled a built-in PDF Viewer that doesn't have all features that other PDF readers like the Adobe Reader have or may not function properly otherwise.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use another application like the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu if you want to display PDF documents in Firefox with another application (i.e. not the built-in PDF Viewer).
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • All pdf files open up blank (gray)

    I have Adobe Acrobat Professional and all my pdf files open up grayed out (blank).  I can open my pdf files in other pdf readers but not in Adobe.  This is a problems because I need to merge files and can't do that on a pdf reader.  I must have messed up a setting somewhere.  Any suggestions?

    Try: Edit > Preferences > Page display > Show large images
    If the PDFs are from scans, having this setting deselected may be causing it.

  • I want Safari to download PDFs, not open them in the browser

    The subject line pretty much sums it up Whenever I try to download a PDF it opens it up in Safari instead.
    If I open Safari > Preferences > General I can see that the box for "+Open 'safe' files after downloading+" is checked. It also says "Save Downloaded Files to" - and "Downloads" is selected.
    Is there anything that I'm missing? In Firefox if I click on a link for a PDF file then it opens straight away. I've searched the archives on this forum and don't seem to be coming up with anything that works for me.
    Thanks for your help!

    Thanks
    Is there a way to have this set as the default? My brain is to weary to remember to do this every time

Maybe you are looking for

  • 7941 Phone Button template on CCM 4.2(3)

    Hello, Has anyone got an overflow error message when trying to ad the customized 7941 phone template on CCM 4.2(3) devpack 3.3? By default, the standard 7941 phone button template come with 1 Lone and one speed dial, but our environment here need a t

  • Creating sub groups in iFS...

    Please, let me in this... (1) Does iFS support the creation of sub groups underneath one group? For example,I am using the iFS Manager, and I want to create groups for that represent companies...Group A, B & C... Can I also create sub groups, Sales,

  • After updating my browser my "open a new tab" button has become useless, how do I fix this?

    I recently updated to Firefox 3.6.17 and now my "Open a new tab" + button has become useless, it is still there, it just doesn't work anymore, how can I fix this, any suggestions?

  • Downgrade iPhone iOS

    I use Dad's old MacMini OS 10.4.11 + iTunes 9 for my music etc I have an iPhone 3GS which worked just fine & syncs with the mac. Two days ago I needed to print some photos so plugged into Dad's PC (XP + iTunes 10) to print. Great news! Upgrade availa

  • Quick question (I think...Ihope)

    I'm trying to do something I thought was simple, but apparently it's not simple enough. I'm on linux and I'm trying to write files to the current user's /home directory? Anyone know how I can do this? I was looking into System.getProperties.. but I'm