cancel
Showing results for 
Search instead for 
Did you mean: 

Can't we convert pdfobject to PDF??

Former Member
0 Kudos

Hi,

I am working on a ABAP WD Application which have a Interactive form.

After user inputs and clicks submit it will send an emael.I also want store this pdf in application server & local desktop .

For this I have click event .In click method I am getting pdf object plus all user entries through the context node.But I need a PDF.

Let me know if you have any ideas?

Rgds

Vara

Edited by: Vara K on May 13, 2009 4:55 PM

Edited by: Vara K on May 13, 2009 7:19 PM

Edited by: Vara K on May 13, 2009 7:22 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vara,

Is it possible that you are confusing the PDFobject and the pdfSource property? The pdfSsource (XSTRING) contains the binary of the PDF. See the property tab of the InteractiveForm UI element.

If you use this property there is no conversion necessary.

Regards,

Juergen

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi VARA,

If you have PDF in the Context in binary form then you dont need to convert it, you can creae a pdf file with this alone.

Cheers,

Arafat

Former Member
0 Kudos

Juergen & Arafat Thank you for your replies.

Sorry for the confusion it was pdfsource.

I have seen the interactive form properties and pdfsource is already set to an attribute type XSTRING.

Now How do i convert it to PDF?

I called the attribute in click method.

* get single attribute
  lo_el_context->get_attribute(
    EXPORTING
      name =  `PDFSOURCE`
    IMPORTING
      value = lv_pdfsource ).

I need to pass this to cfolders FM .Main thing I need File path for that PDF and Size.

CALL FUNCTION 'CFX_API_DOC_DOCUMENT_WRITE'
    DESTINATION RFCDEST
    EXPORTING
      i_doc_id                       = key_document (Already have this)
*     I_VERSION_NAME                 =
*     I_VERSION_DESCRIPTION          =
*     I_CHANGE_CURRENT_VERSION       = CFXA0_SC_FALSE
*     I_BACKEND_SYSTEM               =
      i_file_path                    = fname  ( For a local file c:\test.pdf) is working
      i_file_size                    = fsize    ( How can we get size of the pdf file??)
*     I_MIME_TYPE                    =
*     I_CONTENT_URL                  =  ?????? Do i need to use this URL 
*     I_CONTENT_PROXY                =
*     I_CONTENT_PROXYPORT            =
   IMPORTING
*     ES_FAULT                       =
      e_faultstring                  = fault
      e_doc_version_id               = key_version
      e_version_name                 = vname
*     E_CONTENT_RELATIVE_URL         =
    TABLES
      it_content                     = content[].

Rgds

Vara

Edited by: Vara K on May 14, 2009 4:35 PM