PDF importing to Flex

Hi Guys,
First post!
I've started building in Flash Bulder 4.5.1, and was looking to create a sort of PDF reader application, which is to say I want to embed a couple of PDFs into the application, and then have some sort of animation as you flick through the pages rather than using like an iFrame. I was wondering if there was a way to do this in Flex or whether I need to convert the PDF to an image format (or another format) to do it (Tried quickly PNG's which don't look great on a phone).
Any help or advice appreciated,
Thanks guys,
Charles

Hi,
If you feel like it, you can study the PDF format specification:
http://www.adobe.com/devnet/pdf/pdf_reference.html
Then you can load a PDF file as a ByteArray in your application and do whatever you want with it, knowing the format: rendering it, searching it, editing it...

Similar Messages

  • How to display pdf file in flex application

    hi,
    I am Ibran, I am using Flex4.5, in that i want to display a pdf file like images.
    How can i do it please anyone tell me.
    I have used navigateToURL(url),but this was going into navigation and i can't see my textfield and buttons.
    So without this  navigateToURL(url) how can i display a pdf file in flex without navigation so that i can see my textInputs and buttons.

    Flash does not have the ability to load/display/manipulate PDF files, so you can't open it directly in the flex application.  With clever HTML and javascript, you can make it appear that it is in the same window, but it will actually be in a separate window/div in the browser.  And yes, this has always seemed absurd to me that Adobe doesn't support PDF's......
    Mark

  • Loading pdf file in flex application (not in AIR)

    Hi,
    Could any one suggest opening pdf file within flex application with blazeds.
    we have used the following code to open pdf file in the same window
    navigateToURL( new URLRequest( "http://localhost:8080/PdfSample/jsp/PdfContent.jsp" ),"_self");
    But we want to load the pdf file in a vbox.Similary to the below image
    Is it is possible to load pdf file in flex application,if so how can we achieve it

    Hello Mariush,
    I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
    Thanks and Regards
       Khalid Chaudhary

  • Displaying PDF file in Flex application

    Hello,
    Is there any way, by which I can read/display PDF file as it is in Flex application (Web based). Is there any way or work around by which I can achieve
    this.
    Awaiting for prompt response.
    Thanks and Regards

    Hello Mariush,
    I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
    Thanks and Regards
       Khalid Chaudhary

  • Can we Read/Display the content of Word/PDF file  in Flex 3/4 ?

    Hello All,
    Can we  read/display the content of Word/PDF file in Flex 3 or Flex 4?.  I have one word file containing  Arabic  and English content with some settings like  Bold, Color, Align etc. I want to display the content of this word file as it is in the flex web application.
    Awaiting for prompt reply.
    Thanks and Regards

    thank you for your immediate reply, but,
    sorry, this does not work.
    With this code:
    <cfpdf action = "read" source = "dok_1.pdf" name =
    "mypdf">
    <cfdump var="#mypdf#"/>
    I get this result:
    Everything, but no text of the document.
    PDFDocument
    Application name of application
    Author bimbam Verlag GmbH
    CenterWindowOnScreen [empty string]
    ChangingDocument Allowed
    Commenting Allowed
    ContentExtraction Allowed
    CopyContent Allowed
    Created D:20080710
    DocumentAssembly Allowed
    Encryption No Security
    FilePath [empty string]
    FillingForm Allowed
    FitToWindow [empty string]
    HideMenubar [empty string]
    HideToolbar [empty string]
    HideWindowUI [empty string]
    Keywords [empty string]
    Language [empty string]
    Modified [empty string]
    PageLayout SinglePage
    Printing Allowed
    Producer [empty string]
    Properties [empty string]
    Secure Allowed
    ShowDocumentsOption [empty string]
    ShowWindowsOption [empty string]
    Signing Allowed
    Subject [empty string]
    Title Rheinische Angler-Zeitschrift
    TotalPages 1
    Trapped [empty string]
    Version 1.3
    Maybe i do not understand the cfpdf tag the right way.
    What i want is a kind of pdf-to-text conversion.
    Do I have to use the processddx action? I do not think so.
    But there is a property DocumentText .. ?

  • Hi. Is it possible to load/view a pdf file in Flex application?

    Hi,
    Can we load a pdf inside a flex web application (not AIR)? If yes, how to we interact with the loaded pdf using javascript?
    Appreciate your help.
    Thanks
    Mahesh

    No, you can't directly load a pdf inside a flex web application.  You can use the external interface to open one in either an iframe, or a new tab/window in the browser.  Then you can use external interface calls (javascript calls to the host browser) to interact with the loaded pdf.
    Mark

  • Haw disable the saved icon of pdf document inside flex application??

    Hello,
    My gool is to disable the save icon of pdf document when i open the pdf document inside flex application.
    Haw you any ideas?
    Thanks you

    This isn't something that can be managed from the Flex end of things. You have to configure the document DRM.

  • PDF Import filter for PM6.5

    I'm using PM 6.5 with XP. I've installed the PDF import filter as directed. Under "Place" PDF is still not recognized nor does it show as an option when further attempts to place. It also does not show in the list of filters under CTRL-"About PageMaker" in the Help menu.
    Requirements mention Windows NT. XP is not mentioned. Has anyone been able to get this to work with XP?  If so what might I be doing wrong?

    Sounds like the PDF import filter is missing, but it will only import very early PDF versions - 1.3?
    You can install the import filter from your installation CD-ROM using the Custom installation option.
    Iechyd da! John
    10:33 08/06/2009 BST

  • Open pdf file in flex

    Hi Guys,
    I want to open pdf file in Flex (Web Application). I am unable to open it, Please guide and help me.
    Thanks in advance..
    Rangrajan.

    Rangrajan,
    If you have the complete URL to the file; for example http://forums.adobe.com/filename.pdf
    or C:\users\yourname\filename.pdf
    Although I have not used it, you can pass the URL to Drumbeat Insight iFrame
    You can try their product, get prices for source code or library here: http://drumbeatinsight.com/products
    They offer email support for their products.
    You can make your own iFrame, with several sources.  Here is some background.
    http://www.ozzu.com/flash-forum/targeting-iframe-from-flash-t30013.html
    Let me know if this solves your file issue.
    I need to write a server-side app to listen to my web service, upload the PDF, then write a temporary file.pdf to the server,
    before my web app can load the PDF into a web hosted iFrame.
    Adobe needs to make this easy (and I even know some developers in the San Jose Adobe headquarters).
    Bruce

  • Can't importing a Flex project within a Java project

    Hello,
    I am taking over an existing project from a vendor that is no longer involved that has a two Flex projects inside of the Java project. I am using the Flash Builder plugin inside Eclipse.  I have checked out the Java project locally and brought it into Eclipse and it builds perfectly.  My issue is in getting Flash Builder to recognize or import the two Flex projects within.  I have tried various methods of adding or importing the Flex project into my workspace but they all break the file structure in one way or another and thus make it impossible to compile in the structure that was set up.  It looks like Flex was set up to build into the webapp/flash/projectname/build folder.  No matter what I do Flash Builder creates other output folders or project folders.  I have tried add project type, import and new.  The original .project and .actionScriptProperties files are there but Flash builder seems to ignore them and create new ones elsewhere.
    The file structure looks like this:
    javaproject
         src
              main
                   Flex
                        flexprojectone
                        flexprojecttwo
                   java
                   resources
                   webapp
                        flash
                             flexprojectone
                                  build
                             flexprojecttwo
                                  build
                        internal
                        lib
                        themes
                        WEB-INF
    Thank you
    Greg

    I am having same trouble. Installed JDK 5.0 Update 5. Installed the Studio. Ctrl+Shift+N, the only option I have is Web Application with Existing Ant Script.. Please advise how to solve this problem. thx

  • How do we display .doc files or .pdf files inside flex containers like Panel or Canvas?

    How do we display .doc files or .pdf files inside flex containers like Panel or Canvas? (i am talking about Flex web browser application and NOT air)
    thanks in advance.

    Perhaps I was not clear...
    We have a Word doc.
    We want to create a PDF doc from it.
    We want, in Word/VBA, to add content (annotation/text note=sticky) to the PDF from Word via VBA macro.
    What is the best way to do this?
    1. Use a VBA call to the PDF doc to execute the AcroJS (we would pass the content, location, etc for the note in the call) - what is this VBA call that will execute AcroJS in an PDF doc?
    2. Use AIC OLE objects to access the PDF doc.
    From your last answer - it sounds like I cannot add the annotation to the PDF from the Word VBA macro - is that correct?
    Our content is already in the Word doc - We want to execute a macro in Word that will add content to the PDF doc  - can this not be done in Word?

  • How to render a pdf file within flex

    Hi,
    could any one suggest, how to open a pdf file within flex.
    we have an application built on flex3.
    please suggest.
    regards,
    John

    Hi,
    Is it a Flash or AIR app?
    If it's an AIR app, then use the HTML/web, where you then can navigate to the URL of your PDF.
    If it's an Flash app, then set the wmode to transparent: http://kb2.adobe.com/cps/127/tn_12701.html#main_Using_Window_Mode__wmode__values_
    And then create an iframe in your HTML page, where you load you PDF, set the iframe z-index, so it gets shown on top of the Flash object. Then you kan use the javascript bridge to interact with the iframe.
    Best regards
    Martin

  • Multipage PDF imported at 100% - can I resize all doc pages to auto snap to the PDF size?

    Hi all,
    I've got a popular multipage PDF import script that I can run and import PDF'S into indesign. I use this to import every page at 100%, usually these are A1 in size but they do differ - Is there a way to adapt it to automatically change all document page sizes to match the imported pdf size?
    Most of these PDF import scripts have options to fit the pdf's to the page, I need the other way around - to look at the size of the pdf page being imported and set the doc size so the PDF fits on it!
    Any ideas?
    Even if anyone has a script to resize a one page document to fit a placed graphic frame within it - that would be extremely helpful!
    Thanks

    Try this script from Roland Dreger: Fotobuch mit Adobe InDesign — Roland Dreger, Grafikdesign .

  • Embed PDF in a Flex Application

    Hi All,
    I am trying to embed a PDF Document in a Flex Container, but
    I think it is impossible.. Some people talks about iframes, but it
    is not a nice workarround at all.
    I have read that in Adobe Air it is possible to do that.
    ¿Why in Adobe Air and not in Adobe Flex?
    Has anyone been in trouble with this and has a solution?
    Thanks in advance,
    toni

    Here is a work around if you can call a JSP page:
    Flex code:
    var jspLink:URLRequest = new
    URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
    navigateToURL( jspLink, "_blank" );
    JSP Page code:
    <%@ page errorPage="error.jsp" %>
    <%@ page import="java.io.*" %>
    <%
    //Get the parameters
    String downloadFileName=request.getParameter("fileName");
    String fileName = application.getRealPath("/downloads/" +
    downloadFileName);
    File file = new File(fileName);
    if (!file.exists()) {
    throw new IOException("File does not exist.");
    // Get the size of the file
    long length = file.length();
    // You cannot create an array using a long type.
    // It needs to be an int type.
    // Before converting to an int type, check
    // to ensure that file is not larger than Integer.MAX_VALUE.
    if (length > Integer.MAX_VALUE) {
    throw new IOException("File too big.");
    response.reset();
    response.resetBuffer();
    response.setContentType( "application/pdf" );
    response.setHeader ("Content-Disposition", "filename=" +
    downloadFileName);
    //Prevent the Java error: "getOutputStream() has already
    been called for this response"
    out.clear();
    out = pageContext.pushBody();
    InputStream in = new FileInputStream(file);
    OutputStream output = response.getOutputStream();
    try {
    int curByte=-1;
    while( (curByte=in.read()) !=-1){
    output.write(curByte);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    } finally{
    output.flush();
    in.close();
    response.flushBuffer();
    %>

  • PDFs in a Flex App.!

    Hello everyone,
    I am building an app. where the user can load and display a PDF file.  I`ve read (in a different Adobe forum) that this can only be done in an AIR app. because Flash apps. can only interpret/display a limited set of HTML tags.  However, after a little searching I found this article (by an Adobe Flex engineer):
    http://raghuonflex.wordpress.com/2006/12/07/flex-i-frame/
    Has any support for displaying PDFs been added to Flex 4, or is this solution the best/only way to go?
    Thanks in advance for any help anyone can give!
    Matt

    Here is a quick example of a HTTPService to capture an XML
    file. I created a simple Alert to show one way to access the XML
    element you are trying to get. Obvioulsy there are many ways to
    traverse XML, but this should get you started.
    If you are still confused, try posting your actual code, and
    I can modfiy it.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="customersRPC.send();">
    <mx:Script>
    <![CDATA[
    import mx.collections.*;
    import mx.controls.*;
    import mx.rpc.events.*;
    import mx.events.*;
    [Bindable]
    private var customers:ArrayCollection = null;
    private function customersRPCResult(event:ResultEvent):void
    customers = new ArrayCollection();
    customers = event.result.customers.person as
    ArrayCollection;
    Alert.show(event.result.customers.person[0].first);
    // Fault handler - displays the error
    private function
    customersRPCFaultHandler(event:FaultEvent):void
    Alert.show(event.fault.message, "Could not load
    customers.php XML");
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="customersRPC"
    showBusyCursor="true"
    url="
    http://127.0.0.1/Test1/bin/customers.php"
    result="customersRPCResult(event);"
    fault="customersRPCFaultHandler(event);"/>
    </mx:Application>

Maybe you are looking for

  • A column "name" from  JFileChooser

    Hi all, I want to overwrite the sorting method of names of files in JFileChooser. How can I get a column “name” from JFileChooser? Thanks

  • Major sync issues between iphone and itunes + outlook

    I have an iphone 5, mistakenly pushed the button to update to ios7, got a new window pc with win8 and office13, and mistakenly again got updated itunes 11.1.3...after many years of pretty seamless itunes/outlook calendar/contacts/podcasts/ etc etc sy

  • Where to buy a power adap

    Is there any retail stores that sell the power adapter and extra battery for a zen micro? I dont have a credit card so online stores are not an option.

  • CORBA and oracle 8i

    I'm trying to execute the examples in the following document: Oracle8i Enterprise JavaBeans and CORBA Developer's Guide Release 8.1.5 A64683-01 But when I try to publish the objects it appears many errors, related to the java clases and visigenic cla

  • Template Editable background-image

    Using Dreamweaver templates. I would like to be able to customize a background image in a DIV ID on individual pages. Can someone offer some sample code? Thanks. Dave