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

Similar Messages

  • Displaying a dynamic image using a PDF file.

    I am trying to find a way to display an image dynamically in my report.  The image happens to be .pdf  I have Crystal Reports  XI and I have the graphic location formula completed "
    10.93.138.250\Production\ProdOut\00\" & {Order_Record.URN_text} + "_p1.pdf" however it tells me PDF is not supported.  Is there a way around this?

    I have to agreed that what you are saying appears to be true from my attempts at getting .pdf files to work dynamically.  Using .bmp and .jpg files seems to work just fine but not .pdf, .xls, or .doc.
    In the Users Guide, in chapter 16, in the section titled "Working with static OLE objects" - it only talks about the picture type formats you mentioned and metafiles.  Later in this section is where it explains how to make a static OLE object dynamic.
    While it doesn't specifically say it won't work for other types - it sure doesn't seem to.  I see no reason why this should be true however!  Certainly Crystal appears to be set up to allow this and the fact that the objects are not images shouldn't matter.  Why is there a picture tab and a conditional formula button next to the graphic location label on the object if it can't be used?
    I'm trying to do something similiar to Carey.  I have maps to customers in a customer list and they are in .pdf files.  The location of the map is stored in the database.  I'm putting together a report of service calls and I want to print the map with each call.  It looks like I'll have to convert several thousand .pdf files to .jpg - that should be fun!
    Any chance this limitation will be eliminated sometime soon...
    Edited by: Randy Walter on Oct 2, 2008 6:40 PM

  • Dynamic images in reports -- PDF output

    In Reports uilder I can link an image object to a URL as described in the product help. This works well with an HTML output but in PDF only the image URL appears.
    How could I solve this problem?
    Thank you.

    Hi,
    The URL method of including images in valid only for HTML output.
    The Reports Builder Help on "Images says that:
    You can add an image to a report by:
    - selecting a column in the database that contains images
    - importing the image from a file into the report layout
    - linking an image object to a file
    - for HTML output, selecting a column in the database that contains URL links to images or linking an image object to a URL
    If you reference a URL for an image, the image is displayed when you format your report for HTML output. For other output formats, the URL text displays in the Paper Design view
    The reason for this is that Oracle Reports will only write the URL in the output. In case of HTML output, the browser can understand the URL, so it will fetch the image from the URL and show it. But this cannot be done by Acrobat Reader.
    For PDF output you will have to use one of the other methods of inserting an image.
    Navneet.

  • 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

  • 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

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

  • 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

  • Insert a dynamic link form R/3 into image field in PDF.

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

    Hi Abhay,
    If u are getting the URL from the R/3, then set the type of the context variable to the model type rather than making it as a String.
    map the type of the context variable to the type present in the RFC
    Hope this helps u
    Regards,
    Poojith MV

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

  • 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

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

  • To convert multiple image files to pdf using pdfsharp in C#

    Hey guys I have this C# code to convert any image file to .pdf using pdfsharp.dll. But I want to select multiple images for conversion please help. here's my code (plz note enable pdfsharp.dll in the reference)
    usingSystem;
    usingSystem.Collections.Generic;
    usingSystem.Linq;
    usingSystem.Text;
    usingSystem.Threading.Tasks;
    usingPdfSharp.Pdf;
    usingPdfSharp.Drawing;
    usingSystem.IO;
    namespaceConsoleApplication1
    classProgram
    staticvoidMain(string[]
    args)
    PdfDocumentdoc =
    newPdfDocument();
    doc.Pages.Add(newPdfPage());
    XGraphicsxgr =
    XGraphics.FromPdfPage(doc.Pages[0]);
    XImageimg =
    XImage.FromFile(source
    path...);
    xgr.DrawImage(img,0,0);
    doc.Save(destination path...);
    doc.Close();

    try this one
    public string CreatePDF(System.Collections.Generic.List<byte[]> images)
    dynamic PDFGeneratePath = Server.MapPath("../images/pdfimages/");
    dynamic FileName = "attachmentpdf-" + DateTime.Now.Ticks + ".pdf";
    if (images.Count >= 1) {
    Document document = new Document(PageSize.LETTER);
    try {
    // Create pdfimages directory in images folder.
    if ((!Directory.Exists(PDFGeneratePath))) {
    Directory.CreateDirectory(PDFGeneratePath);
    // we create a writer that listens to the document
    // and directs a PDF-stream to a file
    PdfWriter.GetInstance(document, new FileStream(PDFGeneratePath + FileName, FileMode.Create));
    // opens up the document
    document.Open();
    // Add metadata to the document. This information is visible when viewing the
    // Set images in table
    PdfPTable imageTable = new PdfPTable(2);
    imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
    imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
    for (int ImageIndex = 0; ImageIndex <= images.Count - 1; ImageIndex++) {
    if ((images(ImageIndex) != null) && (images(ImageIndex).Length > 0)) {
    iTextSharp.text.Image pic = iTextSharp.text.Image.GetInstance(SRS.Utility.Utils.ByteArrayToImage(images(ImageIndex)), System.Drawing.Imaging.ImageFormat.Jpeg);
    // Setting image resolution
    if (pic.Height > pic.Width) {
    float percentage = 0f;
    percentage = 400 / pic.Height;
    pic.ScalePercent(percentage * 100);
    } else {
    float percentage = 0f;
    percentage = 240 / pic.Width;
    pic.ScalePercent(percentage * 100);
    pic.Border = iTextSharp.text.Rectangle.BOX;
    pic.BorderColor = iTextSharp.text.BaseColor.BLACK;
    pic.BorderWidth = 3f;
    imageTable.AddCell(pic);
    if (((ImageIndex + 1) % 6 == 0)) {
    document.Add(imageTable);
    document.NewPage();
    imageTable = new PdfPTable(2);
    imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
    imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
    if ((ImageIndex == (images.Count - 1))) {
    imageTable.AddCell(string.Empty);
    document.Add(imageTable);
    document.NewPage();
    } catch (Exception ex) {
    throw ex;
    } finally {
    // Close the document object
    // Clean up
    document.Close();
    document = null;
    return PDFGeneratePath + FileName;

  • Dynamic image in header

    Hello,
    I've been starting to use Livecycle designer (version 8 it seems) a few weeks ago and I am currently confronted to a problem that I can't to solve.
    Basically, I need to create a Fragment that serves as a header for multiple documents.
    This Fragment contains an image field that changes depending on certain values on my form and of course, being a header, it is placed in the master page.
    Now, for some reason,the fragment works if my it is placed in the main page, but doesn't display any image if I place it in my master page.
    I have been using the following code to load the image:
    imageField.value.image.href = "../Pictures/myPicture.png";
    Alternatively, I have also tried to use a dynamic image field with the same code, and although it displays the picture in Designer (even when in the masterpage), the pdf is "corrupted" when I load it from Livecycle.
    Am I taking the wrong approach here? Is there anything that I can do?
    Thank you for any light you can shed on the matter.

    Hi,
    Don't have a complete answer, but you might get some indication for working with images here: http://assure.ly/mcFrC6.
    You should also have a look at John Brinkman's post: http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html.
    If you are using an ImageField object on the Master Page you might need to set its binding to Global. So that as new pages are rendered on the form, the image will be displayed.
    In relation to the href, I believe that you are hitting a security restriction.
    I am not sure how best to get the image in from LiveCycle, maybe someone else will have a better view.
    Good luck,
    Niall

  • Dynamic Images in adobe

    Hello All,
    I have a requirement for dynamic images on Adobe form.
    I have some images stored on portal server in a afolder called images which gets upadeted every hour . I have developed a java webservice which can get this images from the portal server.
    The reponse of the webservice is like " http://<Hostname>:<portnumner>/images/abc.png". I have impoted this webservice as Adaptive webservice model in WD.
    I have executed this webservice in WD and binded the response to IFRAME UI element and I am able to images(http://<Hostname>:<portnumner>/images/abc.png).
    Now I want these images to be on the PDF.
    I have installed and configurred  ADS and binded the Webservice response as Datasource to the intercative form. I am able to see the datasourcse in the data view of the interactive form.
    Now when I bind the response to the Image Field UI element I am unable to see the image.
    Please let me know if anyone has any idea on this.
    Thanks,

    Hi Naresh,
    It's an issue with ADS. Exactly not an issue but a requirement. The server on which images are available, has to be exposed to ADS.
    Your Admin might help you on that.
    Regards,
    SV.

Maybe you are looking for

  • Purchase order condition type

    Hello All, I have one requirement in which i want to show the total of three condition types of taxes section in one condition type in conditions tab. for eg in PO in invoice tab> taxes there are three condition of taxes like jm0p,jiex,jecp and there

  • Lightroom Mobile does not recognise my custom sort order

    I cannot find a way to get the Lightroom Mobile app on my iPad to recognise the custom sort order set up for the collection on my desktop. I am on the current versions of both Lightroom and Lightroom Mobile. The only sort option that appears in LR mo

  • Single Vendor Multiple customer with same address

    Hello Guru, I have one scenario in retail business.ie I have one single vendor with two different customer but the address of that customer is same in both of them.i.e the vendor address will be same(applicable) in both the customer.But the VAT numbe

  • Satellite C50-A-157 Sandisk USB won't work in Recovery Media Centre

    I can't get Sandisk Cruzer USB to work in Recovery Media Centre. Have tried formatting but no luck. I read on another Toshiba forum that Sandisk USBs don't work and that you have to use a different brand. Anyone know if that's true? Thanks

  • Rant The dumbest thing about PS CS4 crashing-

    -is that apart from losing any unsaved files forever (and when you're saving PNGs or JPEGs as copies, you can forget to save the master PSD file as you go) is that PS hasn't bothered to save any of your swatchest or recent file lists or any of the ho