Skip to Content
author's profile photo Former Member
Former Member

Working with the u0093PdfObjectu0094 API

Hi Everyone:

the demo on SDN about working" target="_blank">www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">working with the “PdfObject” API has been downloaded to my loca SAP Netweaver develper studio.

But I have found that some class , such as WDPDFObjectFactory, IWDPDFObject can be tracked in the standard package of Web dynpro.

is there anyone know how to find the according package, or SDA?

Thanks a lot!

Add a comment
10|10000 characters needed characters exceeded

Related questions

11 Answers

  • Best Answer
    Posted on Nov 16, 2007 at 06:43 AM

    Hi Orlando,

    I feel that the current installation of NWDS does not support the Adobe Applications. Please make a fresh installation of NWDS and do <b>check</b> the box for Adobe along with SAP Netweaver Components.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2007 at 01:21 PM

    Hi Orlando,

    Select the text WDPDFObjectFactory > Right Click >

    select open Declaration... There u can find the package

    The default package is com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.api

    Regards

    Roop

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:48 AM

    Hi I have found the SAP NOTE about the change of runtime reference of PDF object.

    and the application-reference.xml file has been revised base on this suggestion.

    <?xml version="1.0" encoding="UTF-8"?>

    <application-j2ee-engine

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">

    <reference

    reference-type="hard">

    <reference-target

    provider-name="sap.com"

    target-type="service">tc/pdf/object</reference-target>

    </reference>

    <reference

    reference-type="weak">

    <reference-target

    provider-name="sap.com"

    target-type="service">licensing</reference-target>

    </reference>

    sap.com

    <fail-over-enable

    mode="disable"

    xsi:type="fail-over-enableType_disable"/>

    </application-j2ee-engine>

    But the server seems directly ignore my request.

    Still no class found for java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/pdfobject/api/WDPDFObjectFactory

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:50 AM

    Poojith M V,

    would you like to do me a favor to explain how to install the accoriding component required for adobe in NWDS.

    My NWDS version : 7.1 sp3

    Message was edited by:

    Orlando Ding

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 03:30 AM

    The detailed information for my problem:

    1. Create a standard EJB project similiar to "TutEJB_PDFobject" on SDN.

    2. using PDFObject related API to develop several business method.

    3. Create a WEB project to reference the EJB project.

    4. add runtime reference of PDF API in "application-j2ee.xml"as memtioned before.

    5. add web dynpro runtime package for EJB project, in order to import "WDPDFObjectFactory" etc class for the client side.

    But during the loading stage of index.jsp in WEB proejct, compiler throws out a runtime error

    "java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/pdfobject/api/WDPDFObjectFactory"

    I have checked the client side class for "WDPDFObjectFactory.class", here author use Class.forName("com.sap.tc.webdynpro.pdfobject.impl.PDFObjectImpl").newInstance() to get the instance.

    My question here : the reason of such isuse is caused by the error "PDFObjectImpl can't be found during the runtime" or not?

    if it's the real reason, how can I add the according class package for it?

    this package lies on client side or server side?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 06:14 AM

    Hi Orlando,

    Follow the Steps when u install the NWDS :-

    1 --> Click on the <b>JDTSetup.exe</b> file.

    2 --> Click on <b>next</b>.

    3 --> After entering the location for installation u will find a window below which displays <b>2 check boxes</b> (one for SAP Netweaver Components and the next is for Adobe Services)

    4 --> check both the boxes and continue with the installation.

    Hope this helps u.

    Thanks and Regards

    Poojith M V

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 06:32 AM

    But during the installation of NWDS, I believe that there's no check-box for ADS library.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 06:33 AM

    May i know the Version of the NWDS????

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 06:41 AM

    SAP Developer Studio Version : 7.1 SP3

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:49 AM

    Hi all, this problem has been settle down.

    The PDF object API has been out-of-date, the currently API for programming with ADS is related with "WDPDFDocumentFactory",

    you can find the reference of CE 7.1programming on SAP HELP portal.

    By the way, in j2ee-application.xml file, you should also refer to "webdynpro" services to ensure that compiler could load the runtime library on the server side.

    Thanks for your hints also.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.