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