Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by Venkateswara_Rao
Fri, 02 Jan 2009 07:23
Duplicating a page - problem in CS3 - Using Javascript
Author: Venkateswara_Rao
Date: Fri, 02 Jan 2009 07:23
Date: Fri, 02 Jan 2009 07:23
59 lines
1951 bytes
1951 bytes
Hi,
I am trying to replace images on my page (indesign tempalate) using "importXML" method.
I have added tags and XML looks like this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<container>
<imagefile></imagefile>
<att_1></att_1>
</container>
<container>
<imagefile></imagefile>
<att_1></att_1>
</container>
Now when I am duplicating a page which contains items as mentioned in above xml and when I exported a whole document xml to a file the final xml looks like this.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<container>
<imagefile></imagefile>
<att_1></att_1>
<imagefile></imagefile>
<att_1></att_1>
</container>
<container>
<imagefile></imagefile>
<att_1></att_1>
<imagefile></imagefile>
<att_1></att_1>
</container>
<container> </container>
<container> </container>
The container element is not properly duplicated.
Can you please tell me how to fix this problem.
Actually I will get dynamic xml (like above) from my server which may have
1 or any number and I have indesign template that contains a single page with 2 images boxes + 2 text boxes.
So if I get 6 images in xml, then I have duplicate the 1st page twice so that it will become 3 pages (3 x 2 = 6).
I am facing problem while duplicating page. Please help.
Thanks,
Venky
Re: Duplicating a page - problem in CS3 - Using Javascript
Author: loic_aigon
Date: Fri, 02 Jan 2009 14:42
Date: Fri, 02 Jan 2009 14:42
10 lines
1557 bytes
1557 bytes
Hi, Maybe, you have a matter with your process itself. You shouldn't duplicate pages by yourself but get the duplication process by the xml import itself. I am learning with this book : "A designer's guide to Adobe indesign and XML" from JJ Maivald and Cathy Palmer. In general, they spend time on structuring the tagging process and page elements. With a frame on the master spread and page set to master. At the end, they import the xml (selecting the root element on the structure). And then they drop the root element onto the page frame. At first the text frame has overset. But clicking on the plus icon, adding a page and maj click on the next frame autoflow all the xml elements. So you don't care about duplicating the pages, indesign does it for you. I don't know if it answers your problem. But there is a chance you get a proper xml export this way. Loic
Re: Duplicating a page - problem in CS3 - Using Javascript
Author: Venkateswara_Rao
Date: Sat, 03 Jan 2009 16:27
Date: Sat, 03 Jan 2009 16:27
6 lines
720 bytes
720 bytes
Loic, Thank you very much for your reply. Regards, Venky
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads