Skip to main content
Participating Frequently
March 12, 2009
Question

getTextWithXtags

  • March 12, 2009
  • 1 reply
  • 695 views
Anyone have an example of how to call this into a textframe or any other gothchas using Xtags in IDS

many thanks everyone
This topic has been closed for replies.

1 reply

ianwhitAuthor
Participating Frequently
March 12, 2009
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

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