<?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 pdf to gif/ External java program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284664#M1988992</link>
    <description>&lt;P&gt;Yes, the program looks in a specific folder&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 10:23:35 GMT</pubDate>
    <dc:creator>former_member709664</dc:creator>
    <dc:date>2020-10-02T10:23:35Z</dc:date>
    <item>
      <title>Convert pdf to gif/ External java program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284662#M1988990</link>
      <description>&lt;P&gt;Hello experts, &lt;/P&gt;
  &lt;P&gt;a little description of the process: During the processing of the Abap program, I get from an external server pdf file which I need to pass to Adobe Forms and print it. (The main purpose of passing to Adobe Forms it set landscape document orientation on the left half of the page) &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt; What I tried: &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I didn't find a way, which I can use to passing to Adobe Forms pdf file directly therefore I prepared a Java program for converting it to a gif file. I tried calling as a .jar file and also as .exe file, but I faced a new problem with calling this program via the Abap program via FM 'SXPG_COMMAND_EXECUTE' with custom external operation system commands(sm69) with the name of external program cmd /C and additional parameter: the path to the java program - in the case passing jar file - program all the time in processing but without result, in the case exe file, program duration is 5 sec, but the file is not converted. &lt;/P&gt;
  &lt;P&gt; The second way I used cl_gui_frontend_services=&amp;gt;execute- this way converts the file correctly, but it requires interaction with a user to permit access to the file that I want to avoid. &lt;/P&gt;
  &lt;P&gt; The 3 way was to execute the bat file with content: pushd %~dp0 "convert.exe" or "convert.jar" popd - the same results mentioned above. &lt;/P&gt;
  &lt;P&gt;When I call jar, exe, bat file directly, the java program runs correctly, and in the and I got a converted file. &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: Do you have any idea how I can solve this task? &lt;/P&gt;
  &lt;P&gt;Thanks and regards &lt;/P&gt;
  &lt;P&gt;Serhii&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 09:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284662#M1988990</guid>
      <dc:creator>former_member709664</dc:creator>
      <dc:date>2020-10-02T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert pdf to gif/ External java program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284663#M1988991</link>
      <description>&lt;P&gt;How do you choose which PDF file will be converted? Does the external program look in specific folder?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 10:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284663#M1988991</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2020-10-02T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert pdf to gif/ External java program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284664#M1988992</link>
      <description>&lt;P&gt;Yes, the program looks in a specific folder&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 10:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-pdf-to-gif-external-java-program/m-p/12284664#M1988992</guid>
      <dc:creator>former_member709664</dc:creator>
      <dc:date>2020-10-02T10:23:35Z</dc:date>
    </item>
  </channel>
</rss>

