Getting Dynamic image in PDF ( form R/3 as URL )

Hi gurus ,
I am using a wd java application . In that i want to show employee pic in adobe form . I have RFC in place , that gives me URL (ex : http://retep.... ) containing employee pic Context is of type string
Now i have craeted a image field in PDF .when i directly binding context data to image dield , Image is not being displayed. i am not sure about scripting and how to bind that context to image field , so that based on the url it dynamically displayes employee pic.
Any suggestions are most welcome .
Regards
Abhay

In RFC instead of giving the URL ,tell them to give the image as a bytestream.And convert that byte stream into gif or jpg image using the following code,,,,,
byte[] pdfContent=wdContext.nodeOutput().currentOutputElement().getTestform();
     IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.JPG_IMAGE/* or u can use GIF_IMAGE*/);
     try{
          wdContext.currentContextElement().set<this is a user created attribute of typw string>Pdfurl(pdfResource.getURL());
     }catch (Exception e) {
          wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
And bind this pdf url to an iFrame or adobe interactive form it wil work..
xxxxxxxxxxxxxxxxxxxxxx
Warm regards
Shanto Aloor
Edited by: Armin Reichert on Apr 26, 2008 7:06 PM

Similar Messages

  • Unable to get dynamic interaction from PDF form

    Hello,
      I am trying to hide a textfield when a certain radio button options selected but so far I am <b>only able</b> to get it to work in the preview window of Adobe Designer 7.0 in NWDS.
      When I attempt to deploy the application, my interactive form will not be able to perform the same hide and unhide function. I have this piece of code added to my wdDoModify :
    if(!firstTime)
              IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("TM_form");
              iForm.setDynamicPDF(true);                 
    I also tried saving the PDF to my local machine but the hiding functionality just refuses to work. Do you know what I may have done wrongly ? Any help is greatly appreciate. Thnak you very much.

    Hello Kwok Wei,
    Has the <b>firstTime</b> flag been used in a right way in your code ? Aren't you creating an interactive form at the first go ? Then just reverse the condition to
    if(firstTime)
    But then, it depends on how have you written your application.
    Best Regards,
    Krish

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • Dynamic images in PDF (Adobe interactive form)

    Hi All,
            I have stored image in database using BLOB.
    I retrieve the image using
         WDWebResourceType.getWebResourceTypeForFileExtension(extn);//get Type
         IWDResource res = WDResourceFactory.createCachedResource(CSVFile, Filename, type1,true);
            res.getUrl(0);
    Where CSVFile is of type InputStream.
    But when I give this link to the image field in interactive form, the image is not getting displayed. (But it is getting displayed in the image UI element of web dynpro.)
    What should I do to show images in PDF from BLOB?
    Please let me know.

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • How to export dynamic images into pdf

    Hi,
    I need to export a image into PDF which we are getting it from DBase. This returns me the image as BLOB and this we are putting it in between the xml tags. I am passing the xml to xsl-fo. While i tried to export the xml data into pdf using xsl-fo, the content is getting exported into pdf but not the image. I am using FOP, and i have added fop.jar, batik.jar, avalon-xx.jar, jai_codec.jar and jai_core.jar to my class path. I am putting my sample xsl and xml here.
    xml:
    <RTFDrugReport>
    <ImagePath>http://www.thomson-pharma.com/tp/images</ImagePath>
    <NewsEdge>
    <NewsItem>
    <StoryId><![CDATA[200705223600.15_2774000daba43be0]]></StoryId>
    <HeadlineText><![CDATA[NeuroLogica's CereTom Supplies On Site Post-Fight Brain CT During De  La Hoya-Mayweather Weekend]]></HeadlineText>
    <ItemTime><![CDATA[05/23/2007 03:22:24 AM EDT]]></ItemTime>
    </NewsItem>
    </NewsEdge>
    </RTFDrugReport>
    xsl:
    <fo:static-content flow-name="xsl-region-before">
    <fo:block font-family="Helvetica" font-size="14pt" text-align="left" white-space-collapse="false">
    <xsl:variable name="imageName" select="concat(//ImagePath,'/logo_thomson_pharma.png')"/>
    <fo:external-graphic src="'{$imageName}'"/>first
    <fo:external-graphic src="url('{$imageName}')"/>second
    <xsl:value-of select="'{$imageName}'"/>thrid
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fourth
    <fo:external-graphic src="'{$imageName}'" content-width="100mm" content-height="100mm"/>fifth
    <fo:instream-foreign-object src='url("///file:/D:/Customization/collage.jpg")' height="3cm" width="3cm"/>
    </fo:block>
    </fo:static-content>
    Any help would be appreciated.

    hi,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    <b>interactive form has two imp properties:-</b>
    <b>*dataSource</b>
    data source points to the node all whose context attributes will be made available in the interactive form
    <b>*pdfsource</b>
    points to the context attribute which will hold the pdf.
    note that the type of this pdfSorce attribute will be binary.
    if you still have doubts.
    give me your gmail mail id. i 'll send a tutorial.
    with regards,
    -ag.

  • Using Dynamic Images in PDF Reports

    There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
    http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

    Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="LOGO"/>
    </fo:instream-foreign-object>
    On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
    <fo:instream-foreign-object content-type="image/jpg">
    <?LOGO?>
    </fo:instream-foreign-object>
    So in this case LOGO refers to either a single-value field, or a single-row report column value.
    Regards,
    Marc

  • Problems in displaying an Image in PDF Form

    hi,
    I have to display a photo in the PDF form dynamically, hence i have a used an element of type <b>Image Field</b>, where the URL has to be passed to fetch the photo from the location. though all the bindings has been done, the photo is not displayed. please help me find the solution.
    Thanks and Regards
    Poojith M V

    Hi Poojith ,
    follow these steps;
    -Choose imagefield element on to adobe form
    -Right click select choose image ,Browse for the image from the local drive.
    -Select Ember image Data
    -Select Add to library ,save it
    Now drag the added image from library on to adobe form and use.
    Cheers
    Swathi
    Do offer pts;-)

  • Dynamic creation of PDF forms

    I'm looking for possible ways to dynamically create PDF forms (not necessarily interactive):
    Scenario:
    An unknown number of text elements has to be placed on an unknown number of pages. These elements may come with positional and format attributes as part of the context data (and/or have positional data calculated as server side form script using JavaScript).
    Question:
    How do I create these elements dynamically?
    Is it possible to add/delete elements (text elements, pages, content areas, ...) of the form using the XML Object Model in server side scripts?
    What ways are there to maybe access the Adobe Document Services directly to submit the data and positional information (without having to create a "dummy" form which would contain the scripts to add all the required elements)?
    I hope that I described my problem understandable, and that you can provide me with some helpful information, be it a different concept, parts of a solution or just links to helpful documents or infos.
    Thanks,
    Max

    No, we do not support passing values into the form like that.
    Randy

  • Using dynamic referencing in PDF Form with Checkboxes

    I have created a checklist that contains approx 60-70 steps. About 20 of them are to have a checkbox that fills an adjacent field with the date, and another with the user name. I have already got this functioning as a stand alone process.
    aaa = checkbox
    aaadate = field for date
    aaaname = field for name
    [code]
    function test() {
    var one = this.getField("aaa");
    var two = this.getField("aaadate");
    if (one.value == 'Yes') {
    if (two.value == "") {
         this.getField("aaadate").value = util.printd("dd-mmm-yy",new Date());
         this.getField("aaaname").value = identity.name;
    }} else if (one.value == 'Off') {
         this.getField("aaadate").value = "";
         this.getField("aaaname").value = "";
    [/code]
    I do not want to write a piece of code for each checkbox so I am trying to figure out how to use dynamic referencing so that when i check on a checkbox, the code takes the checked checkboxes' name (aaa) and is able to determine the two other fields name by appending/concatenating (name + "date"  = aaadate)
    I have tried various methods and done tremendous research; I'm not sure if I lack the knowledge to incorporate what I've found properly, if I just have been looking in the wrong places for the wrong things. It seems like this should be possible in a PDF form...
    Please help

    You need to inject the part of the field name that changes as a variable. So your code would be something like this:
    function test(base) {
        var one = this.getField(base);
        var two = this.getField(base+"date");
        if (one.value == 'Yes') {
            if (two.value == "") {
                this.getField(base+"date").value = util.printd("dd-mmm-yy",new Date());
                this.getField(base+"name").value = identity.name;
        } else if (one.value == 'Off') {
            this.getField(base+"date").value = "";
            this.getField(base+"name").value = "";
    And you would call it like so:
    test("aaa");
    test("bbb");
    etc.

  • Dynamically copy a PDF form to a specific repository via a button

    Hi,
    Sorry in advance if this is a dumb issue for which there is an obvious solution, but since I'm not a developer I couldn't tell and my searches around the web haven't allowed me to solve this out.
    As the web designer here, I've been asked to create a dynamic PDF that would include a form and a button that would export a copy of the completed form when clicked. The copy would need to be placed into a specific repository on a local server. I found out that is was possible to create a dynamic button in InDesign when creating a dynamic PDF form, but it seems that the native actions available for the buttons are quite simple, like switching to a page within the document or sending an email. I would need, with the help of my developer, collegue, to customise an action for a button so that it would act like mentionned here above. I thought it might involve some scripting within InDesign to customise the action. Am I right and what would be the best way to achieve this?
    Thanks!

    When the form I designed for some nurses is used, the information has to be copied and then pasted into a text editor program for a patient file. When I do a select all and copy, it only copies the fields, not the information entered by the nurses. Is there a way to allow all of the fields and text entered to be copied and then pasted in the editor program?

  • Is it possibile to add dynamic piechart on PDF form

    Hi
    I am trying to create a calculation PDF form. This form is doing several calculation. I need to plot/draw/create pie chart based on the data entered on form.
    Is this is possibile using Adobe LiveCycle Designer?
    How can i do this task?
    Thanks in advance.
    Thanks,
    Victor

    Hi Victor,
    We have started to use Flex, which generate a Flash (swf) file. We have created a simple form and embed the swf into a pdf, so that all of the form functionality is in the swf. However we have not worked out as yet how to save user inputted data into the swf.
    Thom Parker (WindJack Solutions) has an example of embedding a video into a dynamic PDF, but this takes a bit of scripting. Example here. In this case you would have the data in the dynamic form abd the pie chart (previously created in Flex) in the swf. The trouble will be when trying to link the two. We are too early on the Flex road to be able to give you clear/correct answers on this.
    Attached is an example of a swf (from Flex) in Acrobat. You will need Acrobat/Reader v9 to view. It is very basic and currently does not remember any changes to the swf. Also the pie chart does not update automatically - hit the refresh button. Flex developers may cringe  ;-)
    In summary if need pie charts don't use LC Designer. If you are developing in Flex don't import swf into Acrobat - use as web based form or AIR.
    Lastly - there is a view amongst visualisation experts that pie charts are not the best way to display data - better to use a column chart.
    Good luck,
    Niall
    ps - slightly improved version that updates the pie chart as data is amended. Using the change event of the textInput object.

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • Placing dynamic image on PDF

    Hi Folks
    I have another question regarding placing images on my PDF Form.
    I know how to add static images by embedding them on the page, but now the requirement is to only display one of four images based on certain criteria.
    My first question is Where do I store these four images? In KM?
    and How to I retrieve the href for the image before binding the context to the Image Field?
    Thanks in advance
    Anton Kruse

    It sounds like you have an ordinary question rather than a new idea on how to improve LabVIEW.
    Post in the LabVIEW forum.

  • Getting Error 'Save As PDF Form' in Acrobat XI FormsCentral

    I am trying to 'Save as form as PDF Form' in Acrobat XI FormsCentral, and I am getting the error. When I click Yes, nothing happens.

    Hello George,
    Thank you for your response. I was attempting to save a form created in FormsCentral as a PDF Form, but I was getting the error.
    I have since determined that the file gets saved to AppData\Local\Temp, but could not write there. I added the path to 'Windows Trusted Sites' under Preferences - Security (Enhanced)

Maybe you are looking for