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.

Similar Messages

  • 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;

  • 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

  • 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.

  • 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

  • Content server and Dynamic image in PDF

    Hi all,
    I am trying to make up a PDF through SFP transaction in ABAP that has a photograph included in it. This photograph is saved in the content server. The photograph that is inserted depends on a certain number of data and the URL of the picture is dynamically set using function : ARCHIVOBJECT_GET_URI.
    The URL is ok but when I bind this to image object in PDF, the picture does not appear !
    Has anyone dealt with a simlilar problem ????
    Nicolas

    up

  • Problem with placing dynamic images.

    I have a 800x600 file. It is being used for a PhotoSlide
    show.
    The images are displayed dynamically, as external files.
    Some of the photos will be taken 1 hour before the
    presentation, so I have
    it set up to display img001.jpg, img002.jpg, img003.jpg as
    external files.
    Once the photos are taken, they'll be renamed, and placed in
    the appropriate
    folder, so that they'll appear in the presentation, without
    having to
    republish the authorware file.
    I have the display icons for the images set to display the
    image at 400,300,
    which will center the image on-screen.
    The problem is that when i change the images out, from a
    verticle to a
    horizontal picture, then run the piece, but image's placement
    on screen
    changes.
    So how can I set the linked external file to ALWAYS display
    centered on
    screen, no matter the orientation, or size of the picture.

    That doesn't change anything from when I had X = 400 and
    Y=300.
    The images are linked externally.
    This is going to be a photo slideshow to be shown after a
    wedding, during
    the reception. I will NOT be there to administer this, or to
    republish the
    authorware files. So at the final segment of the slideshow,
    we'll be showing
    several photos taken earlier, at the wedding.
    I have it set up to display 5 photos from the wedding. They
    are grabbed
    externally, but Authorware looking for img01.jpg - img05.jpg.
    The problem is that the image's placement on-screen changes
    when a different
    size image is put in place.
    For example, if i publish the authorware file, and i was
    using a 720 x 480
    image, everything works fine. But if i replace the external
    image with a 480
    x 720 image, the placement on screen is no longer set for the
    center of the
    image to appear at the dead center of the screen (400,300). I
    need it to
    work like this, since I don't know if the wedding photos
    being added will be
    set to portrait or landscape.
    "Steve Howard **AdobeCommunityExpert**"
    <steve@$NoSpam$tomorrows-key.com>
    wrote in message news:e4t1rv$iv1$[email protected]..
    >
    >> So how can I set the linked external file to ALWAYS
    display centered on
    >> screen, no matter the orientation, or size of the
    picture.
    >
    >
    >
    > Set the display icon Positioning property to On Screen.
    Set the Initial X
    > location to WindowWidth/2
    > Set the Initial Y location to WindowHeight/2
    >
    >
    > Steve
    >
    >
    > --
    > ACE - Adobe Community Expert, Authorware
    > My blog -
    http://stevehoward.blogspot.com/
    > Authorware tips -
    http://www.tomorrows-key.com

  • CFDocument pdf CF8.01 super slow~unless I remove dynamic image

    Upgraded from CF7 to CF8.01 and all the hotfixes. Since the
    upgrade, dynamic .pdfs are super slow. I commented out an image,
    and now it loads faster. What changed in CF8.01 to cause problems
    with including dynamic images in .pdfs? How do I get around this
    and still use images? Here's my code..
    <img src="file://///xxxDocServer/HiRes
    Photos#Biography.File_Path#" width="119" height="153" />
    I'm open to trying anything to speed this up.. Just don't
    want to have to rollback to CF7
    Help... anyone at Adobe have any ideas? Pretty
    please??

    Make sure your image is in sRGB colorspace.

  • CFDocument CF8 super slow~unless I remove dynamic image

    Upgraded from CF7 to CF8.01 and all the hotfixes. Since the
    upgrade, dynamic .pdfs are super slow. I commented out an image,
    and now it loads faster. What changed in CF8.01 to cause problems
    with including dynamic images in .pdfs? How do I get around this
    and still use images? Here's my code..
    <img src="file://///xxxDocServer/HiRes
    Photos#Biography.File_Path#" width="119" height="153" />
    I'm open to trying anything to speed this up.. Just don't
    want to have to rollback to CF7.

    Make sure your image is in sRGB colorspace.

  • Showing dynamic images in BI Publisher PDF report

    I defined a RTF report layout in BI Publisher. Almost done, but one requirement missing...
    I should be able to include a dynamic image (so every "object" on the report has it's own image).
    At first I embedded the base64 converted image in the XML output, but then I am running into the 32K limit. (Small pictures render fine).
    Although Marc Sewtz sort of promised in June 2008 (!) : "One issue, which we'll address in the next version of Application Express, is the 32k limit on report columns." on his blogpost http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html , it still not addressed.
    So I tried to embed the image in the report using a trick described on the forum (and BIP documentation), by embedding a dummy picture and set the "Alt-text" of the picture to
    (as an example) : url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}.
    The strange thing is, that works fine for HTML Output and Excel output, but not for Word and PDF (why it does work for Excel and not for Word is very mysterious....). And of course I need a PDF output.
    I also tried to embed a FO snippet:
    <fo:block>
    <fo:external-graphic src="url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}" />
    </fo:block>
    But that doesn't (seem to) work on any output...
    But
    <fo:block>
    <fo:external-graphic src="D:\Users\rhartman\Documents\PrintScreen Files\Screenshot004.jpg" />
    </fo:block>
    does produce the image on the PDF output.
    So who has an idea how to solve this issue?? You'll be rewarded with a lot of pionts ;-)
    TIA
    Roel

    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

  • How to dynamically call image  in PDF for Acrobat ver 8.1 onwards?

    Hi Experts,
    I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/
    We are now using Acrobat 8.1.1. Please refer following thread.
    http://kb2.adobe.com/cps/405/kb405270.html
    From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.
    However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.
    Click on the Layout tab and choose None for the Caption position.
    u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
    u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client
    write following code in wddoinit
    try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
    Please let me know what is the alternate method for Adope ver 8.1.1
    Regards,
    Gary

    Hi Gary,
    First you upload the image in SAP through se78.then write the below code in your adobe form interface.
    data :  v_object type  TDOBJECTGR value 'GRAPHICS',
            v_id  type TDIDGR  value 'BMAP',
            v_btype type TDBTYPE value 'BCOL',
            V_FIELD TYPE XSTRING.
    V_NAME = 'ZW_DEVMAN_LOGO'.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = v_object " 'GRAPHICS'
    p_name = v_name " Name of the logo as in se78
    p_id = v_id " 'BMAP'
    p_btype = v_btype " 'BCOL' ( whether the image is in color or black and white )
    RECEIVING
    p_bmp = v_field
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    g_logo = v_field.
    Declare g_logo as xstring in global data.
    In context of the form make one graphic element with field g_logo and mime type BMP.It will work.
    Regards,
    Simi A M
    Edited by: amsimi on Jan 26, 2011 5:30 AM

  • Dynamic image in a pdf

    Hi All,
             I am trying to add image in an adobe form, the image source is in R/3 and through RFC, the url of image is being exported.
    Could you please help, how to display images on PDF dynamically.
    Regards
    Umang

    Hi Umang Mathur   :
       I meet the same problem, now i develop employee CV programe, when a employee open his CV,his photo will display in PDF, i find your answer and do it.
       when i use the script :this.value.image.href = xfa.resolveNode(this.value.image.href).value;When preview it these error display : Script failed (language is formcalc ;context is xfa[0].form[0].Node[0].page1[0].ImageField[0])scripts= this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error : Malformed SOM expression;
       The Photo do not display in PDF form.
       Can you tell me how do you do with it?
                                                                   thank you                                                                               
    zunxian

  • Dynamic image in table  in adobe PDF form

    Hi experts
                    I have been using a table in interactive form . In table
    I have a image field in which I want to insert employee pic which is comming in table as a URL . I have craeted a image field and attached tha table field to it but its not displaying it .
    Do any one have any other solution to get dynamic image ( which is comming from R-3 ) in table
    Regards
    Abhay

    Hi,abhay
    Use something like this:
    String url = WDURLGenerator.getAbsoluteWebResourceURL
    (wdComponentAPI.getDeployableObjectPart(),"sap_travel_request.jpg");
    wdContext.currentDataSourceElement().setSapTravelRequestUrl(url);
    where SapTravelRequestUrl is context attribute of type String,that is binded to your
    ImageField element.
    Regards,
    Michael

Maybe you are looking for

  • Crystal Reports for Eclipse and CR2008

    SQL-Server 2005 CR 2008, Ver.12.0.0.683 Crystal Reports for Eclipse Plug-in Details: all Plug-in-files from Business Objects have the Versions 1.0.4.v1094 or 11.8.0.v20060727 except "CR for Eclipse Dev.Guide": Ver. 1.0.0.v1094 I created a report with

  • Field & Table Name of ER1 Report

    Dear Experts , I am working on customisation of ER1 report, I wanted to know the field names & table name of the below given data. DETAILS OF GOODS OF GOODS MFGD 1.PRODUCT DESCRIPTION 2.CETSH 3.OPENING BALANCE 4 QTY MFGD 5.QTY RECVD 6.CLOSING BALANCE

  • Screen gets darker

    I cant find anything like this on the forum but perhaps I just missed something. For months now every 2 or 3 weeks the bottom right, bottom centre or the whole screen gets a bit darker. Normally if its part of the screen it get better after an hour b

  • Permitting user to choose value for a field only from F4

    Hi all,    I have the following requirement in table maintenance generator.    There is a custom field in the Z table for which table maintenance is generated to which a search help is attached.    Now in the maintenance screen(SM30) i get a F4 value

  • Migration From SQL 7.0 To Oracle 8.0.5

    Is there any tool to migrate from SQL Server 7.0 To Oracle 8.0.5 null