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

Create PDF: how to ignore warnings

New Here ,
May 20, 2008 May 20, 2008
Hi,

we've got the following problem when exporting a document to pdf using InDesign server:

while exporting there comes up a warning inside the server window. It says that I could click "OK" (which of course doesn't work with InDesign server), and so ID server decides to cancel the export.
But I would like to continue, but don't know how to do that.

I tried to use:

IPDFExportPrefs->SetPDFExErrorControl(kExportErrorControlWarnAndContinue)
and
IPDFExportPrefs->SetPDFExErrorControl(kExportErrorControlIgnore)

but both didn't change anything.

Could anyone give me a hint how to make ID server continue the export instead of cancelling it ?

Thanks in advance,
Detlef
TOPICS
SDK
1.6K
Translate
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
New Here ,
Jun 05, 2008 Jun 05, 2008
I think i have the same problem with Application.open().

06/05/08 14:50:55 WARN [server] "Untitled" may be damaged. Do you want to open it anyway?
Script request "open 'odoc' kOpenEventScriptElement[AppFramework + 88 (0x16158)]" returning generic error kFailure. Eng: Please replace with a more specific error code. QE: Please report this assert as a 2/2 bug with keyword 'Better Scripting Error.'

Did you find anything about how it should handle this kind of questions?

/Niklas
Translate
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
New Here ,
Jun 08, 2008 Jun 08, 2008
Hi Niklas,

I'm sorry but I didn't find a solution for this problem.

Detlef
Translate
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
Contributor ,
Jun 09, 2008 Jun 09, 2008
Setting the following for InDesign scripting will automatically OK any dialogs.

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAlerts;

set it back with

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

at the end of your script.

May work with server too so worth a try.
Translate
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
New Here ,
Jun 13, 2008 Jun 13, 2008
Thanks for your reply,
The bad thing is that i cant find userInteractionLevel in ScripPreferences in the server reference.
Translate
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
Contributor ,
Jun 13, 2008 Jun 13, 2008
It's in the "InDesign CS3 Scripting Guide JS.pdf" document in the InDesign CS3 SDK.

It's worth trying in your Server script too.

If it's not provided in the server environmet, then you may need to open a support case with adobe to get it resolved.

Regards,

Mike.
Translate
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
New Here ,
Mar 22, 2019 Mar 22, 2019
LATEST

Hello everybody,

It's an old question, but I have the same problem as Detlef_Vorländer: while exporting a document to PDF if any page issues a warning, it does stop the export.

I would like to catch that warning and keep going with the export, or at least export it anyways... If someone has any solution, I'd be happy to hear it.

Thank you.

Translate
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