Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open PDF in a component within the current window.

    Hello All,

    I am using Flex3.4
    I need to open a PDF (which is on the server) in a panel or some component in a flex application window. I am trying to use the 'navigateToURL' function but the '_self' option opens the PDF in the entire current window. I want to open the PDF inside a canvas or panel within the current window and still have other components on current screen to be displayed.
    The goal is that the user should be able to see the pdf in a part of the screen and type in comments in a textbox in the same screen.

    Please let me know if this be done? If yes, how?

    Please let me know if anyone has any sugesstions.
    Thanks!

    Rishi

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    I don't believe that is possible with Flex. Your options would be:
    1. do it in AIR
    2. Pop up an IFrame over your Flex app to show the PDF; come up with a creative way to pass data back and forth
    3. Convert the PDF to Flash Paper and embed it in your app.. then you could get your desired effect of embedding the document in a Panel/etc.
    4. Port your document to native Flex components, and just put the fields in your Panel

  • #3
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you Inigoesdr!

    The option of converting the PDF to Flash Paper and embedding it in the app sounds best for my app.
    I tried to look for ways to do this but not so sure how to do this. The PDF file will be on the server. How can I convert it to Flash Paper at runtime? Is there an API I can use to do this programmatically?
    Please let me know your suggestions.

    Thanks a lot!
    -rish

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    I haven't heard of any on-the-fly conversion software for converting PDF to FlashPaper, though it should be possible to make one fairly easily if you have a Windows VPS. You usually convert it ahead of time, and embed the FlashPaper SWF in your Flex app when you compile it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •