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
Similar Messages
-
Hi all,
I want to open a PDF file which is saved in local PC...can u mention some FM used to achieve this
ThanksHi Srikanth,
You can use the FM <b>'SSFCOMP_PDF_PREVIEW'</b> to view the internal table data in PDF format here put the OTF data into an internal table and pass it to the above FM.
Here is a similar code snippet.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZMM1_MOBILE_BILLING_DETAILS310'
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message i001(zmsg310) with text-t01.
endif.
*If parameter GETOTF is set, SAP Smart Forms only returns the OTF table without printing,
displaying, or faxing the form. Therefore, you should use the NO_DIALOG parameter to suppress the spool dialog.
*JOB_OUTPUT_INFO-OTFDATA (export parameter) to access the OTF table.
*If the GETOTF parameter is set, SAP Smart Forms ignores the setting of the DEVICE parameter of the control structure.
*You cannot have the OTF table returned to you and send the form to an output device. Furthermore, you cannot have the form
*returned in both OTF and other output formats in one call of the generated function module.
gw_ssfctrlop-getotf = 'X'.
gw_ssfctrlop-no_dialog = 'X'.
gw_ssfcompop-tdnoprev = 'X'.
call function fm_name
exporting
wa_amobi = wa_amobi
wa_hmobi = wa_hmobi
control_parameters = gw_ssfctrlop
output_options = gw_ssfcompop
user_settings = 'X'
importing
job_output_info = gw_ssfcrescl
tables
it_imobi = it_imobi
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
message i001(zmsg310) with text-t02.
endif.
*the imported structure gw_ssfcrescl contains the OTF table.
gt_otf[] = gw_ssfcrescl-otfdata[].
*since we require our output to be in PDF format.
call function 'SSFCOMP_PDF_PREVIEW'
exporting
i_otf = gt_otf
exceptions
convert_otf_to_pdf_error = 1
cntl_error = 2
others = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
Reply if u need clarifications & take care -
When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
Thanks in advance
DavidWhat is your operating system?
Open a PDF from where? If online, in what browser? -
Ability To Access Links That Open Separate PDF Files
I have an android device that I am using to view a PDF file. The directory structure is as follows
Folder 1
Master PDF File
Folder 2
PDF 1
PDF 2
PDF 3
etc....
The Master PDF File in Folder 1 has various links that will open various PDF files in Folder 2.
I am able to access links that link to other pages within the Master PDF File. The issue is that I am unable to access links that link to other separate files. Does Adobe Reader have this capability?
Thank you.As of now Adobe Reader does not support links that open external files. We might support this in future releases.
-
Adober Reader suddenly won't open any PDF files (Mac)
I had an old version, I downloaded the latest one, upgraded to the newest, even tried taking that one out and downloading an older version. It doesn't matter which version I seem to have, it won't open any pdf files from the web.
I use a Mac, and Safari. It used to always load PDF files fine, one random place said I had to update it so I did and since then, lately it'd crash and close all Safari windows when loading a PDF or trying to copy something from a PDF. The smart Mac message I have says it could be related to an Adobe Plug in. However, now it won't even load PDF files at all, it always goes to a white page. Nothing happens.
What do I do?? I can't even save the PDF's as individual files and view then in Preview as an alternative option. It's a link online and normally would work. What happened??
HELP!
I have a Mac OS X Version 10.5.8
I've always used Safari, it's Version 5.0.5 (5533.21.1 if that means anything).
Acrobat Reader, currently an old version 9.4.0 download. BUT, I had also the 10.0.1 version which also doesn't work. When I had that 10.0.1 version and checked for updates, there was an update (.3 I think?) and I did that and that also doesn't work!
Why did it suddenly stop working?
What can I do to fix it ASAP?
Only with 9.4.0 version I can go to Help and "Repair Adobe Reader Installation" - I click that and the only box I can select is "Adobe PDFViewer Safari Plugin - View, fill-in and collaborate on Adobe PDFs within Safari" - I click continue and it tells me there's "No missing components detected. Repairs are not needed." The only option is to click "OK".
With any newer version of Adobe Reader, under Help there is no option to "Repair Adobe Reader Installation". So... I can't even try that with a new version.
I am at a loss for solutions. Hope someone here can help! Thanks!There are several things you can do. My first step would be to repair permissions. If that doesn't work log on as a different user. If all works properly then you have a corrupt preference file (most likely) or a corrupt user font installed in your user Library (less likely). If that doesn't work download Applejack. Have it repair the disk, remove all system caches and user caches. Then have it check all system and user preference files. Remove any preference files that are corrupt. Reboot and see if your system is working properly.
-
Safari crash after opening a PDF file
For the past week or so, everytime a link leads to a PDF file, Safari loads the file and then immediately crashes. I have checked my disk, verified and fixed any permissions, etc. but the problem persists. Although I checked the "report" button when I got the message from the OS, I have not heard back from anyone.
Has anyone else experienced such a behavior? I suspect that it is not related to Safari, but rather to Adobe Acrobat, since I always have a similar experience when Adobe tries to look for updates. The Adobe Update Manager crashes the minute it is launched. I have even tried to udate my Acrobat 7.0 for some new patches but I cannot get to them fo some reason or another, mostly because the Adobe system seems to be down for maintenance most of the time. I saw that one of the updates is marked "critical".
I have saved the "log file" after the last crash, about an hour ago (if that helps anyone).
Thanks for any hints.
ecpWelcome to Apple Discussions
Apple does not respond to submitted crash reports. Rather, they are used for software development purposes. Best thing to do in this forum is to copy/paste a copy of the entire report to your reply in this thread.
If you see a relationship between the Adobe crashes and Safari opening a PDF file, then go to Adobe Acrobats preference file>Internet and designate Apple's "Preview" as your PDF reader. Then, go to the Finder and move to your desktop your Adobe Reader plug-in from your Internet Plug-ins folder either the main or user library). Restart Safari and try a PDF (it ought to now open within the browser). If Safari does not crash, then yes, the problem lies with Adobe. Something you can take up in one of Adobe's own forums. -
I cannot open this PDF file in Acrobat 8 Pro or in Acrobat Reader on Windows 7 64-bit
I have a PDF file that I could open on my Windows XP 32-bit laptop in Acrobat 8 Pro or in Acrobat Reader. I then upgraded to a Windows 7 64-bit laptop. But now in Win7-64, I cannot open this same file using the same apps (Acrobat 8 Pro & Acrobat Reader XI).
When I try to open it in Acrobat 8, it does not load and instead a popup windows appears saying -
Adobe Updater
Some components needed to complete this operation are missing but information about them may be available on the Adobe website. Would you like to search the Adobe website for the missing components?
And I can choose either the OK or Quit buttons. When I click OK, a web browser starts and goes to this website -
http://www.adobe.com/special/adobe_update_manager/?type=Filter&name=FOPN_foweb&version=0.0 .0.0&lang=en_US&os=Windows&osver=6.1.7601&appid=acrobat8pro-en_US&cpu=intel
This webpage says -
Adobe Update Manager
Adobe cannot locate the requested plugin. New plugins will be listed on this page. Currently there are no plugins.
So now I am stuck, no direction to go. I am left without any solution from Adobe for Acrobat on this file.
When I try to open this PDF file in Reader, it does not load and instead a web browser is spawned loading the webpage -
http://plugin.fileopen.com/Default.aspx?bhcp=1
This is the FileOpen Plug-in for Adobe Acrobat/Reader, which prompts to -
Please click OK to download the FileOpen Plug-in Installer for Adobe Acrobat/Reader
I click on OK, download and run the Installer file, accept the terms, and installed the FileOpen Client (x64) B928. Upon completion, it prompts to Finish. But it does not automatically bring Reader up or try to load the file. So I try again to load the PDF file into Reader. But once again, the file does not load and the web browser is spawned loading the same FileOpen Plug-in Installer link. I click OK again, and start the same FileOpen Client process. This time, it recognizes that I have FileOpen Client installed, and the window gives me two choices, Repair or Remove. So since I apparently need this Plug-in, I choose Repair. The process seems to complete the Repair. But when I try to load the file, it still brings me back to the FileOpen Plug-in webpage. So now I am stuck again, and left without any solution from Adobe for Reader on this file.
I tried Adobe support. But apparently Adobe does not support past releases of their products (Acrobat 8), and also does not give free support for the current version of their free products (Reader XI).
Can this be fixed?How is Acrobat 8 not fully Windows 7 compatible? I see discussions on this Adobe Community saying how Acrobat 8 does work on Windows 7 and with 64-bit. It appears that if Acrobat 8 is updated to the latest version, then this should fix AA8-Win7 issues. And I am at the latest AA8 version, 8.3.1.
And how are Acrobat 8 and Reader XI are not compatible? I have always had Acrobat and Reader installed on the same PC, without ever having any issues. And Adobe allows the installation of one after the other. So apparently Adobe allows them both to exist together. If they are incompatible, then why would Adobe allow them to exist together?
Anyway, I did uninstall the FileOpen Plug-in and the Reader XI, then reinstalled the FileOpen Plug-in. So now Reader is not installed and only Acrobat 8 is installed. I then tried to load the PDF file, but I still get the Acrobat 8 error described above. -
Hi,
I am on the verge of deleting Firefox from my computer as it has wasted hours of my time, and none of the online trouble-shooting answers are of any help.
Until recently I could open PDF files in my browser window, and today its impossible to open any pdf file, it will not even download if I choose to download it.
This issue has been going on and off for nearly a year, and I downloaded Nitro PDF add-on to solve it previously as the Adobe reader add-on didn't do anything. Today In the options menu of applications where I can select the program I want to open the PDF files with I can no longer find the NitroPDF reader as an option, so I choose the Adobe add-on and no matter how many re-starts it refuses to initiate any PDF files, all I get is a open and empty new tab.
Internet explorer opens PDF files fine, so I know its not computer related.
I am running Windows Vista Ultimate, Firefox Version 19.0.
If there is a way of fixing this, please help because currently I am at the end of my patience.
Regards,
EmreHey thanx for the help, it worked like a charm.
I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
Cheers again.. -
Open a PDF File from a SSRS Report
I have a requirement to include a link of some sort on SSRS reports that opens a PDF file. If this were being implemented in an Access report, a click event using the Application.FollowHyperlink method will do the trick. Is there an analogous
method to accomplish this on a SSRS report, please?Thanks to Bipin.P ! Although I do not yet have the product installed with which to work, I found the following in the RDL specs. So, if SSRS functionality is identical to that of an IsHyperlink textbox, our requirement will be satisfied
easily.
Thanks again to all!
From the SQL Server Reporting Services RDL (Report Definition Language) Specification document, page 41:
Action
The Action element defines a hyperlink, bookmark link or drillthrough action associated with a ReportItem.
Name
Type
Description
Hyperlink
Expression (URL)
An expression that evaluates to the URL of the hyperlink (18)
(18) The Access IsHyperlink property of Textboxes will be supported via this more general mechanism. The Hyperlink property of the Textbox can be set to the same expression as
the Value property of the Textbox.
Implemented on an Access Report on 05/06/2010:
Set the IsHyperlink property of a Textbox to Yes
Set the Value property of the Textbox to =”Open PDF File#C:\UPDATES\HelpFiles\UIU Boot Menu.pdf” -
Safari doesn't open the PDF file (articles, book page, etc). It appears a black page. Before that it was working perfectly. Thank for your help
Try this ...
Open a Finder window then from the menu bar click Go > Go to Folder
Type or copy paste the following:
/Library/Internet Plug-Ins
Click Go.
If you see the: AdobePDFViewer plugin (or anything Adobe related) in the Internet Plug-Ins folder, move it to the trash.
Restart your Mac and try opening a PDF file. -
My reader will not open a PDF file that I have downloaded from a government web site (an application form) - it states that the file is not good. I can open on the web site but not from my mac computer.
Maybe this: http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html ?
Do you have a link to that document? -
Each time I try to open a PDF file from any website, Firefox (3.6.10) crashes. No error messages--just closes abruptly. For add-ons, I've got Personas 1.6.1, United States English Dictionary 1.0.0, and WOT. I've got the Adobe Reader 9 and Foxit 3.3.1.0518. The crashes of Firefox occur with both PDF readers. I did go through the posted solutions for PFD related crashes in the FAQ section but those steps did not resolve the problem.
Does that only happen if you open the PDF files in the browser or also if you open the PDF files in the standalone program by disabling the plugin?
-
Bug in Preview in Snow Leopard when opening multiple pdf files at once
I receive 50-200 pdf files by e-mail each day. I have historically saved the pdf attachments to a folder, then selected all the pdf files in the folder (CMD A), then opened all the selected files in Preview (CMD O). After updating to Snow Leopard, downloading 34 pdf files to a folder, selecting them all, then attempting to open them all in Preview (using both CMD O, then File/Open, then File/Open With), the effort first opens 6 of the 34 files. Closing all then trying again results in 7 files being opened, closing all then trying again results in 8 files being opened, etc etc. Earlier today I had the same results, but eventually got a message asking if I wanted to open all in separate windows (I did) or a single window, and it opened all the files at once as I wanted. After shutting down, moving home, and receiving additional pdf files, however, back to the same open 5, then open 6, etc. problem. Anyone else having this problem or a suggestion on how to resolve?
Thanks for suggestions,
BMore info - apparently the bug isn't related to Preview, but to the attempt to open all pdf files in the folder with ANY program. After having Preview open 25 of the 34 files I was attempting to open, I then tried opening all 34 with Adobe Reader. It opened 26 (after Preview had opened 25). Tried again with Preview - it opened 27, then 28 with Adobe Reader. It doesn't necessarily open the FIRST 25 (or 26, etc) either, so it's difficult to work with the open ones, then go back and work with the remaining ones later.
-
How to open a pdf file in Adobe Reader using URL scheme on iOS devices
To open a pdf files in Adobe Reader on iOS devices,
I created url links as follows:
com.adobe.Adobe-Reader://mysite.com/myfile.pdf
com.adobe.reader.request://mysite.com/myfile.pdf
But none of these does work.
Adobe Reader starts up but never opens pdf files.
Does anyone know how to write URL scheme?
Thanks in advance.Sorry. Wrong category.
-
How to open a pdf file only in one computer
I would like to sell pdf publications by allowing the user to open them only in one computer. I learnt that this has been done the past when I bought some publications but I don't know the way to do it. Could you help me?
thank you
Marcothank you for your support
Best Regards
Marco
Da: Mylenium <[email protected]>
Per: MARCO1 <[email protected]>,
Data: 09/10/2013 11:09
Oggetto: How to open a pdf
file only in one computer
Re: How to open a pdf file only in one computer
created by Mylenium in Downloading, Installing, Setting Up - View the full
discussion
You will havwe to sign up for some service that supports rights
management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
to create your own ePub stuff using Digital Publishing Suite. In any case,
it will probably cost you money upfront before you make any revenue.
Mylenium
Please note that the Adobe Forums do not accept email attachments. If you
want to embed a screen image in your message please visit the thread in
the forum to embed the image at
http://forums.adobe.com/message/5746873#5746873
Replies to this message go to everyone subscribed to this thread, not
directly to the person who posted the message. To post a reply, either
reply to this email or visit the message page: [
http://forums.adobe.com/message/5746873#5746873]
To unsubscribe from this thread, please visit the message page at [
http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
the right, click the Stop Email Notifications link.
Start a new discussion in Downloading, Installing, Setting Up at Adobe
Community
For more information about maintaining your forum email notifications
please go to http://forums.adobe.com/message/2936746#2936746.
Il messaggio trasmesso può contenere informazioni di carattere
confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
la diffusione, la distribuzione o la riproduzione da parte di altre
persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
questo messaggio per errore, siete pregati di segnalarlo immediatamente al
mittente e cancellare quanto ricevuto.
This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited. If you received this transmission in error,
please inform the sender immediately and delete the material
Maybe you are looking for
-
Using a session object to hold the value of a record set?
Hi, I'm trying to hold the value of a record set (or literally the content of a column in a query in a db) in a session variable so that I can call on this later and insert into another table. I'm not sure of the correct syntax, I've already made a c
-
Inserting to a table using same table and master table
[code] I have a table test_master where I have stored the status of the individual claims ; the status would be changed quarterly basis. I have another table test_detail which will store status chages on each quarter.The curr_status column will sto
-
Hello, I am creating a swing view for my ADF application (quite new for me, swing...) and I'd like to know how I can use localization for items such as frame title, menu item names, etc. I'm using JDeveloper 11.1.1.3.0
-
Need info on HR authorisations and structural profiles
Hi gurus, can somebody guide me to the info on HR authorisations and structural profiles?
-
Sequence.nextval doubles the returned value with Execute Statement (F9)
There appears to be a quirk with sequences in Raptor. Has anyone noticed that depending on how you execute this sql (SELECT MYSEQ.NEXTVAL FROM DUAL;) the value returned is either the correct nextval or double what you expected? For example, MYSEQ is