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

Similar Messages

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

  • Content server and Images

    Hi... we've found some odd behaviour with content server and I'm wondering if anyone else has had similar experience.
    Our installation is spread accross a number of servers, we have a front end portal/image server with Content Server installed on one of the servers behind the firewall.
    When we create branding portlets (and content canvas portlets), it all works happily. The html template is created in the ptcs/publishedContent on the Content Server machine and images appear in the correct template folder on the Image Server machine and everything displays correctly on the portal page.
    Problem is, for any other content portlets (eg: announcement), the images end up in the ptcs/publishedContent on the Content Server machine as well ... which isn't good as this location is not accessible from the browser - the published html gets rendered correctly but no images appear.
    We don't want to manually transfer images from the Content Server to the Image Server and hack the generated ptcs html.... from what I can tell, all the properties set for the Image server are correct so we've hit a brick wall in terms of figuring out why it's behaving this way, our expectation was that the content portlets would operate in the same way as the branding portelts but this doesn;t seem to be the case.
    thanks in advance

    You should be able to edit the gateway space URL of the Content Server Published Content Web Service to include the published content location of where it is.
    Alternately, you can set the published content targer and file transfer method for the server (or any other content server section) by right-clicking on the top-level node (or the individual folder) in the Content Server Explorer, and selecting "Publishing Target..." and setting the appropriate values in the resulting dialog box.

  • 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

  • The difference between Telepresence Content Server and MSE 3500

    Good day! Could someone explain me what's the difference between Telepresence Content Server and MSE 3500? Why do I need to obtain two these devices for sorting out my tasks? I want to understand gist of the first and the second devices.

    In addition to what Jonathan posted above, here is a Capture Transform Share Solution Guide that goes over a little bit of what the TCS and MXE are and some possible deployment scenarios.
    In short, TCS is used to record video conferences or lectures that can be streamed on demand or live using various streaming or distribution methods.  One such distribution method is using the MXE 3500 to ingest the recordings from TCS and convert them to different media types and add in-video content such as logos etc.  However, from the MXE, you can't send the video back to the TCS for viewing, you'd need to send that off to another viewing portal such as Show and Share.

  • Confuguration of DMS using an external content server and KPRO

    Hello all,
    I am working in a new EH&S SAP environnement.
    The aim is to configure a DMS to link EH&S with an external content server Documentum using Kpro.
    I have done the following IMG activities:
    - Specify Content Servers (Tcode: OAC0)
    - Maintain Categories (Tcode: OACT)
    - Specify links
    - Specify Data Carriers
    - Define document types
    - Assign EH&S Document Types to Data Carriers
    But i am facing to the following problems:
    - CG36VEN: error: "could not create report for specification XX, variant XX and lang. EN.
    - CG34: error: cannot display document MSDS
    - CG4B: error: cannot display document TEST
    Are there other actions to be done in the IMG activities?
    Any idea to help me please?

    More details:
    I am working in a new EH&S SAP environnement.
    I have installed a new DMS link witn an external documentum content server and he is working fine.
    My aim is to configure EH&S to link SAP EH&S with my DMS.
    Actually my connexion between EH&S and DMS is not working.
    Can you tell me what are actions to be done to link EH&S to my DMS.
    Thanks,
    Ludovic Roux

  • Diff. between content server and archive server(SARA on content server)

    I am very interested about difference between content server and archive server. Is there content server supplied by SAP and archive server by third party producers or something else?
    If so dditionally what needs to be done to archive data (via Sara) on content server. I did it on sap R/3 4.0 on an archive server. Is it huge difference to do it on 4.7x2 on content server?

    Hey,
    The content server is used to save documents,
    and SARA (and other third party producers) are used to archive old data.
    For example:
    You should use Content server - When you need to save un-structured data about worker (e.g: pictures, documents and etc) .
    You should use SARA (and other third parties) - When you need to move to archive old
    worker which have left your organization before 5 or more years (there for they are not relevant for you)
    Here is some more information about Content server
    from help.sap.com:
    "Therefore, besides the SAP database, an external content server is always available in every SAP system installation. In this way, the necessary technical infrastructure is provided for all document-centric applications and business scenarios that do not require a long-term archiving solution"
    Here is some more information about SARA and archiving
    from help.sap.com:
    "Data Archiving removes from the database application data from closed business transactions that are no longer relevant for the operational business. The archived data is stored in archive files that can be accessed by the system in read-only mode."
    for more information:
    http://help.sap.com/saphelp_nw70/helpdata/en/8c/e9ddbb5d9a524bbb7854d31b963248/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/73/c335406ee32e34e10000000a155106/frameset.htm

  • Upgrade Content Server and Site Studio

    Hello Everyone,
    We are trying to upgrade both Content Server and Site Studio from 7.1 / 7.2.1 to
    10gR3
    1) Instead of updating existing instance we Installed new 10gR3 instance
    Exported folder structure archive, layout files and data files from old instance
    2) Imported into new 10gR3 instance.
    3) Tried to upgrade sitestudio websites
    4) Its created a project file but not adding any SiteStudio section properties
    (ex. primaryURL, secondaryURL, IncludeSectionInNavigation etc.), if I open the site in
    designer, it shows just blank site structure without any templates associated and all sections are disabled.
    Any ideas on this??
    Venkat

    Hi ,
    If you are displaying the data from spaces only then all the operations like creating a web content , editing it etc can be done from Webcenter spaces itself .
    Thanks
    Srinath

  • Difference Between "Content Server" and "Content Services"

    Can someone tell me the difference between "Oracle Content Server" and "Oracle Content Services"? From my research, I get the sense that
    these are different products (and Oracle Content Services seems like it's an obsolete one), but I would like some confirmation.
    My apologies for the uber-newbie question :)

    Content Services is what you had with Content DB, Oracles old product.
    Content Server is the core engine of the UCM product, formerly Stellent Content Server.

  • 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

  • How to add header and footer image in pdf

    Hi,
    I want to add image in header and footer for the pdf generation.
    how I can add this? Following my xsl
    ?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
                   <fo:block margin-left="1cm">
                        <xsl:for-each select="@question-text">
                        <xsl:value-of select="."/>=
                        </xsl:for-each>
                        <xsl:if test="string-length(normalize-space(text())) > 0">
                        <xsl:value-of select="text()"/>
                        </xsl:if>
                   </fo:block>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: 848231 on Apr 6, 2011 1:42 AM

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

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

  • Adobe Forms and Dynamic Images

    Hi all,
    I have a table in my Interactive Form and I need to add a dynamic image for each row of this table according with the URL field of my node, so i've done the steps of the tutorial "Dynamic Non-Interactive PDF Form", adding a image field, setting none for default binding, setting the url field as $record.Images[*].URL and then, adding the following FormCalc expression to initialize the image: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Well, my node Images return 3 records and when I run the app, the following message returns:
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[0].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[1].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[2].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    So, anyone here knows how to add a dynamic image to a table row?
    Thanks in advance
    []'s

    I solved it now, just changing the FormCalc expression.
    Instead of using the expression:
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    I used this:
    this.value.image.href = xfa.record.Images.URL;
    The URL value of Image Field, in this case is:
    <b>$record.Images[*].URL</b>
    And, to finish, I needed to add a Text Field bounded to  <b>$record.Imagens[*].URL</b>, case else the image doesn't appear.
    That's it!

  • SAP DMS - Content Server and Unicode - What is effect on size?

    We know that unicode conversion will cause the database to grow in size. I understand that this will apply to the SAP tables with data and metadata etc. The question is whether the actual content (drawings, Word, Excel and PDF documents etc) that are stored in the Content Server will also cause database growth when Unicode conversion is done. We have customers who have large Content Servers in their DMS landscape, and the actual documents are by far the largest part of the size.
    Kind Regards - Frank

    Hi,
    although this thread is very old, there might be still people reading it ...
    The Unicode conversion actually converts character like data only. And documents are usually stored as binary data ... hence the size of those objects does not change.
    Best regards,
    Nils Buerckel

  • SAP HTTP Content Server and ECC 6  to be installed on same Windows system?

    Hi Gurus:
    I have ECC 6 (IDES) running on a Windows 2003 server already.  I plan to install the SAP HTTP Content server on the same machine/same operating system.   I will be the only user, just testing it out and learning things myself.
    Is this advisable?
    Also does anyone know the latest set of Content Server DVDs/CDs to download ?

    Deepak:
    Thanks a lot. 
    My Content Server is running OK now.
    Two repositories are created: one is DMS, one is on ArchLink (ArchiveLink).
    But when I am trying to attach a PDF document to a PO, I got this:
    HTTP error: 401 Unauthorized
         Message no. CMS025
    Diagnosis
         Error in accessing via HTTP
         401 Unauthorized
    Any clue???

Maybe you are looking for

  • How to free-form transform/distort image?

    Hello, everyone! I need to fit my photo on a video of a hand-held piece of paper that is a little distorted by holding in fingers and moving. I tracked it using planar tracker (Mocha Pro) and exported into Motion, so now I have 4-corner pinned rectan

  • Customer Reserved stock on sales order creation

    Hello experts We have a business requirement to be able to reserve an agreed quantity of a material in stock for a nominated customer, such that when that customer places an order for the material it will always be available.  The material is also pu

  • How to sort options by text if option value is int & option text is string?

    Hi All, I've an application in which on a jsp page has two html:select (listBox). Further 3 buttons are provided namely ADD,REMOVE and SAVE. On click of ADD the selected option from listBox 1 is transferred from listBox 1 to listBox 2. On Click of RE

  • Issues with Photo orientation after syncing IPad

    Just wondering if anyone has had issues with the ipad changing the orientation of photos following syncing ipad with itunes. What I have been experiencing is that although the photo is in portrait orientation in iphoto on the imac, this same photo af

  • Transfering music from itunes to zen mi

    Hello, Can anyone tell me how I can transfer music files downloaded from the iTunes website to the zen micro. Is there some firmware that has to be loaded to do this? Thanks, bmorris