cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Command to bring up the "Publish to PDF" box, and then release printpublishing license

DL_10914713
12-Amethyst

Command to bring up the "Publish to PDF" box, and then release printpublishing license

Hi,

 

I want to ensure the print publishing (print composer) floating license is released after publishing to PDF.

 

I have implemented using an instance.acl file to add a menu item called "release print license" using the command license_release(PrintPublishing)

 

 

 

menu_add -before .File.Publish.#7 "Release Print License" -cmd {license_release(PrintPublishing)}

 

 

 

 

But I am stuck on how I should go about bringing up the publish pdf dialog box, putting in all the arguments, THEN releasing the print composer license. Or perhaps, the release_license is triggered by the end of the build process.

DL_10914713_0-1718633029573.png

ACCEPTED SOLUTION

Accepted Solutions

Solved

Note, you need print composer installed.

 

There seems to be only one way to customize your menu when you have no file loaded into arbortext. When you have a file loaded, arbortext will look for the document DTD. In the same folder or directory as the DTD file, you can add an ACL file called instance.acl which you can edit to add menu items.

 

To customize a menu at start up:

  1. Create a directory for the customized menu.
  2. Go to [Arbortext Install path]/lib/editmenu.cf and copy it.
  3. Paste the editmenu.cf into the new directory you created. Call it whatever you want. I'll leave it as is.
  4. Create/Edit the environment variable via System Properties > Environment Variables  
    • then Add a new user variable called APTMENUFILE with an address pointing to the editmenu.cf file in the custom directory.
      APTMENUFILE     [pathtofile].editmenu.cf
  5. Edit the new editmenu.cf file
  6. Restart arbortext to see changes.

 

I want to add a button called Release_License from the File Menu, with sub menus. Then make it do stuff.

In the new editmenu.cf file, i'll add my code to where I want the button to appear in the file menu.

 

separator

"Release_Licenses" menu "File.Release_Licenses"

 

Menu "File"

{
Other menu items
Other menu items

separator
"Release_Licenses" menu "File.Release_Licenses"

Other menu items
Other menu items
}

Menu "File.Release_Licenses"
{
"Release All Licenses" \
 cmd "license_release('All')"
 
"Release Print License" \
 cmd "license_release('PrintPublishing')" 
}

This adds "Release_Licenses to the file menu.

 

Now make it do stuff (release the license).

Add the following after Menu "File"{...} (see above)

 

Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"

"Release Print License" \
cmd "license_release('PrintPublishing')"
}

 

Save the file, restart arbortext.

DL_10914713_0-1718893128988.png

 

 

To make a button to publish PDF and then release the license, you could edit the instance.acl file and add the following:

# This adds a menu item in position 1 to  
# File > Publish > called "publish pdf and release print license"
#
menu_add -before .File.Publish.#1 "Publish PDF and Release Print License"       
menu_change ".File.Publish.Publish PDF and Release Print License" -cmd {
 compose_pdf(); #publish dialog box
 license_release("PrintPublishing"); #release print composer license
}

 

 

 

View solution in original post

1 REPLY 1

Solved

Note, you need print composer installed.

 

There seems to be only one way to customize your menu when you have no file loaded into arbortext. When you have a file loaded, arbortext will look for the document DTD. In the same folder or directory as the DTD file, you can add an ACL file called instance.acl which you can edit to add menu items.

 

To customize a menu at start up:

  1. Create a directory for the customized menu.
  2. Go to [Arbortext Install path]/lib/editmenu.cf and copy it.
  3. Paste the editmenu.cf into the new directory you created. Call it whatever you want. I'll leave it as is.
  4. Create/Edit the environment variable via System Properties > Environment Variables  
    • then Add a new user variable called APTMENUFILE with an address pointing to the editmenu.cf file in the custom directory.
      APTMENUFILE     [pathtofile].editmenu.cf
  5. Edit the new editmenu.cf file
  6. Restart arbortext to see changes.

 

I want to add a button called Release_License from the File Menu, with sub menus. Then make it do stuff.

In the new editmenu.cf file, i'll add my code to where I want the button to appear in the file menu.

 

separator

"Release_Licenses" menu "File.Release_Licenses"

 

Menu "File"

{
Other menu items
Other menu items

separator
"Release_Licenses" menu "File.Release_Licenses"

Other menu items
Other menu items
}

Menu "File.Release_Licenses"
{
"Release All Licenses" \
 cmd "license_release('All')"
 
"Release Print License" \
 cmd "license_release('PrintPublishing')" 
}

This adds "Release_Licenses to the file menu.

 

Now make it do stuff (release the license).

Add the following after Menu "File"{...} (see above)

 

Menu "File.Release_Licenses"
{
"Release All Licenses" \
cmd "license_release('All')"

"Release Print License" \
cmd "license_release('PrintPublishing')"
}

 

Save the file, restart arbortext.

DL_10914713_0-1718893128988.png

 

 

To make a button to publish PDF and then release the license, you could edit the instance.acl file and add the following:

# This adds a menu item in position 1 to  
# File > Publish > called "publish pdf and release print license"
#
menu_add -before .File.Publish.#1 "Publish PDF and Release Print License"       
menu_change ".File.Publish.Publish PDF and Release Print License" -cmd {
 compose_pdf(); #publish dialog box
 license_release("PrintPublishing"); #release print composer license
}

 

 

 

Announcements

Top Tags