• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to disable/supress dialog "The font information for your system has been changed"

Community Beginner ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Hi all,

in our application we set printer to our internal PostScript driver and print FM files to PostScript. It works but sometimes we got the dialog "The font information for your system has been changed. This change may affect the format and output of your document(s)." This stops our operation and we need to click OK to continue the operation. Is there a way to disable/supress this dialog programatically in FDK or by some FrameMaker settings ?

 

Thanks for replies.

TOPICS
PDF output , Scripting

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Here is some FDK code that allows you to do this. This is back from 2010 and I haven't used it for years, but am pretty sure that it works. You will have to set up some kind of logging so you can figure out the integer for the message you want to skip.

 

#include "fapi.h"
#include "fdetypes.h"
#include "futils.h"

VoidT F_ApiInitialize(IntT init)
{
	if (init == FA_Init_First)
	{
	    F_ApiNotification(FA_Note_Alert, True);
		F_ApiBailOut();
	}
}

VoidT F_ApiNotify(IntT notification, F_ObjHandleT docId, StringT filename, IntT iparm)
{
	F_ObjHandleT alertId;
	IntT uniq;

	switch (notification)
   	{
   	case FA_Note_Alert:

		// Get the id of the alert.
		alertId = F_ApiGetId(0, FV_SessionId, FP_ActiveAlert);
		uniq = F_ApiGetInt(FV_SessionId, alertId, FP_Unique);

		// If the alert is "Cannot display some imported graphics...", supppress it.
		// Also, "All master pages will be reapplied...."
		if ((uniq == 40086) || (uniq == 40090) || (uniq == 46001))
		{
			F_ApiReturnValue(FR_YesOperation);
		}

		break;

  	default:
		break;
  	}
	F_ApiBailOut();
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

Thank you for your answer. We are using almost the same block of code as you posted above but the problem is when we are trying to debug it and the unwanted dialog "The font information for your system..." is shown debugger don't stop on breakpoint which is set to "case FA_Note_Alert:" so we cannot handle it. Trying on FM10.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

If you are using ExtendScript, you can use this code to help you identify the numbers you need:

 

#target framemaker

setupNotifications ();

function setupNotifications () {

    Notification (Constants.FA_Note_Alert, true);
}

function Notify (note, object, sparam, iparam) {
    
    switch (note) {
            alert (note);
        case Constants.FA_Note_Alert : 
            alert (sparam);
            break;
            
    }
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

LATEST

Thank you for this post, but it solves nothing...we do not use ExtendScript, but pure C/C++ CLI to implement our plugin.

Maybe your solution works for the mentioned alert:

Cannot display some imported graphics...

but in our case we have different one:

The font information for your system has changed. This change may affect the format and output of your document(s).

FontInformationAlertFM.jpg

 

The alert should be on, we have

Fx_ApiNotification(FA_Note_Alert, True);

set in our code.

I suspect not each message alert is sent to client.

Is the above comment clear for you ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines