How to preload PDF with data (XML/FDF/XFDF any) in PHP ?!?

I looked everywhere and i can't find working example of php script and pdf document and data file that i can upload to my Apache, open Firefox or IE enter url like http://myserver/script.php and i get a pdf opened with browser and filled with data from data file. Let it be the simplest pdf with one textfield.
Anybody ?
in need
£ukasz Pêkalak

Thanks for your reply, but I'm afraid it doesn't work :-( Could you browse my code and check what I'm doing wrong???
full mxml code:
<?xml version="1.0" encoding="utf-8"?><mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="personRequest.send()">
<mx:Script><![CDATA[
     import mx.rpc.events.ResultEvent; 
     [Bindable]
     public var searchResultsXML:XML;  
     private  function getPerson(evt:ResultEvent):void 
      {          searchResultsXML = (evt.result
as XML);
          trace(searchResultsXML);     }
]]></mx:Script>  
<mx:HTTPService 
id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false"
method="POST" showBusyCursor="true" resultFormat="e4x"></mx:HTTPService>
<mx:DataGrid  id="searchResult" dataProvider="{searchResultsXML.dane}"></mx:DataGrid>
 </mx:Application> 
trace statement returns:
<person>
<dane>
<id>1</id>
<nazwisko>Topczewski</nazwisko>
<imie>Mariusz</imie>
<imie2/>
<miejscowosc>Bia?ystok</miejscowosc>
<ulica>Nowogródzka</ulica>
<dom>7B</dom>
<lokal>25</lokal>
</dane>
<dane>
<id>1</id>
<nazwisko>Topczewski</nazwisko>
<imie>Mariusz</imie>
<imie2/>
<miejscowosc>Bia?ystok</miejscowosc>
<ulica>Sybiraków</ulica>
<dom>15</dom>
<lokal>27</lokal>
</dane>
</person>

Similar Messages

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • How populate itemrenderer items with data.

    How populate itemrenderer items with data. Ie after my app starts I generate an array collection that I want to assign as the data provider to each combobox in my item renderer, which im using in a datagrid.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955"
                   minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:ArrayCollection id="booksWithStores">
                <fx:Object name="book1" stores="{new ArrayCollection(['store1','store2'])}"/>
                <fx:Object name="book2" stores="{new ArrayCollection(['store1','store3'])}"/>
                <fx:Object name="book3" stores="{new ArrayCollection(['store2','store3', 'store4'])}"/>
                <fx:Object name="book4" stores="{new ArrayCollection(['store1','store4'])}"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="booksWithoutStores">
                <fx:Object name="bookA"/>
                <fx:Object name="bookB"/>
                <fx:Object name="bookC"/>
                <fx:Object name="bookD"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="allStores">
                <fx:String>store1B</fx:String>
                <fx:String>store2B</fx:String>
                <fx:String>store3B</fx:String>
                <fx:String>store4B</fx:String>
            </s:ArrayCollection>
            <fx:Component id="renderer1" className="Renderer1">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{data.stores}" />   
                </s:MXDataGridItemRenderer>
            </fx:Component>
            <fx:Component id="renderer2" className="Renderer2">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{storesList}" />
                    <fx:Script>
                        <![CDATA[
                            import mx.collections.ArrayCollection;
                            [Bindable]
                            public var storesList:ArrayCollection;
                        ]]>
                    </fx:Script>
                </s:MXDataGridItemRenderer>
            </fx:Component>
        </fx:Declarations>
        <mx:Form>
            <mx:FormItem label="Dynamic Stores">
                <mx:DataGrid dataProvider="{booksWithStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{renderer1}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
            <mx:FormItem label="Static Stores">
                <mx:DataGrid dataProvider="{booksWithoutStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{createRendererWithProperties(Renderer2, {storesList:allStores})}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
        </mx:Form>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                public static function createRendererWithProperties(renderer:Class, properties:Object):IFactory
                    var factory:ClassFactory=new ClassFactory(renderer);
                    factory.properties=properties;
                    return factory;
            ]]>
        </fx:Script>
    </s:Application>

  • How to create PDF with Form Builder (T-Code:SPF) and how to use it?

    How to create PDF with Form Builder (T-Code:SPF) and how to use it? Is there anyone can show me some doc. or PA material ? << removed >>  Thank you very much!!
    Edited by: Rob Burbank on Nov 11, 2010 1:04 PM

    PDF forms also known as Adobe From or Interactive Forms.
    Check this link -
    Interactive Forms
    REG:ADOBE FORM
    Adobe forms
    Regards,
    Amit

  • Pdf form for data from another form with data, xml or pdf, tables not expanding

    Sir,
    I am using Adobe Acrobat 9 Pro and LifeCylce to do these forms. I have made several subforms for a Risk Assessment for the mission they fly. I have also made up another form with tables that would connect with each subform data. This form also will give me and others a % of the values received from the data to help us with seeing problem area towards Safety.
    I am able to connect the data to the form from the Risk Forms but when I go and add another group of data it over writes the data that was already in the data collection form. The tables are dynamic and able to expand with the generated data but when I compile several Risk Forms, xml. data into one single data group, the receiving tables will not except this data. To compile the data I am in Acrobat and using the form-manage form data-merge data to spreadsheet than enter as a report that is xml. Still not working. I also tried to save the form, with data already in the tables, and then opened it again and add data to it, it will over write the existing data in the form. This form does work great with the generated data in LiveCycle.
    Any suggestions???

    Thanks Paul
    Did as you said and for each subform binding tab made sure I have "Repeat subform for each data item" checkbox and still no change when I add the data.
    I even tried to combine the xml data and that file just has the main page and not the data pages. just another problem that is happening.
    Any other suggestions on this expanding tables and receive single forms one at a time.
    Bill

  • WD(ABAP) - How to convert PDF object to XML

    I know there is a way available to converting PDF object to XML in JAVA. However how to achieve this goal in ABAP?
    In Web Dynpro ABAP, I can bind a context attribute to the pdfSource property of interactive form element. There also should be method to able to convert the binary content of this attribute to XML format, right? Does anyone know it?
    Your help would be greatly appreciated.

    Hi all,
    As an extension to Fred's question, is it possible to later use the generated XML data and present it in a PDF template?  It used to be possible using the FDF format, but Adobe seem to have discontinued that. 
    My basic requirement is to send the form data to a third party in XML format and for them to be able to view it in human-readable format, preferably using a PDF as a template. 
    Is this possible?
    Thanks,
    Jonathan

  • Make readonly pdf with data from forms

    Hi there,
    I really appriciate any help on this issue...
    I am not able to make read only file with data from the fillable pdf forms.
    Requirement is my client need some form where they can enter some data and make a read only file from those forms and send them to their clients.
    So I made fillable form in acrobat and send them, they will use reader to fill up the form but I dont know how to save those file with data so it will become just a document.
    is there any way ?
    Thanks....
    -M.

    I am soory I am slow...
    I made form file in acrobat... but after that my client is going to use reader and enter data to this forms and saves it. and then my client is going to send them to their customers.
    So I shall use reader code and make all fields read only right ?
    In this case I have to make a button and run this code on submit ?
    Thanks.
    -M.

  • How to combine TrivialPageFlowEngine with JAZN XML-based provider ?

    With help TrivialPageFlowEngine possible will limit access to pages, and also to set pages for logon. However, JAZN XML-provider provides the same functionality. How to combine these two approaches

    Rustam,
    can you help me with "TrivialPageFlowEngine"? Where can I get documentation for it to have a quick lokk before replying to your request. Oracle9iAS JAAS (aka JAZN) is based on the Java Authentication and Authorization Service and implements it's own provider.
    If you look in the OC4J demos for jazn, there are two samples explaining how to setup JAZN (If installing OC4J with Oracle9iDS or Oracle9iAS then jazn already is defined to be the default provider).
    If e.g. you use Oracle9iAS and configure (and deploy) a Servlet for basic authentication, then this automatically is performed by the Oracle Single Sign-on server (if configured for OID) or direct jazn-data.xml (if not using OID). All your code needs to do is to get the authenticated principal's name.
    From your posting it is not clear if you require authentication or authorization alike. Authorization requires permission classes to be written and assigned.
    Fran

  • How to populate DataGird with data returned from php page?

    Hi, I'm new in Flex, I try to populate DataGrid with data from PHP, My code is
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false" method="POST" showBusyCursor="true" resultFormat="e4x">
    </ mx:HTTPService>
    <mx:DataGrid 
    id="searchResult" dataProvider="{???what to paste here???}" y="30">
    </mx:DataGrid>
    private  
    function getPerson(evt:ResultEvent):void { var res:XMLList = evt.result..dane as XMLList;searchResults =
    new XMLListCollection(res); 
    output from PHP
    <person>
    <dane>
    <name>ABC</name>
    <street>XLXXLX</street>
    </dane>
    <dane>
    <name>DEF</name>
    <street>YAYAYAY</street>
    </dane>
    </person>
    If I set the dataProvider as "searchResults" it doesn't work. I probably have to set as dataprovider any ArrayCollection , but I don't know how to convert my XMLListCollection to it.
    Could anyone help me populate Datagrid with
    name | streer
    ABC, XLXXLX
    DEF, YAYAYAY
    Best Regards,
    Mariusz

    Thanks for your reply, but I'm afraid it doesn't work :-( Could you browse my code and check what I'm doing wrong???
    full mxml code:
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="personRequest.send()">
    <mx:Script><![CDATA[
         import mx.rpc.events.ResultEvent; 
         [Bindable]
         public var searchResultsXML:XML;  
         private  function getPerson(evt:ResultEvent):void 
          {          searchResultsXML = (evt.result
    as XML);
              trace(searchResultsXML);     }
    ]]></mx:Script>  
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false"
    method="POST" showBusyCursor="true" resultFormat="e4x"></mx:HTTPService>
    <mx:DataGrid  id="searchResult" dataProvider="{searchResultsXML.dane}"></mx:DataGrid>
     </mx:Application> 
    trace statement returns:
    <person>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Nowogródzka</ulica>
    <dom>7B</dom>
    <lokal>25</lokal>
    </dane>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Sybiraków</ulica>
    <dom>15</dom>
    <lokal>27</lokal>
    </dane>
    </person>

  • Email form as pdf (with data)

    I'm new to using LiveCycle and Adobe Forms- so I know this question is redundant.  I have read several threads regarding this same issue I'm having, but don't see any follow-up responses that provide solid solutions. 
    I have created a fillable form using LiveCycle Designer 8.0.  I need to be able to allow users to submit the filled out form as pdf via email (using Outlook-all users uave Outlook on their stations).  I've adjusted the button properties (using button, not email submit button), adjusted the xml code (to submit as pdf instead of xml), etc.  I may have done too much or adjusted things so that they negate each other.  I am able to get the process to work fine using Acrobat 8.0 Pro, but the button does nothing when using Adobe Reader XI. 
    Users will be using the Adobe Reader XI when filling out & emailing the form.
    All responses are greatly appreciated!  As usual..there's a time crunch with this project. 

    Looks like you need to Reader Extend the form.  Acrobat Pro has the capability to perform the functions you are after automatically.  If you want Reader to have the same capability, then you need to use PRO to 'Reader Extend' the PDF.
    If you have a LiveCycle server, that can be used as well - providing you have a server certificate.
    Please read the limitations in Pro for using it to extend documents - as per the EULA.
    Mark

  • How to use pdf annotation data generated by Digital Edition to different Pdf reader?

    Hi,
    I am working on an application which is suppose to use Adobe Digital Edition PDF annotation data in another pdf reader.
    Using Digital Edition Annotation Data we need to generate highlights and notes.
    My question is : How we can read this Adobe Digital Edition annotation data to generate highlight and notes in different reader.
    E.g of annotation data:
    http://codebeautify.org/xmlviewer/32b3b7
    Thanks
    Mrityunjay

    HI,
    Try this Standard program
    RSTXLDMC  -->    Uploading TIFF Files to SAPscript Texts
    Regrads,
    S.Nehru

  • How to remove timestemp with Date Column in BI Answers

    Hi All,
    i want to know how can I remove timestamp with date col from repository with "caste" command???
    Regards
    Message was edited by:
    53637

    hi,
    ur e-mail id is not working so i paste the query explain plan here:
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT POS.POS_DATE saw_0, POS.POS_ASSET_DESC saw_1, POS.POS_MARKET_VAL_LCY saw_2, POS.POS_INT_ACCR_LCY saw_3 FROM WH1 WHERE POS.POS_DATE = date '2007-01-31' ORDER BY saw_0, saw_1, saw_2, saw_3
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- General Query Info:
    Repository: Star, Subject Area: WH1, Presentation: WH1
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Logical Request (before navigation):
    RqList  distinct
        POS.POS_DATE as c1 GB,
        POS.POS_ASSET_DESC as c2 GB,
        POS.POS_MARKET_VAL_LCY as c3 GB,
        POS.POS_INT_ACCR_LCY as c4 GB
    DetailFilter: POS.POS_DATE = DATE '2007-01-31'
    OrderBy: c1 asc, c2 asc, c3 asc, c4 asc
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Execution plan:
    Child Nodes (RqCache):
    RqList <<6636>> [for database 3023:2470:wh1,46] distinct
        cast(POS.POS_DATE as  DATE )  as c1 GB [for database 3023:2470,46],
        POS.POS_ASSET_DESC as c2 GB [for database 3023:2470,46],
        POS.POS_MARKET_VAL_LCY as c3 GB [for database 3023:2470,46],
        POS.POS_INT_ACCR_LCY as c4 GB [for database 3023:2470,46]
    Child Nodes (RqJoinSpec): <<6672>> [for database 3023:2470:wh1,46]
        POS T44641
    DetailFilter: cast(POS.POS_DATE as  DATE )  = DATE '2007-01-31' [for database 0:0]
    OrderBy: c1 asc, c2 asc, c3 asc, c4 asc [for database 3023:2470,46]
    +++Administrator:2a0000:2a0002:----2008/01/16 03:14:25
    -------------------- Sending query to database named wh1 (id: <<6636>>):
    select distinct  TRUNC(T44641.POS_DATE) as c1,
         T44641.POS_ASSET_DESC as c2,
         T44641.POS_MARKET_VAL_LCY as c3,
         T44641.POS_INT_ACCR_LCY as c4
    from
         POS T44641
    where  (  TRUNC(T44641.POS_DATE) = TO_DATE('2007-01-31' , 'YYYY-MM-DD') )
    order by c1, c2, c3, c4
    +++Administrator:2a0000:2a0002:----2008/01/16 03:17:21
    -------------------- Query Result Cache: [59124] The query for user 'Administrator' was inserted into the query result cache. The filename is 'C:\OracleBIData\cache\NQS_LENOVO_733059_11665_00000002.TBL'.

  • How to compress pdf with images

    Hi,
    How can we compress pdf size using Acrobat SDK?
    Also can we downsample pdf image elements?
    Waiting for your important ideas.
    Thanks & Redards,
        Avinash

    Hello, lrosenth:
    I want compress pdf with c#.
    More details:
    1.      Use in ASP.NET web site
    2.      pdf files user uploaded with big image
    3.      Compress pdf size using Acrobat SDK
    As you said “When you do the PDDocSave, be sure to specify all the various compression options including full save.”
    Could you tell you how to set the options with C# by program?
    Waiting for your important ideas.
    Thanks & Redards,
        KevinLi

  • How to install PDF with XDB on APEX 4.2.2

    Hi,
    does anyone know a "how to install PDF Output" using XDB instead of Apache or APEX Listener on APEX 4.2.2 Please give me the link.
    I tried to install APEX Listener but I always got errors so I came back to XDB. If there is an easy way to install the Listener please send me the link.
    Thank you and best regards
    Siegwin

    i wrote an article about installing listener but then the latest version of listener at time was 1.x . check the following
    Vishal's blog: Installing SSL enabled APEX 4.1 with development environment and APEX Listener on Weblogic and standalone
    listener now is at 2.x and a few steps such as configuration of properties have changed. you no longer have to create users such as adminlistener and the listenerAdmin page isnt there anymore.
    read the above and tell me the exact problem you have and i might help you better.
    read Contents . this is oracle's documentation for listener configuration. this is good. let me know if you need some help in understanding some step in this
    once listener is configured, configuring it for pdf download is very easy.
    let me know if this answers your query in the current thread
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog
    Message was edited by: VishalPathak(OBIEE-APEX)

  • How to sign  PDF with a smart card or USB token in C# through IAC ?

    Hi,
    My goal is to apply a certification signature (MDP) to a PDF document with a smart card (Belgium identity card) from a C# application.
    I start Acrobat through IAC.
    The JavaScript object apparently can only sign with PKCS12 file (.pfx)...
    To sign a PDF with a smart card I need to develop a plug-in if I am right?
    The samples in the SDK are to get a certificate from the windows certificate store or to write a Third party handler.
    I already get the certificate context (an HCRYPPROV object from windows certificate store)
    How can I create a signature field but mostly sign it? With DigSig I guess, but I’m lost in the API… does
    I have to use DigSigSignDoc ?
    Syntax : void DigSigSignDoc(PDDoc pdDoc, CosObj sigField, ASAtom filterKey)
    The filterKey value for the windows certificate store is “Adobe.PPKMS” but how can I choose my certificate?
    I also have to build a signature reference dictionary i guess?
    What does i have to do and in which order? I can't find any documentation on this.
    There is a more simple way?
    Thank you,
    Goffin
    Fabian

    Hi,
    -download the JDK sample "sdkAddSignature.js"
    -change the sign methode like this :
    Sign = app.trustedFunction (
        function( sigField, DigSigHandlerName )
       try {
       app.beginPriv();
       //the diSigHandler is "Adobe.PPKLite"
       var myEngine = security.getHandler(DigSigHandlerName);
       var ids = myEngine.digitalIDs;
       //choose an id which is installed in the microsoft store
      var oCert = ids.certs[3];
      // for (var i=0; i<ids.certs.length; i++)
      //  console.println("certificat n°"+ i + " " +ids.certs[i]);
      var oParams = {cPassword:"0000" , oEndUserSignCert:oCert }
      if(myEngine.login({cPassword:"0000",oParams:oParams,bUI:false}))
       console.println("OK");
      else
       console.println("Error");
      console.println("sigfield :" + sigField);
    sigField.signatureSign({oSig: myEngine,oInfo: { password: "0000",reason: ACROSDK.sigReason,location: ACROSDK.sigLocation,contactInfo: ACROSDK.sigContactInfo}}); 
    app.endPriv
       } catch (e) {
       console.println("An error occurred: " + e);
    -perform some test using the javascript debugger
    -and finally use IAC to execute the script

Maybe you are looking for