Obtaining the URL used to open the PDF

Hi,
My Acrobat PDF is to be opened within the browser using a URL that will differ with each testing region.
How do I obtain the URL that was used to open the PDF within the PDF javascript code?
Thanks for your help.

Look at the documentation for that method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.443.html
You'll see that there are security restrictions, so it normally cannot work if the code is inside the document. It also won't work for a dynamic XFA form, but might for a static form if you can get it to execute in a privileged context (e.g., folder-level code).
This also isn't something that you'd normally want to do at run-time. Can you explain why you want to do this? There might be other approaches that would be more appropriate for an XFA form, so consider posting this in the LiveCycle Designer forum as TSN urged.

Similar Messages

  • Possible to overwrite a pdf when in use or open a pdf without holding/locking the file for update

    Possible to overwrite a pdf when in use OR alternative open a pdf without holding/locking the file
    We frequently generate pdf files from our 3D program and would like to know if it's possible to either open a pdf file in a way that it doesn't get locked or hold up so the pdf can be updated even when opened or in use.
    Most programs e.g. ultra edit & notepad will let go the file when you opened and hence the file can be updated or over written even when in use.
    If any guru can help, would be highly appreciated

    Hi Abbas,
    It's not possible to overwrite a pdf when it is already in use by a different program or user. The file then opens up in Read Only mode.
    You can make a copy of the file and then apply those changes later in the original file. That's the only possible solution.
    Regards,
    Rahul

  • Which C# Adobe library should I use to open a PDF in Acrobat Reader 9, 10, and 11?

    Hi, all.
    I have a Visual Studio C# application that writes an Adobe PDF using iText. Does anyone know how to programmatically open the PDF on client's computer and ensure it works for Adobe Reader 9, 10, and 11?
    -I have Adobe Reader XI on my machine and "Adobe Pdf Reader" is NOT showing up in my COM references. This is the library that I've heard people use for this.
    -The "Adobe Reader File Preview Type Library" is showing up there, but does not add to my project because of the following error message: "A reference to 'Adobe Reader File Preview Type Library' could not be added. Could not register the ActiveX type library....adoberfp.dll'." But I haven't persued this further becuase I'm not even convinced I should be using this library, which brings me to my next point:
    -Please don't tell me to go read the Adobe SDK spec. In searching for this answer, I found posts on here with people asking this question and getting not great answers, or half-*** answers to go read the Adobe SDK spec. I have the Adobe SDK spec, it's terrible. The example source code is laughably poor and reads like it was written by someone with bad english, with poor naming, commenting, and documentation, and there is no separate document that explains what the source code does. I think the reason people say this is because they haven't read it themselves and they don't know the answer and hope to deal with the question by handwaving. Sorry for the rant if you weren't going to do that!
    Thanks in advance, if anyone knows.
    -Brandon

    It will be from a client-side application, and I will be reviewing this further and get back on it. At this time my assembly isn't the correct type of 32-bit, which may be a deal-breaker. But downgrading it to 32-bit, I wasn't able to find or include the appropriate library for AXAcroPDF.
    Just a word about my trying to read the SDK documentation. The documentation folder has 5 items, a folder called "Javascript", an html file caled "Acrobat_11_SDK_Help_Shortcut.html", a zip file called "...HTMLHelp.zip," pdf_reference.pdf, and U3DElements.pdf. I've never heard of U3DElements, so surely that isn't meant for me. The pdf_reference.pdf, when opened, has three PDF links to two supplements to ISO 32000-1 and a document titled Document management. These describe the PDF spec, so that's not for me. So I must have to use the HTML documentation shortcut. I open it, and my browser says the redirect URL can't be found. Ah, may be that stuff in the ZIP file it's referencing. After unzipping it, you have to move the file around so that it actually references the right index.html inside the unzipped folders, and then even after this it loads up as two blank frames in my browser. I will look into why the links are all dead, but holy lord, this is just not very helpful at all.
    Thanks for your help, Test Screen Name.

  • Selecting which version of Acrobat to use when opening a pdf

    I have a user who has Acrobat 5, 6, & 7 installed on his 10.3 system (don't ask me why - he just does).
    If you do a GetInfo on a .pdf document, Acrobat 5 is listed as the default (which is what he wants).
    However, if he uses Safari and clicks on a link to a .pdf document, it opens the document (in Safari) using Acrobat 7. He wants it to open the document external to Safari using Acrobat 5.
    How can he set this (there doesn't seem to be a setting to control it).?

    I did see another thread on how to disable the plugin:
    Trash the file /Library/Internet Plug-Ins/AdobePDFViewer.plugin and restart Safari.
    This did exactly what I was looking for.

  • On one site... FireFox always asks what application to use to open a pDF even with "Do this automatically..." select. How do I make it always use Adobe Reader for PDF files?

    When I click on a PDF file it always presents the "You have chosen to open ..." dialog box. Even though it knows it is a PDF file and should use the Adobe Reader. I've checked the Tools / Options ... Application section which is set correctly as well. I've tried setting it to other aps too. yet it always asks. How do I get around this?

    Hi meunchdl,
    You might want to take a look at the Knowledge Base article [[Preferences are not saved]]. There is some good information in there that might help you with your issue.

  • Opening multiple URLs using window.open in Safari 3

    Anyone know how to write javascript to open multiple URLs at once using Safari 3? Code like this worked fine in Safari 2, but when I upgraded to 10.4.11, Safari 3 now only opens the first URL when the javascript is run.
    window.open(url1);
    window.open(url2);
    window.open(url3);
    Thanks!
    BTW, I'm also using Saft (and had been using it before when this worked).

    If the Saft preference of "Always open browser window in tab" is unchecked, then Safari 3 will open each of the URLs in new Windows.
    I've written to the author of Saft about the issue and will follow-up here with more details when available.

  • How can I fix having to "save" before I can even open a PDF?

    I have Adobe Acrobat 9 Pro (9.5.5) and when a recent update came thru I am no longer able to simply click and view the PDF sent, but now am required to save it before viewing.  Is there any simple way to correct this back to the old way?  I don't want to save everything on my computer; just the items I need.  Thanks

    It sounds like an update to your e-mail (probably Outloook). You might consider trying a different e-mail client like Thunderbird. Another option might be to try a repair from the Help menu in Acrobat. There may also be a flag in your e-mail client for what application to use to open a PDF. Sometimes this is done based on the settings in MS Explorer. The latter can be checked by seeing if you can open a PDF by double clicking on it in Explorer.

  • Using the "highlight" parameter in an URL to open a PDF

    I have read the "PDF Open Parameters" document:
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    I am trying to use the "page" and "highlight" parameter in a URL (called from Flash) to open a PDF to a specific page and then draw a rectangular highlight on a specific area on that page. According to the above document, I should be able to do this by using the following URL:
    http://www.MySite.com/MyPdf.pdf#page=10&highlight=10,20,30,40
    This will open the PDF to the proper page (10) but I don't see any highlight. The "PDF Open Parameters" describes the usage of the "highlight" parameter as follows:
    highlight=lt,rt,top,btm "Highlights a specified rectangle on the displayed page. (Use the page command before this command.)
    The rectangle values are integers in a coordinate system where 0,0 represents the top left corner of the visible page, regardless of document rotation."
    It sounds to me that all I'm supposed to do is define the left (lt), right (rt), top and bottom (btm) boundaries of the rectangle by a single integer.
    But, why am I not seeing the highlight? Do I need to use co-ordinate X,Y sets? Are the integers I am supposed to be using pixels, or arbitrary units? If 0,0 is the top left corner of the page... what's the bottom right corner?

    Try this:
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=7&highlight=100,2 00,600,400
    (0,0) is the bottom left corner of the viewed PDF page.
    For an 8.5 x 11 page size; the x-axis ranges from 0 to 612 and the y-axis ranges from 0 to 792.
    (points -- 72 to an inch)
    In an AUC thread about placing an annotation to a specific location on a PDF page, Thom Parker wrote:
    "There are several coordinate systems used in Acrobat. 
    The info window uses a modifed version of Rotated User Space. 
    There's also device space, which is the OS's window coordinate system, it also starts at the top left.
    But for placing things onto a PDF page there are two main spaces "Default User Space" and Rotated user space. 
    Both put (0,0) at the bottom left corner, sort of."
    An article on PDF page geometry
    http://www.acrobatusers.com/tutorials/2007/10/auto_placement_annotations
    Be well...
    Message was edited by: CtDave
    Message was edited by: CtDave

  • Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.
    == URL of affected sites
    ==
    http://
    == Troubleshooting information
    ==
    Firefox Version
    3.6.3
    Extensions
    Name
    Version
    Enabled
    ID
    Skype extension for Firefox 2.2.0.70 false
    Java Console 6.0.01 false
    Java Console 6.0.02 true
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *Download and Print Plug-in DLL
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *Adobe PDF Plug-In For Firefox and Netscape

    Hi.
    Does this only open on that specific site?
    In any case, you may want to:
    - instruct Firefox to handle PDF files in a specific way by going into Tools > Options > Applications and selecting the option you want for the PDF files
    - reinstall Adobe Reader and its Firefox plugin
    - install another reader instead of Adobe Reader. I recommend Foxit Reader ( http://www.foxitsoftware.com/pdf/reader/ ), since it's free, VERY light, VERY fast, safe and also has a Firefox plugin (make sure you don't have both Adobe Reader plugin and Foxit Reader plugin enabled/installed at the same time in Firefox)

  • When opening a pdf in Firefox from a website, the navigation bar disappears. I would like to copy the URL path to send to staff.

    Using Acrobat Pro XI, Windows 7-64, Firefox 25. If I open a PDF from a website link in IE, the PDF opens and I can see the URL path where I can copy it and send to others. Opening the same link in Firefox does not show the URL path. I get the File, Edit menu but no URL.

    Is the PDF opening in a separate (popup) window? Sites can alter which bars appear on a popup window, but the address bar should always be visible (that's the default setting). Could you check and make sure that hasn't changed?
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''window_o''' and pause while the list is filtered
    (3) If the '''dom.disable_window_open_feature.<u>location</u>''' preference is bolded and "user set" to false, double-click it to switch it back to true so sites are disabled from hiding the location (address) bar on popup windows.

  • Why am I unable to select within the URL bar of a new tab after opening a .pdf file in Firefox 4?

    To repeat the problem:
    1.) Open a .pdf file in Firefox 4
    2.) Open a new tab by using the (+) tab button
    3.) Try to select within the URL bar (unsuccessful)
    I cannot seem to direct my browser to a new website in a new tab after viewing a .pdf file within the browser.

    Restore your default toolbar by going to Customize - Restore Default Set. I just found it out myself.

  • When I open a PDF in Firefox using the Acrobat plugin, it prevents me from entering text anywhere else in Firefox

    I like to have multiple tabs open in Firefox. If one of those tabs contains a PDF, I am unable to enter text anywhere else in Firefox, such as if I want to type a URL or use the Google search box. I have to close the PDF in order to be able to type again. Is there any way to fix this?

    Starting in Firefox 19, PDF files will display by default in a built-in viewer. This viewer does not yet support all of the features of the Adobe viewer, and may also have some bugs. Other than changing viewers, as described in the following article, I'm not sure what to suggest.
    [[How to disable the built-in PDF viewer and use another viewer]]

  • How to open the pdf document from KM  through Link to URL UI element

    Hi All,
    I have Link to URL UI element  in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.
    KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.
    Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .
    Thanks,
    Portaluser100

    Hi,
    If you set the link to your document in a Context attribute by using a relative path this should work just fine.
    Example:
    wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");
    Bind that attribute to the reference property of the LinkToURL element.
    Cheers,
    Leo

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • On a web page when I open a pdf file it says download on the window and then suddenly starts opening multiple firefox blank pages I cant stop it except by using force quit - help

    multiple blank firefox pages open one after the other, can't stop them. only solution is to use "force quit" I am on an iMac. Never had this until today. Has happened now 3 times! its scary/
    == This happened ==
    Just once or twice
    == I clicked to open a pdf file on a web page (i've done this many times before on this web page with no problem) ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

Maybe you are looking for

  • P95600 downloading RTF error

    Hello everybody, I has uploaded a RTF file via P95600. It is attached with the report definition in P95620. The objects were then deployed on PY900 to preview the BI Publisher report. But it is ending in FX - XML Publisher Error. I went on P95600 to

  • How toStore the Date Variable and pass it when the program runs next time??

    HI All, My JDBC program basically needs two command line args. Rabge_Start_Dt and Range_End_Dt. for ex: 2001-05-31 and 2001-06-01 . And my porgram should run every day. Next day the date range will be 2001-06-01 to some date. It means I have to store

  • Group on BBM keeps failing!!

    I just got my new 9360 about a week and a half ago, and on BBM I'm trying to start a group with just 2 other friends but it keeps deleting me, and then asking them if they want to re-invite me to my own group where I am admin! Then I thought third ti

  • User defined rule for missing triples

    Hi, i would like to know if there is a way to define a user defined rule for triples that are not contained in a model. With curly brace syntax it could be something like this: INSERT INTO mdsys.semr_validation_rb VALUES( 'test_rule', '{?s ?p ?o. OPT

  • Probelm in report while running in the background

    Hi all, Iam displaying around 20 fields in in report display. when i execute in the fore ground it is displaying all fields perfectly. but when i run it int he back ground and down load to Excel file its  displaying   5 fields only.(And these 20 fiel