How do I open to a specific page or destination in a pdf file using Buddy API Xtra?

Hello,
I'm working with a CD ROM catalog that utilizes the Buddy API Xtra to open PDF files when a link is clicked. The client would like to be able to open to a specific page within a pdf file.
I can open a pdf file using the Buddy API baOpenfile() function but I'm having trouble opening to a specific page when I add #page=4:
baOpenfile("@\pdfs\Powder Cores\Magnetics_Powder_Core_Catalog_2011.pdf#page=4","normal")
I've also tried working with the code below which seems to me like it should work... I didn't realize that the "open..." part of it was a function in Director.
on mouseUp me
  pageNum = 4
  theApp = baShortFileName(baFindApp("pdf"))
  theDoc = baShortFileName("@\pdfs\Powder Cores\Magnetics_Powder_Core_Catalog_2011.pdf")
  theArgs = "/s /A page=" & string(pageNum)   & "&pagemode=bookmarks"
  -- (translates to "/A page=4" in this example)
  open theApp && theArgs && theDoc
end
Thoughts?
Thank you in advance!

Thank you Dee! This works perfect!
It would be cool to know how to use bashell() for this.
The help files give the following examples:
Result = baShell( Operation, Filename, Args, WorkDir, State )
ok = baShell( "open", "c:\windows\notepad.exe", "myfile.txt" , "", "normal" )
ok = baShell( "edit", "myfile.htm" , "", "", "normal" )
So I tried:
on mouseUp me
  -- Close the program group
  tWindowList = baWindowList( "" , "pdf" , false )
  if tWindowList <> [] and count(tWindowList) > 0 then  baCloseWindow(tWindowList[1])
  pageNum = 4
  theApp = baFindApp("pdf")
  theDoc = _movie.path & "pdfs\Powder Cores\Magentics Powder Core Catalog.pdf"
  theArgs = "/A "&QUOTE&"page="&string(pageNum)&"=OpenActions"&QUOTE
  baShell( "open", theApp, theDoc , theArgs, "normal" )
end
It opens the pdf file without going to a specific page. Any thoughts as to why it wouldn't accept theArgs?
Thanks again!

Similar Messages

  • How Do I Avoid Losing Formatting When Pages documents Are Converted to PDF Files and Emailed?

    I put together a presentation piece with Pages, converted its 19 pages to pdf files, emailed the folder of pdf files to Staples for duplication, collation, and binding, and was disappointed to see some of my graphic frame formatting lost. 
    Can anyone please tell me how to avoid the loss in the future?  'Sure would appreciate it. 
    I was "raised" on Microsoft Publisher, then worked with Adobe Elements before switching to Mac.  For the most-part, I find Mac OSX 10.7.5 a joy to use, but it takes me quite a while to figure out how to bridge differences between PC and Mac applications.   Even though Mac applications tend to be straight forward, I loften find myself shaking my head and wondering how I could have been stumped so long by a little thing such as instant alpha.  I don't want to chalk up this difficulty in adapting  to old age, but could! (--Which translates:  Please be easy on the old lady!)  Thanking you in advance for such assistance as you might provide ...

    Upgrade to Mountain Lion OSX 10.8, much better than Lion.
    I take it you are talking about Pages '09?
    Your problem is probably with anything that has transparency eg fancy frames, 3D charts, shadows, reflections because Pages exports all these to too low 72dpi resolution in .pdfs.
    Prepping files for commercial print is always a concern and you need at least some Pro skills, but Apple has made life even harder with key missing settings and inferior presets.
    The subject of preparing for print is rather broad and detailed.
    You may find more comprehensive advice here:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Peter

  • How to print PDF files using java print API

    Hi,
    I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
    Thanks in advance

    Mike,
    Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
    My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
    boolean showPrintDialog=true;
    PrinterJob printJob = PrinterJob.getPrinterJob ();
    printJob.setJobName ("Contract.pdf");
    try {
    if (showPrintDialog) {
    if (printJob.printDialog()) {
    printJob.print();
    else
    printJob.print ();
    } catch (Exception PrintException) {
                   PrintException.printStackTrace();
    Thank you and a happy new year.
    Cheers,
    Chris

  • How do I bookmark to a specific page in a another document

    How do I bookmark to a specific page in another document

    When you add a bookmark, it defaults to the current page and view (zoom, scroll). If you want it to link to a location in a different document, after you create the bookmark, select it, right-click, and select Properties and then select the Actions tab. Delete the default action and add a new one of the type "Go to a page view". When you're prompted with the "Create Go to View" dialog, open the other document and go to the page and set the view (zoom, scroll) that you want, and then click the "Set Link" button. When distributing the files, make sure they retain the same folder structure. This is easiest done if all of the PDFs are in the same folder.

  • How can I open the EP login page in the same pop-up window?

    is it possible for me to using / only one window(Browser) pop-up to EP Page(Login or iView...).
    In the firs general html page I create a EP login page link action[eg. "window.open('url', 'target_name')"],
    but always launching new pop-up window(Browser).
    How can I open the EP login page in the only one window(pop-up)?
    Could anybody help me by giving suggestion and codding?
    Thanks,
    jin.

    Hi,
    if you want to redirect the root of portal system (http://portal/) to the login page, edit the
    file and change the body tag as follow:
    \usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root\index.html
    <body onload="location.replace('irj/portal' + document.location.search)"></body>

  • Web Link to Open to a Specific Page

    I have a pdf document that contains links to other pdf documents. This document is fully functional on our network. I am trying to transfer this set of documents to an on-line file management system. I have almost accomplished this goal with the exception of not being able to have the on-line links open to a specific page in a document. It is possible to do this on the network by going into link properties and adding the action, go to a page in another document. Then you can edit it to open to specific page, for example page 6. Is there a way to specify a page on the on-line file management system?
    Thanks!

    about.html??panel=1#Accordion1
    should be
    about.html?panel=1#Accordion1
    or can be
    about.html?panel=1
    var Accordion1=new Spry.Widget.Accordion("Accordion1", {useFixedPanelHeights:false});
    var Accordion1=new Spry.Widget.Accordion("Accordion1", {defaultPanel: params.panel ? params.panel: 0});
    Combining the above
    var Accordion1=new Spry.Widget.Accordion("Accordion1", {useFixedPanelHeights:false, defaultPanel: params.panel ? params.panel: 0});
    Gramps

  • How do I open a form specific to particular user?

    Hi All,
    Please answer below questions:
    1) How do I open a form specific to particular user?i.e I want to open a form as enterable mode for one user and non-enterable mode for another user.
    2) How do I run a report specific to the particular user? i.e I want to run a report for one user here other user can not see the report.
    Thanks in Advance,
    Dhana

    1) How do I open a form specific to particular user?i.e I want to open a form as enterable mode for one user and non-enterable mode for another user.Create a new responsibility, and set QUERY_ONLY=YES -- See old threads for similar discussion.
    QUERY_ONLY
    http://forums.oracle.com/forums/search.jspa?threadID=&q=QUERY_ONLY&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    2) How do I run a report specific to the particular user? i.e I want to run a report for one user here other user can not see the report.Through "Concurrent: Report Access Level" profile option.
    Concurrent Report Access Level [ID 736547.1]
    R12 View Concurrent Requests FAQ [ID 1261985.1]
    Can't View Request's Output Submitted By Others [ID 949703.1]
    How to View the Output of a Request Launched by Someone Else [ID 413382.1]
    Thanks,
    Hussein

  • How can I open Internet explorer only pages on a mac? The website that I need to access only permits internet explorer

    How can I open Internet explorer 'only' pages on a mac, without creating a drive partition and installing windows separately?
    I've tried winbottler, but it doesn't seem to serve my purpose. The web site that I'm trying to access only permits Internet explorer.

    Microsoft has not written IE for Mac for years so unless you want to create a parition and install Windows, or user a Windows emulator, you're out of luck for installing IE on a Mac.
    The web site that I'm trying to access
    There might be a work around for you since it's just the one site.
    Go to the Safari menu bar click Safari > Preferences then select the Advanced tab.
    Enable the Develop menu.
    Now click Develop from the Safari menu bar then click User Agent > IE 9, 8, or 7

  • How can i open period for specific user in OB52.

    Hi Expert,
    How can i open period for specific user in OB52.  As 'Authorisation Group' field is there in OB52, how can i use this field to restrict the specific user to post for particular period.  How can i creat authorisation group and where can i assign it to the particular user...
    Please let me know?
    Thanks and regards,
    Sam.

    Hi,
    Here is the detailed process as outlined in SAP help.
    Procedure
    If only a limited set of users is to be able to post in a particular posting period, proceed as follows:
    Add the posting period authorization (authorization object F_BKPF_BUP) to the authorizations of the selected users. Assign an authorization group (e.g. '0001').
    Enter the account type '+' for the posting period variant to which the restriction is to apply. Enter the period(s) whose use is to be restricted in the first period, those which are available to all users in the second period, and the authorization group (e.g. '0001') in the last column.
    Examples
    A posting period can be successively restricted. If, e.g. 10 users have the posting period authorization with authorization group '0001', and 3 of these 10 users also with authorization group '0002'.
    If the period is only to be accessible to the 10 selected users the authorization group '0001' is entered in the posting period variant. Access can later be restricted to the remaining 3 users by entering '0002'.
    Thanks
    Venkata Ganesh Perumalla

  • How can i open a new blank page, if i open a new tab??

    how can i open a new blank page, if i open a new tab?? because if i click the plus "+" sign(at right corner) it open a website that i don't like.... please help meee....

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • How do I change a document that I have saved as a PDF file in Documents? I can get it to OPEN but can't do anything to it.

    How do I change a document that I have saved as a PDF file in Documents........I can open it but can't do anything with it.

    A PDF is really an electronic print of your document & is not intended for future editing. You should always save a copy of the original document in the program that created it & use that for edits. You can then export or print the revised document to PDF, again saving the original.

  • How do I force safari to open pdf files using Adobe???

    How do I force safari to open pdf files using Adobe and not in the browser?

    You need Acrobat Reader as a Safari plug in.
    http://get.adobe.com/reader/

  • How can I download content of wiki pages from Office 365 online Sharepoint site using c#?

    How can I download content of wiki pages from Office 365 online Sharepoint site using c#?
    Ratnesh[MSFT]

    Hi,
    According to your post, my understanding is that you want to download content of wiki pages on SharePoint Online.
    If just for getting the text of the page, I suggest you convert page to PDF file first and then download the PDF file via a Visual Web Part as a Sandboxed solution.
    A sample about export HTML to PDF:
    http://hamang.net/2008/08/14/html-to-pdf-in-net/
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How to scan more pages into one PDF file using hP inkjet 2515

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

Maybe you are looking for