Article View: adobe.scripting.indesign
Article #15908Missing images on XML import
From: Aigars_Grins
Date: Mon, 03 Nov 2003 10:09
Date: Mon, 03 Nov 2003 10:09
23 lines
2095 bytes
2095 bytes
I have problems with some XML import in InDesign 2.0.2. I have a document with some text and images, mostly in table structures. The idea is to tag up the text and export the data as XML, then change it some and later import it back. The tagging and exporting works well, but there are a some problems with the XML import. The first problem is that some table structures muck up the entire layout, i.e. most formatting in the document is lost. This I can handle by comparing each relevant element with the orginal and re-apply all the formatting. So, this is possible for me to work around. The second problem however, is harder to solve - almost all of the images get lost in the import. They simply dissapear. Since I don't have access to the images any more this is a problem (otherwise I could simply re-place the images). It's possible to manually cut'n'paste in the images back (from a backup document), but I really need to be able to "script" this. Currently I'm using COM+ automation via Delphi to do all the handling. So I'd like to do something like: app.Select(backupItem); app.Copy; newItem := newTextFrames.Add; app.Select(newItem); app.PasteInto; But this doesn't work. The COM+ support is somewhat .. lacking. But even if this did work it's kind of a clumsy way to do this. My questions are these: a) Has anyone else seen this behaviour (missing images after XML import)? If so, how did you solve it? b) Has anyone else tried to cut'n'paste images around via COM+?
Technical Details
Message-ID:
<2cce25cc.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c928bd7670cd395b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-03 02:37:39 PST From: Aigars_Grins@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Missing images on XML import Message-ID: <2cce25cc.-1@webx.la2eafNXanI> Date: Mon, 3 Nov 2003 02:09:09 -0800 Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit