insertfontdirectory not working - path is relative to client

Attempting to get embedded fonts when generating a pdf.

plugins.pdf_output.insertFontDirectory works great in DEVELOPER, but not in the developer client running on the same machine…why??

Set up some test code just to test different paths -

var font_dir = plugins.dialogs.showInputDialog( 'Font Dir',  'What is your font directory?', globals.fs_gv_fontdir )
// plugins.dialogs.showInfoDialog( 'Fonts Dir',  font_dir,  'Ok')
var fonts_load = plugins.pdf_output.insertFontDirectory(font_dir);

var answer = plugins.dialogs.showInfoDialog( 'Fonts Found',  fonts_load,  'Ok', 'Set','Clear')

if (answer == 'Set') {

globals.fs_gv_fontdir = font_dir

} else if (answer == 'Clear') {

globals.fs_gv_fontdir = null

}

A dialog (Fonts Found) pops up displaying how many fonts were found - ie, the return value from plugins.pdf_output.insertFontDirectory.

Under developer it returns 300+ (ie, the # fonts in my c:/windows/fonts)

Trying it in the test client returns -1 … meaning?

Why is the client not able to use this plugin function, while the developer is?

Thanks,

Nolan M.
FSCI

Developer will run plugins.pdf_output.insertFontDirectory WITHOUT starting a meta job first.

Clients require the meta job to start first .

BUT the directory is read from the client?

Is there any possible way to read the directory from the SERVER so that we don’t have to load fonts on every machine?

Behavior in developer led me to believe you could call the function without a meta job started - but perhaps not use it correctly as docs say you need a metajob first.

Nolan M.
FSCI