Relative links to pdf's

Hi guys
I've created a project www.officey.co.uk which works great online but i need to put this on a CD for users with no internet access. I've opened up the fxp in flash Builder and added the pdf folder to "assets"
I then changed all links to the pdf's from
navigateToURL( new URLRequest( encodeURI(" "http://www.officey.co.uk/assets/pdf/companypresentation.pdf")), "_self");
navigateToURL( new URLRequest( encodeURI("assets/pdf/companypresentation.pdf")), "_self");
When I run the project, they are still opening up from the http location.
Any ideas?

If any programmer out there is willing to look at this project it would be appreciated...thanks

Similar Messages

  • Preview seems having problem with relative link with PDF documents

    Hello,
    I have a PDF file which I've added relative hyperlinks to it (to an html file). I did it with Adobe Acrobat 7.0 (for Windows). I have a link which is a custom action: Open a web link. The link is defined as "../presentation/referencesechelon8.html". I need relative link because the entire web site can be deployed on a DVD instead of on a Web server.
    On Windows with Firefox or IE everything is working flawlessly. On the Mac side, it's working with Safari since it's using Adobe Reader to read the PDF. However, with other browsers using Mac built-in PDF viewer, Preview 3, it is not working at all. In the pdf document Preview 3 is unable to reconstruct the original url from the relative link. Instead it points to http://../presentation/referencesechelon8.html which is not correct.
    Does anyone have an idea? I've googled a lot and did not find anything. My next try will be to use a Javascript to reconstruct the url.
    Thank you in advance!
    Macbook 13"   Mac OS X (10.4.9)   2 Go RAM

    Hello,
    I have a PDF file which I've added relative hyperlinks to it (to an html file). I did it with Adobe Acrobat 7.0 (for Windows). I have a link which is a custom action: Open a web link. The link is defined as "../presentation/referencesechelon8.html". I need relative link because the entire web site can be deployed on a DVD instead of on a Web server.
    On Windows with Firefox or IE everything is working flawlessly. On the Mac side, it's working with Safari since it's using Adobe Reader to read the PDF. However, with other browsers using Mac built-in PDF viewer, Preview 3, it is not working at all. In the pdf document Preview 3 is unable to reconstruct the original url from the relative link. Instead it points to http://../presentation/referencesechelon8.html which is not correct.
    Does anyone have an idea? I've googled a lot and did not find anything. My next try will be to use a Javascript to reconstruct the url.
    Thank you in advance!
    Macbook 13"   Mac OS X (10.4.9)   2 Go RAM

  • Opening a pdf file in a relative link / local

    Maybe this sounds simple.
    But I get used to AS2 code to open  a pdf file like the code below:
    getURL("pdfDocuments/pdfname.pdf","_blank")
    As I search uncle Google I'm stuck to this as equivalent to getURL in AS2.
    btn.addEventListener(MouseEvent.CLICK, btnClick);
    function btnClick(e:MouseEvent):void {
              navigateToURL( new URLRequest("pdfDocuments/pdfname.pdf"), "_blank");
    But still it did'nt work.
    Before in AS2 getURL working on mailto, pdf on a relative link and a typical url's.
    But as to AS3 navigateToURL function only works on mailto and typical url.
    Any tweaks to the code above, to get it to work? will much appreciated.
    Thanks,

    There's numerous examples if you google "call javascript from actionscript".
    Here's 1 that sums it up pretty simply, just import flash.external.ExternalInterface; then use it statically via its call() method to call javascript. Then in the javascript simply do what you want.
    http://www.hardcode.nl/archives_155/article_334-call-javascript-function-from-as3-and-vice versa.htm
    e.g. ACTIONSCRIPT:
    import flash.external.ExternalInterface;  // call javascript function passing to load relative URL "pdfs/some.pdf"ExternalInterface.call("loadPDF","pdfs/some.pdf");
    e.g. HTML
    <html><head><script type="text/javascript">// <!-- // function with the called namefunction loadPDF(pdfName){     // open a new window (or tab) to the PDF requested from AS     window.open(pdfName,"_blank"); } // --></script><body> </body></html>
    Nothing really much to it.
    Here's a reference to window.open() if you want to customize the opened window:
    http://www.w3schools.com/jsref/met_win_open.asp

  • How do I make relative link in a pdf

    How can I make a relative link in a pdf file, so that I can put the pdf file and the files on a usb memory stick and send it out to our costumers. I use Acrobat XI Pro. I can´t possibly be the only person with that problem, so please, somebody help me with a solution.

    Thank you for your answer, but I have already tried that, I did all the work with links in the pdf to jpg´s in a folder (and there are a lot of links), and put it all on a usb memory stick, gave it to one of our costumers for testing and it didn´t work, it keeps referring to our server. I had a similar project in Excell, where I had to link the text in Excell to a product related file, after that I put it on a memory stick, and that worked without any problems, but off course Excell is a whole other world. I just think that it shouldn´t be so complicated in Acrobat, so I´m hoping you have a different solution ;-)

  • Force PDF to open in browser to preserve relative links?

    We have thousands of PDF files that are set up to include relative links within the document to other PDF files. The issue we're having is that when people have set up their browser to open the PDF as a separate application, the relative links revert to their C drive/temporary internet files and break (the link looks something like this: file:///C|/Users/callen2/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Cont ent.IE5/purchased_systems.pdf). Is there any way to force the PDF to open within the browser so that the relative links continue to work?
    If not, is there a way to do a blanket conversion of the links from a relative link to an absolute link so we don't have to go into each document and link separately?

    Hi
    You need to set Browser File Handling  to
    Permissive.
    Open Central Administration -> Manage Web Applications -> Select web application -> General Settings >>
    Browser File Handling >> set to Permissive .
    Regards, Rajendra Singh If a post answers your question, please click Mark As Answer on that ost and Vote as Helpful http://sharepointundefind.wordpress.com/

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • Links to PDF files with relative paths from a Captivate 4 project

    I'm creating a presentation in Captivate 4 (I'm making an exe file) with some links to PDF files; the links are buttons with the 'open URL or file' set. The presentation will be distributed in CDs and obviously the links will not work for they point to an absolute path in my PC. Is there another way to display external files? thanks

    "file:\file folder\filename" is not a relative path.  It's still an absolute path because you're specifying the path all the way from the root drive, whether you used a drive letter or not.
    A relative path shows where to find the other file in relation to the file that is calling it.
    Relative paths look like this:
    myDoc.doc (if the file is in the same directory as the file calling it)
    folderName/myDoc.doc (if the file is inside a folder in the same directory as the file calling it)
    ../myDoc.doc (if the file is located in the parent directory above the file that is calling it)
    ../../myDoc.doc (if the file is located two levels above the file that is calling it)
    etc
    Here's a tutorial that explains it better: http://www.communitymx.com/content/article.cfm?cid=230ad

  • Relative links in interactive pdf

    Hi. I'm building an interactive pdf that will work as the content of an interactive cd. The main document is saved on the "cd" directory, on the desktop. I created a button that will open an external pdf file. The link to the file is an absolute link:
    Macintosh HD:Users:myuser:Desktop:cd:files:file1.pdf
    Now, I need this to be a relative link so I can burn the cd and make sure it works, independently of the file's root address. How can I achieve this?
    I tried changing the : to / and doing something like ./cd/files/file1.pdf but it didn't work. This probably has a simple solution, I just don't know how to express relative links in InDesign. Any advice? Thanks.

    Hi. Honestly I don't remember how I solved this at the time, it was over 3 years ago... The problem was just as described. I had an interactive pdf that I had to burn on a CD. On the CD was another file that could be opened via a button on the interactive pdf. Thing was I didn't know how to create a button with a link for the document on the CD, I could only do it with guaranteed results using a link to the file on my computer. Hence the need to have a relative link.

  • CP5.5 - PDF Output - should it retain Relative Links to Data?

    I am creating PPT slides with animation, then importing into CP5.5.
    In CP5.5 I add some relative links (such as DataSupport.zip) to one slide.
    Why doesn't the Adobe PDF maintain the Relative Link and try to open the zip file (the data support file is in the same folder as the PDF) ?

    I am creating PPT slides with animation, then importing into CP5.5.
    In CP5.5 I add some relative links (such as DataSupport.zip) to one slide.
    Why doesn't the Adobe PDF maintain the Relative Link and try to open the zip file (the data support file is in the same folder as the PDF) ?

  • Interactive pdfs... relative linking?

    I'm revisiting this because I've found no training (not at Lynda.com) nor websites where this specific issue is addressed.
    I essentially re-created a dvd presentation via InDesignCS3 and Acrobat Pro complete with audio clips, images and movie clips that play full-screen on the huge displays.
    However, it isn't portable. Embedding all the movie clips doesn't work because then the pdf becomes about 1.1 gig and even a fast machine chugs so it needs to reference the quicktime files instead.
    But, I can't get Acrobat to use relative links... it actually remembers the actual hard drive it was created on and so on instead of just say "/images" within a folder. So, it would be referencing this:
    file:///work in progress/~Websites/BarryPresentation/images/avocadoFlash.jpg
    instead of just: /images/avocadoFlash.jpg
    No matter what I try, I can't get Acrobat to use relative links.
    Any ideas?

    This is an interesting post on the subject.
    http://www.adobeforums.com/webx?128@@.59b51e68
    I have been able to get the links work, but it's taken jumping through a thousand hoops and I'm so lost, I can't even begin to tell you HOW. I just know that I've got to re-link every button (can't do it with a button - has to be a link to a destination) in my launch page.
    Seems there's 38 ways to link to other pdfs -- all of which work on my 'puter. But there's only one way to do it successfully if you plan to transfer the docs via any medium.
    This is ******* brilliant, Adobe.
    I'll try to post details of the process after I can get it working for me and scrape the brain cells off the floor.

  • Issues with using relative links in Captivate 8

    Is anyone else having issues with using relative links in Captivate 8?  These links all used to work in the previous version of Captivate. And I could have sworn this was fixed already once in Captivate 8 but it's popping up again for us. Here is the situation... We have courses that are made up of multiple lessons which as separate Captivate files. Within those lessons are buttons to link to external documents (which live in a shared document folder), demonstrations, etc.  We use relative links because we post these to our amazon servers and we also sell them to clients where they can post them on their own web servers or in their LMS.  SO we can't put in full paths for the links or we'd have to change them constantly.  So an example is that the link for a button might be "../Document/nameofdoc.pdf"  This would be going to a user guide or something that is posted in the "Document" folder that lives at the same level as the lesson's folder. But now, all of the sudden, none of our bazillion links is working. And I've tried buttons, hyperlinks, and even the old click box. Nothing works with relative links. And I did check the permissions on every file and folder on our Amazon server to verify nothing changed there as well.   Any suggestions?

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • Relative hyperlinks in pdf documents printed from visio 2007

    Hello to all. The problem we are trying to solve is to maintain relative hyperlinks that were created in visio 2007 when we publish or print a pdf document. The pdf document that we printed is written in adobe reader 9, and it maintains the hyperlinks but as absolute ones and we required the hyperlinks to maintain as relatives. The idea is to distribute the pdf document with its hyperlinks and the documents that are linked to it in different computers that are not in the same network. The documents that we are trying to link are pdf, word and excel 2007 documents. The operating system we use is Microsoft vista home premium. Does anyone know how to maintain relative hyperlinks in a pdf document printed from visio 2007? Thanks in advance!

    Bernd Alheit, thanks for your answer. We print the pdf document from visio 2007 and then we read it in adobe reader 9. The relative hyperlinks work fine in visio 2007, but they change to absolute ones in the pdf document.

  • Links in PDF's and Excel have stopped working

    I'm using a fresh install of Firefox 14.0.1. Links in PDF's and Excel have stopped working (the reinstall was part of the problem solving). FF is my default browser.

    Starting in Firefox 14, Firefox no longer creates registry settings for launching links using "DDE". This has been reported to create two different problems:
    * "Firefox is already running" or "Firefox is not responding" error when following links in email messages in Thunderbird ([https://support.mozilla.org/en-US/questions/932461 Can't open links in Firefox by clicking URL in Thunderbird])
    * New instance of Firefox launches if the existing instance is running in Sandboxie ([https://support.mozilla.org/en-US/questions/933798 Firefox is running. I click on a link, say in an email, it tries to start another instance of the browswer instead of just opening a new tab as it did before.])
    Not sure whether your "silent fail" scenario is related.
    It is possible to configure Firefox 14 to use DDE by inserting some settings into the registry. I haven't researched this carefully myself, but there was some information about it on and external site linked in the Sandboxie thread.

  • Relative links not working in Safari

    Our web site has many PDFs and aspx files that link to each other. In a PDF, when we click on a relative link, the following message appears: Safari can't open "filename.pdf" because the first character of its address is not valid. When we loook in the error console for the page with the link, the warning says "Resource interpreted as Document but transferred with MIME type application/pdf." Our workaround has been to set up Safari to use Adobe Reader to open the PDFs, and everything worked just fine. With Safari 5.1, that is not possible, so we now need to figure out what the problem is. Thanks for any help you can offer.

    With Safari 5.1, that is not possible
    Read here >  Apple Safari 5.1 and Adobe Reader/Acrobat Advisory

  • "open a file" hyperlink syntax, relative link

    Hello all,
      I regularly put reports together that consist of 1 report and many "supporting documents", all in PDF format.  Each page of the report has anywhere from 1 to 8 links on it (report comes from SQL Reporting Services).  These links point to their supporting document(s).  The report and supporting documents are burned to a CD to send out to our clients.  The report is opened in Acrobat, and when a link is clicked the supporting document is opened in a new window.
      I have tried every way I can imagine to format a link so that when the report is output to PDF the link shows up as an "open a file" link rather than a hyperlink.
      My question:  Since I know I can make an absolute URL hyperlink work correctly...and relative file links work correctly when I manually link to the files, what is the correct syntax to achieve a relative file link?
      The directory structure burned to CD:
               >CD Drive
                   >Main Folder
                        >PDF Report
                        >Supporting Documents Folder
                             >Document #1
                             >Document #2
    I have tried this javascript inside a SSRS expression:   (Pardon the code, I'm java-stupid)
    "javascript:void(window.open('FILE:\Documents\'" & filename-parameter &"'.pdf'"
    Bottom line:  I'm looking for a way to automatically link one PDF to many PDFs based on the above folder structure, given a variable that comes from SSRS.
    Thanks

    Matt,
      Well, I did end up with a not-so-elegant-but-workable solution.  Here's what makes it tick:
    1.  You'll need to construct the link to the target .PDF file (probably through SSRS).  You said that you are going to burn these files to CD, right?  If so, you'll probably want to construct something like [filename + .PDF], without brackets.  If your SSRS "list of PDF files" already looks like that you're that much further ahead.
    2.  You'll need to use Adobe Livecycle Designer to create a report template.  I ran one of my SSRS reports, rendered it to PDF, and then created a new form template based off that PDF in LC Designer.  If you've never worked with LC Designer, it's not too hard.  Since the layout of my reports are variable in length, I took advantage of the "positioned" and "flowed" subforms.  MAKE SURE THE LC FORM FIELD NAMES MATCH THE SSRS FIELD NAMES.  This is a bit of a pain, but once you have it working you'll be thankful. 
    My links are handled with buttons in LC Designer.  First, make a textbox to contain the text of the link to the target PDF from step 1 (make this in a flowed subform). Then, make a button to go directly over the textbox, remove button's caption, set button to transparent.  THIS PART WILL TAKE SOME TWEAKING depending on how your form is setup.  Add the following to the CLICK event of your button: 
    app.openDoc({cPath:xfa.resolveNode("YourReportName.ReportPage#.YourSubFormName.NumberofSub form.YourLinkText").rawValue,oDoc: this});
    If you already understand how this works feel free to read past it.  The app.openDoc needs two things from you, cPath and oDoc.  cPath is the path to the target PDF.  The xfa.resolveNode("YourReportName.ReportPage#.YourSubFormName.NumberofSubform.YourLinkText" ).rawValue says the link path is the literal value of this textbox, located in this subform, on this page of this report. 
    oDoc is where the relative part comes into play.  If you construct the [filename + .PDF] links as in step 1, and you set oDoc:this, clicking on the link will instruct Acrobat to open the target PDF using the cPath relative to your list o' links report.
    3.  Go back to SSRS, render one of your reports as XML and save it.  This is the data that you'll import into your form template.
    4.  This is where I got tripped up.  For each and every file that you want to open up from a link you will have to set its Disclosed property to True.  I accomplished this through a batch action in Acrobat.  I'm not sure what version you have, but if you're using 10 it is under File>Action Wizard>Create New Action.  These are my settings:
                    Start with: A file open in Acrobat
                    Under "More Tools", select "Execute JavaScript", click on "Options" and paste in this: this.addScript("This Doc is Disclosed", "this.disclosed = true;");
                    Save to:  Same folder selected at start So, all you have to do when preparing your target documents is run that batch action.  Add all of your target PDFs to window that pops up and click run.  AFAIK, once you've disclosed a  PDF, you won't have to re-disclose it. 
    Once you have all that setup the process to create a CD becomes fairly easy. 
    1. Render XML from SSRS
    2. Disclose all target PDFs
    3. Import XML into the template PDF you created with LC. (actual import done via Acrobat, not LC) 4. Read the new comics on XKCD while staring intently at the screen to make the boss think you are still working diligently. 
    Depending on how you want the folder structure to look like on the CD, you might have to change the way you construct your links.  I have used several methods to suit different needs, but for proof of concept, I'd probably just stick to the way I described in step 1 (resulting CD won't have a folder structure, you'll just have your "master" PDF and all of your target PDFs on the CD.  Right now I just set the target PDFs to hidden via right-click>properties before I burn them to CD.  It's lazy, but it works.) I don't know if you use an ISO program like MagicISO, or one of the others, but it will help reduce the number of ruined CDs. 
    There are many places to get tripped up and I'm sure I haven't explained the process fully, so feel free to ask if you run into problems.  Also, not trying to advertise for anyone, but pdfscripting.com was a HUGE help.  Thom Parker runs it, I believe.  They sell a subscription to their website (which I would say is worth it), but they also have a ton of useful freebies. 
    Anyway, I hope this can help.
    Chris

Maybe you are looking for

  • Error Using dbms_scheduler to call a shell script

    Hi, I have been assigned a job of sending emails through unix utility(Mailx), based on certain activity in database. Email needs to be sent on insert/update of a column in one of the database tables. I am trying to use the block below to call the uni

  • Download videos from Iphone to Mac - Iphone not showing up in image capture

    Hello I am trying to download the videos I took with my iphone onto my computer, but the iphone is not showing up in image capture or iphoto. Does anyone know how to get the videos off without degrading the video quality. Thanks

  • Quicktime MOV washed out

    Hi, I had a movie edited in AE and rendered with format of Quicktime movie while everything remained default. But the color of the rendered movie was washed out when played in quicktime player. If I rendered the movie with Windows Media format, the r

  • Web Part Not Re-sizing Based on Width Property

    I have a SP 2010 publishing site with a custom master page, using the Body Only page layout.  I inserted a discussion board web part in the page content section of the page.  When I go into the standard web part properties and try to set an absolute

  • SCREEN SAVER IS BLURRED

    Can anyone help me. I have set my screen saver to display photos from file in iphoto. The photos in iphoto are perfectly clear and focussed, but when they appear in the screen saver they are all blurred. I am sure I have just got one button or someth