To load a pdf in a Panel

Hi,
How to load a pdf in a panel.
I tried the code:-
var u:URLRequest = new
URLRequest("../pdf/Registration.pdf");
navigateToURL(u,"_blank");
This will open the pdf in a new window. I need to get the pdf
file open in a panel .

There's no way to load PDF -inside- your SWF content. You can
do it the other way around (have a PDF that hosts a SWF). But Flash
Player doesn't read PDF. So you have to do this with a new window
or an iframe or something similar..

Similar Messages

  • A working method to load local PDF and HTML files on iOS

    I had a lot of trouble getting this to work, and I'm hoping this post saves someone time. Some of the information that's been posted in other locations is either wrong, incomplete, or might only work on Android. By the time you read this message the information here may no longer be accurate, so here's the testing environment:
    Window 7
    Flash CS 5.5.0
    AIR 2.7.0.19530, which was compiled on June 28, 2011
    iPad 1, version 4.3.5 of iOS
    Let's get started.
    On iOS, you load external PDF and HTML files using the StageWebView class.
    On Windows, StageWebView works but the HTMLLoader class is a better choice if you're creating a desktop app.
    You can also load HTML files by reading in the file's text. The information in this post is only for loading external HTML files.
    StageWebView will not load a file that's in File.applicationDirectory. All files bundled in your app are placed in File.applicationDirectory, which means you'll have to copy any external file you wish to load with StageWebView to another directory.
    So where can you copy your file? File.applicationStorageDirectory won't work. File.documentsDirectory does work.
    Several people have recommended copying to a temporary file using File.createTempFile(). This works, but there's a catch: it seems that, like Windows, StageWebView relies on a file's extension when determining how to load it. When you create a temporary file on iOS using File.createTempFile(), the file will have no extension (and on Windows, File.createTempFile() creates a file with the extension .tmp, which is equally problematic).
    The solution to the file extension problem is to rename the temporary file by appending the original file's extension. AIR currently does not have a <file>.rename() function, so you'll have to do it using <tempFile>.moveTo().
    Here's some code I've successfully tested several times on both iOS and Windows. The file is copied to the temp directory. The file's extension is restored by just slapping the original file name to the end of the temp file.
            private function loadExternalFile():void
                var webView = new StageWebView();
                webView.stage = this.stage;
                webView.viewPort = new Rectangle( 0, 0, 1024, 555 );
                // Works with either html or pdf files.
                // These are stored in the root of the application directory.
                var fileName:String = "euei.pdf";
                //var fileName:String = "euei.htm";
                var sourceFile = File.applicationDirectory.resolvePath( fileName );
                var workingFile = File.createTempFile();
                try
                    sourceFile.copyTo( workingFile, true );
                    // You have to rename the temp file
                    var renamedTempFile:File = workingFile.resolvePath(workingFile.nativePath + fileName);
                    workingFile.moveTo(renamedTempFile, true);
                    webView.loadURL( renamedTempFile.url );
                catch (err:Error) { }

    I tried this with Flash CS5.5 and AIR 4.0 SDK. Any pdf loaded simply fills the viewPort with black. Also tested with a png version of the pdf and that displayed just fine.
    What's the purpose of copying to a temp work file? I found that webView.loadURL( sourceFile.url ); gave me the exact same results.
    Any ideas?
    Thanks!

  • How to load a PDF from page 1 in IE

    I am currenty working on a fllex based web application that needs to load multiple PDF documents. The pdfs are loaded and displayed properly but after the user scrolls couple of pages/ lines and switches to a new document, IE saves the last visit cursor position of the pdf document. On user revisit to the first PDF the IE loads it from the last cursor position.
    I need to reload the PDF document from Page 1 everytime the user selects to load a pdf document.
    Is there any setting in the Adobe Acrobat Page display settings or in the IE that would help me accomplish my task.
    Please respond ASAP.
    NOTE: The pdf is loaded inside  an IFRAME.
    Thanks,
    -Karun

    > I have a feeling that removing the save button will not be possible.
    You cannot remove the save button, no, but you can replace its execute method with something that, say, pops up a warning to the user instead.
    > Is there any way to just load the file using a URL?
    The ActiveX control definitely loads a URL. See the "src" property of the ActiveX control. If you download the SDK, the ActiveView sample actually loads a PDF from a URL by default.

  • When I try to load a pdf in iframe and I disable PDF toolbar, Its working fine in Internet Explorer and lower versions of Firefox, but in Firefox 19 its not

    When I try to load a PDF inside Iframe and I disable toolar=0 (as guided by adobe). I am able to see the iframe with PDF with no toolbar in IE and lower versions of Firefox (till version 14).
    But in my current version 29, The PDF is visible with toolbar on top.
    Can you please let me know the way to display pdf with no toolbar in Firefox 29?

    I replied on your similar question here: https://support.mozilla.org/questions/1005225

  • How to load a PDF from a stream

    Hi,
    I'm looking at how to load a PDF file from a stream in .NET, e.g. something like a MemoryStream or FileStream. All of the methods I've seen so far only allow the PDF to be loaded from a file which we don't want to do because of security issues. I know I can do this with a third party tool, but is this possible without using any additional tools?
    Cheers,
    Dave Harrington.

    > I have a feeling that removing the save button will not be possible.
    You cannot remove the save button, no, but you can replace its execute method with something that, say, pops up a warning to the user instead.
    > Is there any way to just load the file using a URL?
    The ActiveX control definitely loads a URL. See the "src" property of the ActiveX control. If you download the SDK, the ActiveView sample actually loads a PDF from a URL by default.

  • Looking to load embedded PDF at a specific height on the page

    I'm looking to load a PDF, scrolled down to a predetermined height on the page. I'm familiar with the 'page' param using <embed>, which will load a particular page, but I'd like to be able to have the document load such that it's displaying a particular portion beginning about 3" from the top. I'd even be happy with being able to load the vertical center of the page. Is there code or an application that will let me do that?
    Thanks!

    Not that I know of, but I have completely given up on Pages for anything. For labels I use Avery software which is free http://www.avery.com/avery/en_us/Templates-%26-Software/Software/Avery-Design--P rint.htm

  • Loading a PDF file in flex

    Hi, Is there any way to load a PDF document in a flex
    application. Can anyone guide me regarding this issue.
    I want an example for loading PDF file in a flex application.
    By,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:gcurce$evh$[email protected]..
    >
    Hi. I am having a task of loading a PDF file using
    IFrame in
    > flex. I
    > have created the code. If I run the page through
    browser. It's working
    > properly. If i run the page using flex, the output file
    being overwritten
    > each
    > time when the page is compiled. How to avoid the output
    file being
    > overwritten
    > several times by flex.
    Project>Properties>Flex Compiler>uncheck Generate
    HTML Wrapper
    HTH;
    Amy

  • I can not up load a PDF file to my File Manager?

    i can not up load a PDF file to my File Manager?

    Hi there,
    You will need to provide way more information then that.
    How big is the file? What happens when you upload it?
    Do you have screenshots to show any errors you get?

  • Keypad scrolling stops in previous tabs when new tab loads a pdf file

    Firefox 4, HP laptop, W7. I have several tabs open with html pages loaded. Laptop keypad scrolling works correctly in all of them until I load a pdf file into a new tab. The keypad scrolling works correctly for the new tab containing the pdf but stops working in the previously opened tabs containing html files.
    My other HP laptop also runs Firefox 4 but has Windows XP as its operating system and does NOT have ths problem. Could be a W7 problem?
    Thanks, Barry

    You get that problem if you select the Firefox program to handle a file if you get an "open with" dialog.
    *https://support.mozilla.com/kb/Firefox+keeps+opening+many+tabs+or+windows

  • Load a PDF and Print it Without User Seeing the PDF

    I have a client who has a need to allow users via a web browser to print PDFs wihtout gaining direct access to them.  Ignoring all the flaws in this logic , I am new to Flex and am having difficulty determining if this is possible.  So, here are the details:
    1) This is a web browser application.
    2) The files reside on a server.
    3) The user will view a list of available PDF files in their browser.
    4) There will be a print icon next to each one.
    5) When they click on the print icon we need to pull in the PDF from the server and initiate a print, all without the user seeing the PDF.  So once they click the print icon the next thing they see is thier browser's print dialog box.
    I have 1-4 done, I just need help with the most important one, #5.
    So, can Flex (without AIR) load a PDF in without displaying it and print it?
    I am using Flash Builder 4.6, if it matters.
    Thanks in advance for any input.

    Well, that's going to be difficult. Before everything else, a silent printing in general, is not what Browser is all about. A print dialog is thrown by the browser when a user selects a print option. Same thing if an application is trying to print using built into it conventional methods of printing - you get Print dialog. It gets even harder if you want to print PDF files silently. You will need to make sure that a file is available to print in case it's generated on the fly. The following code will print your PDF without dialogs to a selected (var printer) printer:
    var WshShell = new ActiveXObject("WScript.Shell");
    var fs = new ActiveXObject("Scripting.FileSystemObject");
    var fi = "AcroRd32.exe /N /T " + '"c:\\temp\\' + "filename" + '" ' + printer;
    WshShell.Run(fi, 0, false);
    As you notice, the file is on the local system. Or you can try printing over the network.
    This code will be a part of a JS function in your html wrapper. You will call this function from Flex using ExternalInterface.
    AcroRd32.exe is an Adobe free PDF reader.  I would suggest starting from the end - have a file on the local system and working on everything esle.
    HTH

  • Slow to Load Prepopulated PDF Form in Workspace

    We experience that sometimes it takes a long time (abt 10-15 sec) to load a prepopulated PDF form in Workspace. This is not acceptable by our users. They expect that the prepopulated PDF form to be displayed below 5 sec.
    FYI, we use customised Default Render service to prepopulate the data retrieved from multiple remote DB server (Oracle 8i and SQL Server 2005) into the PDF Form. In particular, we retrieved about 1500 rows of employee information (ID and name) from Oracle DB View to be populated into a dropdownlist in PDF Form.
    Please find below the server and client machine spec:
    SERVER:
    IBM XSERIES_3650
    Intel Xeon CPU 5160 @3.00 GHz
    2.99 GHz, 4.00 GB of RAM
    Windows Server 2003 SP1 Standard Ed
    CLIENT:
    512 MB of RAM
    Windows XP Pro SP2
    Adobe Reader 8
    Adobe Flash Player 9
    Internet Explorer 6
    Does anyone can give us advice what to check/investigate to determine the root cause of the problem and how to improve the performance? Thanks.

    At first, we also guessed that the 1500 rows query is the one which cause the slowing down. However, this is what we observe:
    - Whenever the client machine is restarted, the time it takes to load and display LiveCycle ES Sample MortgageLoan-Prebuilt PDF form in Workspace will be slow (more than 10s). Subsequent try of loading the PDF form will be faster (2-3s)
    - Whenever the client machine is restarted, the time it takes to load and display our prepopulated PDF form in Workspace will be slow (15-25s). Subsequent try of loading the PDF form will be faster (5-7s)
    - In our custom Default Render process, we write trace message to server.log file at the start and end of the process. We noticed, the time it takes between the start and the end of the process is consistently about 2-5s which include retrieval of 1500 db records.
    Please advice.

  • Acrobat Javascript button not loading when PDF is opened in browser

    We have a requirement to have a custom print button in Acrobat Reader 9.1.3. We've created this via a JavaScript file stored in the users application data Adobe javascript folder. The button appears when Acrobat is started up normally and works as expected. However when opening a pdf file via Internet Explorer 7  acrobat is loaded inside the browser but the button does not appear automatically. Instead we need to right click on the tool bar and select Add on tools for the button to appear. Once loaded it works as expected.
    Now I was wondering is there a way to make the button to appear automatically when acrobat is launched from within IE as my users are getting a bit annoyed now. I've been searching all over the place and can't find a solution to this.
    Am hoping someone here might have an idea as to what the problem might be. I've attached the code I'm using below.
    Thanks in advance
    app.addToolButton({
    cName: "myToolButton",
    cExec: "printGreen()",
    cEnable: true,
    cTooltext: "Print to Green",
    cLabel: "Print to Green"
    global.objDoc = this;
    printGreen = app.trustedFunction (
    function()
    app.beginPriv();
    var objPrintParams = this.getPrintParams();
    objPrintParams.printerName = "\\\\burns\\prn-cash-copier";
    objPrintParams.interactive = objPrintParams.constants.interactionLevel.automatic;
    this.print(objPrintParams);
    app.endPriv();

    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

  • After load the pdf in this program, what commands must follow to make the correction (edit),

    if you use
    http://www.doc2pdf.net/
    you can convert doc >> pdf.
    I did try with some samples of files but, in some pages where a subheading is in eg page45, in pdf moved to page44, well to modify the pdf so is exact alignment like doc I must use ACROBAT? Well, conversions from this site must done non-restrict modify the pdf? well since I have Acrobat Pro 9, after load the pdf in this program, what commands must follow to make the correction (edit), and save the file?

    Unfortunately, for your endeavor, PDF is not a file format that supports edit-layout-format activities such as are in word processors.
    Not an "issue" - rather, it reflects what PDF was/is designed to be.
    While minor editing ("touchups") are possible extensive editing of PDF content is not.
    What you appear to have encounterd with the process used to convert something to PDF is something that happens rather too often.
    That is, many non-Adobe PDF creation processes to not provide "proper" PDF.
    Which is to say PDF built to the Adobe PDF References or, now, the ISO Standard for PDF (32000-1:2008).
    As you have Acrobat Pro perhaps using it to convert the document's authoring file to PDF via print to Distiller or via Adobe PDFMaker is something to consider. These convert to PDF per the PDF References/ISO Standard.
    Be well...

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
    Thanks!
    B

    IM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
    regard to the dates? I would need an example like for lets say the month of
    Nov. I try to paste this and save it in the script editor but it keep
    saying that the file cannot be saved. Any ideas? Please bear in mind your
    speaking to a guy who has like zero knowledge when it comes to scripts.
    Best regards,
    Robert
                                                                                    From:       tomaxxi <[email protected]>                                                                               
    To:         Robert Borchardt <[email protected]>                                                                               
    Date:       11/08/2010 03:29 PM                                                                               
    Subject:    Scripting to load all pdfs in a month into the place command?                                                                               
    Sorry for delay...
    I just tested script and it's working fine for me here.
    I created 4 sample PDF-s with just one page, then started script,
    selected exported PDF-s, script sorts them by creation date and loads
    placegun.
    So, all you need to do, is to start script and select documents you want to
    place.
    I changed script little, so make sure you use this one:
    if(app.documents.length != 0){
        var myFiles = File.openDialog("Select Files:", "*.pdf", true);
        if(myFiles != null){
            myFiles.sort(function ( a, b )
                    if ( a.created < b.created )
                        return -1;
                    if ( a.created > b.created )
                        return 1;
                    return 0;
            app.activeDocument.place(myFiles);
        }else{
            alert("No files selected!");
    }else{
        alert("No documents opened!");
    tomaxxi
    http://indisnip.wordpress.com/

  • Loading Landscape PDF in flash Paper

    I am using Flash Paper to load different pdf's in flash but i
    am facing one problem that once i convert any pdf that is on
    landscape size it will rotate the pdf in swf and it looks like a4
    size so any idea how to fix it

    Bob,
    > I can embed a PDF file in an HTML table cell [...]
    > But I can't do this in Flash (unless you know
    otherwise),
    > which seems an amazing blind spot from Adobe.
    It's not really a blind spot. Adobe obviously cares about
    both
    products, and in fact, both products can be intermixed in AIR
    (Adobe
    Integrated Runtime), a separate runtime available on the
    Adobe.com site.
    There are a number of technical reasons you can't embed a
    PDF directly
    into a Flash movie. For one, Flash Player only supports a
    limited subset of
    the HTML specification -- a subset that, for better or worse,
    excludes table
    cells, and (importantly) the <embed> tag. But even more
    importantly, Flash
    Player doesn't support the Acrobat plugin. Your browser does,
    which is why
    you're able to embed a PDF into an HTML document. The browser
    can display
    the PDF because you've installed the Acrobat browser plugin
    (or ActiveX
    control). Flash Player itself has no such plugin.
    > I can achieve the same result by using Flash Paper from
    > Studio 8, but this is not included in CS3.
    If you still have Flash Paper installed, you can keep right
    on using it!
    Its output -- SWF files (that is, Flash movies) -- is 100%
    compatible with
    the tools in Creative Suite 3. Flash Paper creates SWFs that
    emulate many
    of the features of the PDF format ... but in the end, you're
    simply
    embedding another Flash movie.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for