CDFInformation

CDFInformation[expr]
gives a list of properties relevant to a CDF deployed with the content expr.

CDFInformation[notebook]
gives usage properties for a CDF to be deployed from the given notebook.

CDFInformation[NotebookSelection[notebook]]
gives CDF usage properties for only the selected cells in the given notebook.

CDFInformation["file"]
gives CDF usage properties for the named notebook or CDF file.

DetailsDetails

  • CDFInformation is used to determine properties that are useful when deploying embedded content generated by CDFDeploy.
  • CDFInformation can be used after CDFDeploy to determine the HTML fragment used to embed the CDF. It can also be used before CDFDeploy to help determine the value of a WindowSize option you wish to pass to CDFDeploy.
  • CDFInformation gives its results as a list of rules. These rules can include:
  • "EmbeddingScript"an HTML fragment that can be used to embed the CDF in a web page
    "Size"the size in pixels of the embedded result
  • If no filename is given, then the resulting rule will contain a placeholder of , which represents the filename and can be replaced using StringReplace or StringForm.
  • notebook may be a NotebookObject or a Notebook expression. Functions that evaluate to Notebook expressions such as DocumentNotebook, PaletteNotebook, and DialogNotebook are also acceptable.
  • CDFInformation[notebook, WindowSize->{width, height}] causes the resulting properties to use the specified window size.
  • CDFInformation["file"] will use the in-memory version of file if it is presently open in Mathematica.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »