<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert binary to pdf in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641465#M1665770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I convert the binary to xstring, then I call a web service that converts the xstring to PDF and returns that back as an xstring.&amp;nbsp; In my case, I think webservice is part of documentum system, perhaps, but not certain.&amp;nbsp; At any rate, you need something that will read binary or xstring and do the conversion to portable data format and return xstring or binary table back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 13:52:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-26T13:52:52Z</dc:date>
    <item>
      <title>Convert binary to pdf</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641463#M1665768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using a Z function to read the activity's attachment and send it from mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem occurs when the attachment is of type .DOC, and in the mail the attachment is corrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we would convert the binary of the document from .DOC but as PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for send mail we are using CL_BCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_document-&amp;gt;get_document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; io&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ls_io&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; properties&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content_bin&amp;nbsp;&amp;nbsp; = lt_binary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content_ascii = lt_ascii.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD document-&amp;gt;add_attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_attachment_type&amp;nbsp;&amp;nbsp;&amp;nbsp; = file_type -&amp;gt; FILE TYPE RETURNED FROM LT_PROPERTIES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_attachment_subject = file_des&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_att_content_hex&amp;nbsp;&amp;nbsp;&amp;nbsp; = binary_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641463#M1665768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-22T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert binary to pdf</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641464#M1665769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1214908"&gt;http://scn.sap.com/thread/1214908&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 12:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641464#M1665769</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2012-06-26T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert binary to pdf</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641465#M1665770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I convert the binary to xstring, then I call a web service that converts the xstring to PDF and returns that back as an xstring.&amp;nbsp; In my case, I think webservice is part of documentum system, perhaps, but not certain.&amp;nbsp; At any rate, you need something that will read binary or xstring and do the conversion to portable data format and return xstring or binary table back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 13:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-binary-to-pdf/m-p/8641465#M1665770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T13:52:52Z</dc:date>
    </item>
  </channel>
</rss>

