0 Replies Latest reply on Jun 25, 2010 3:45 AM by tatvasoft25

    importxml does not retain image

    tatvasoft25

      hi

       

      I have one indesing document in that I have place one rectangle frame control and place one image on it and then export xml of that document.

      and save document.

      now I  am chnaging image in exported xml file.

      and wirte bellow script to inport and save document with some other name.

      But when I open that new document in indesign desktop  it is not displaying image

      image  displays properly in exported jpeg file.

      I have chacked tag property in that it displays new image path. but image is displayed in page.

       

      var myDoc = app.open(File("c:/test.indd"));
      myDoc.importXML(File("c:/test.xml"));
      myDoc.save(File("c:/test1.indd"));

      myDoc.exportFile(ExportFormat.jpg, "c:/test.jpg");
      myDoc.close();

       

       

      can you please tell me what can be the problem ?