1 Reply Latest reply on Mar 11, 2009 11:15 PM by ianwhit

    getTextWithXtags

    ianwhit Level 1
      Anyone have an example of how to call this into a textframe or any other gothchas using Xtags in IDS

      many thanks everyone
        • 1. Re: getTextWithXtags
          ianwhit Level 1
          I'm trying this test but...

          ---------------------------------------------

          pathX = "blabla"

          Set myInDesignServer = CreateObject("InDesignServer.Application.CS4")
          Set myDocument = myInDesignServer.Documents.Add

          Set myTextFrame = myDocument.Pages.Item(1).TextFrames.Add
          myTextFrame.GeometricBounds = Array("6mm", "6mm", "200mm", "200mm")
          myTextFrame.getTextWithXtags "" & pathX & "test.txt", true, true, false, idutf8

          myInDesignServer.Documents.Item(1).Export "Adobe PDF", "" & pathX & "Test.pdf", myInDesignServer.PDFExportPresets.Item("[Press Quality]")
          myInDesignServer.Documents.Item(1).Close

          -----------------------------------------

          I get...

          Object doesn't support this property or method: 'myTextFrame.getTextWithXtags'

          CS4 doesn't understand getTextWithXtags

          -----------------------------------------