Skip to main content
Inspiring
May 9, 2012
Answered

FXD export from InDesign CS5, js

  • May 9, 2012
  • 1 reply
  • 1097 views

Hi,

I need to export InDesign file as fxg. I assume it will be something similar to exporting pdf, but I am definitely missing something. Here is what I have:

myDoc = app.activeDocument;

myDocPath = myDoc.filePath;

mySplit = myDoc.name.indexOf (".");

myFXGName = myDoc.name.slice (0,mySplit);

var myRootPath = myDocPath.parent.fsName; 

myFXGFullName = myFXGName + ".fxg";

     //   var myFXGExportPreset = app.fxgExportPresets.item("ExportPDFCS5");

       

    myDoc.exportFile(

        ExportFormat.fxgType,

        File(myRootPath + "/" + myFXGFullName),

        false,

        // myFXGExportPreset

    );

   

Thank you for your help.

Yulia

This topic has been closed for replies.
Correct answer John Hawkinson

To be absolutely clear, InDesign has no support for FXG (Flash XML Graphics).

1 reply

Jongware
Community Expert
Community Expert
May 9, 2012

What is "ExportFormat.fxgType"? It's nowhere in my Help, so it's probably not defined.

You cannot set 'anything you like' as "Export Format", InDesign must support the format to begin with. You may be missing that.

YuliaartAuthor
Inspiring
May 9, 2012

Jongware,

I realize that I won't be able to use ExportFornat if something is not defined.

The reason I was trying it, is because I couldn't find anything in OMV, and see if I can stumble on to something if it is similar to what I know.

Thank you.

John Hawkinson
John HawkinsonCorrect answer
Inspiring
May 10, 2012

To be absolutely clear, InDesign has no support for FXG (Flash XML Graphics).