Skip to main content
Inspiring
May 4, 2011
Answered

[JS CS5] Placing PDF pages without showing alerts

  • May 4, 2011
  • 1 reply
  • 559 views

Hi,

I built a script to place several PDF pages in a document.

First of all I need to get PDF pages length with a dedicated function.

Sometimes when placing a PDF page I get an error: Alert PDF import: the following fonts are missing...

Since I'm just using this function just to get the PDF pages length, is there any way to automatically kill or keep these alert windows not visible?

Thanks.

This topic has been closed for replies.
Correct answer csm_phil

Hi Radelli,

You have to you this line:

app.scriptPreferences.userInteractionLevel=UserInteractionLevels.neverInteract;

thx

csm_phil

1 reply

csm_phil
csm_philCorrect answer
Legend
May 4, 2011

Hi Radelli,

You have to you this line:

app.scriptPreferences.userInteractionLevel=UserInteractionLevels.neverInteract;

thx

csm_phil

Inspiring
May 4, 2011

Thanks Phil.