<?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: create a toolbar button to a pdf in Arbortext</title>
    <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612478#M31792</link>
    <description>&lt;P&gt;Just got it to work. I had opened the xml in notepad++ and made the changes there. Once I opened the file in xml in editor and made the changes there, it now works.&lt;/P&gt;
&lt;P&gt;Thank you gareth, I have added a sample of the file in my dialogs folder not sure how it is called to show up in editor though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bryon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2019 15:09:17 GMT</pubDate>
    <dc:creator>bfriesen</dc:creator>
    <dc:date>2019-06-03T15:09:17Z</dc:date>
    <item>
      <title>create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612017#M31787</link>
      <description>&lt;P&gt;Good afternoon, I am looking for guidance on how to create a toolbar button in editor that when pressed will open&amp;nbsp; specific pdf. How do I do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bryon&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:45:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612017#M31787</guid>
      <dc:creator>bfriesen</dc:creator>
      <dc:date>2019-05-30T18:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612052#M31788</link>
      <description>&lt;P&gt;I haven't done this type of thing for a while but it should only take you an hour or so to figure out:&lt;/P&gt;
&lt;P&gt;1. You will want to "shell out" or exec the following: start "" "c:\my\path\file.pdf" (if you type that command in to Windows command prompt it should open the PDF)&lt;/P&gt;
&lt;P&gt;2. Figure out the ACL command for shelling out to command line, perhaps it is exec? Just look it up in the ACL command reference. You can test your full command from the ACL command line that is enabled in the Arbortext preferences. It may be something like (not tested): exec("start \"\" \"c:\\my\\path\\file.pdf\"")&lt;/P&gt;
&lt;P&gt;3. Figure out how to add a toolbar button. It should be documented. For menus there is a menuloadhook you attach your code to, perhaps there is a toolbarloadhook too? The toolbar button then calls the ACL command you tested working at step #2.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 23:20:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612052#M31788</guid>
      <dc:creator>GarethOakes</dc:creator>
      <dc:date>2019-05-30T23:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612213#M31789</link>
      <description>&lt;P&gt;Thanks Gareth, this is a whole new world for me.&lt;/P&gt;
&lt;P&gt;I have successfully got my pdf to open at the windows command line.&lt;/P&gt;
&lt;P&gt;start "c:\test.pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then searched the ACL ref guide (&lt;A href="https://www.ptc.com/support/-/media/F0978608A44A4E7493ED9572BE7590C7.pdf?sc_lang=en" target="_blank"&gt;https://www.ptc.com/support/-/media/F0978608A44A4E7493ED9572BE7590C7.pdf?sc_lang=en&lt;/A&gt;) for exec, but it does not come up but execute does. In editor I tried&lt;/P&gt;
&lt;P&gt;exec("start \"\" \"c:\\test.pdf\"") and&amp;nbsp;execute("start \"\" \"c:\\test.pdf\"")&lt;/P&gt;
&lt;P&gt;for exec I get and unrecognized function call error and it repeats the code I entered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Bryon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 14:35:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612213#M31789</guid>
      <dc:creator>bfriesen</dc:creator>
      <dc:date>2019-05-31T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612307#M31790</link>
      <description>&lt;P&gt;Bryon, it turns out execute() is not the command, see if the following works for you?&lt;/P&gt;
&lt;P&gt;sh cmd /c start "" "c:\\src\\test test.pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you get that command working then you will need to see how to add a toolbar button, so get that much working first with a test PDF.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 23:48:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612307#M31790</guid>
      <dc:creator>GarethOakes</dc:creator>
      <dc:date>2019-06-02T23:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612441#M31791</link>
      <description>&lt;P&gt;Thanks Gareth, that seems to work when trying to open my test pdf. We do have a current tool bar that our consultants implemented at one time. I have found it in our application, in the dialogs folder. I looked at the buttons that they had done and followed their example.&lt;/P&gt;
&lt;P&gt;I have added the following line:&lt;/P&gt;
&lt;P&gt;&amp;lt;button Command="sh cmd /c start "" "c:\\test.pdf"&lt;BR /&gt;fontposture="italic fontstyle="sanserif" foregroundcolor="FF0000"&lt;BR /&gt;id="authorguide" label="Authoring Guide"&lt;BR /&gt;statustext="Authoring Guide"&lt;BR /&gt;tiptext="This opens the Authoring Guide"&amp;gt;&amp;lt;/button&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it does not seem to show up on the toolbar yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bryon&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:26:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612441#M31791</guid>
      <dc:creator>bfriesen</dc:creator>
      <dc:date>2019-06-03T13:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: create a toolbar button to a pdf</title>
      <link>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612478#M31792</link>
      <description>&lt;P&gt;Just got it to work. I had opened the xml in notepad++ and made the changes there. Once I opened the file in xml in editor and made the changes there, it now works.&lt;/P&gt;
&lt;P&gt;Thank you gareth, I have added a sample of the file in my dialogs folder not sure how it is called to show up in editor though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bryon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 15:09:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Arbortext/create-a-toolbar-button-to-a-pdf/m-p/612478#M31792</guid>
      <dc:creator>bfriesen</dc:creator>
      <dc:date>2019-06-03T15:09:17Z</dc:date>
    </item>
  </channel>
</rss>

