Re: 'explode' quark document into pages
Re: 'explode' quark document into pages
- Subject: Re: 'explode' quark document into pages
- From: harry brindley <email@hidden>
- Date: Thu, 15 Feb 2001 13:07:17 -0500
I've done this -- its tricky. Have your script ...
Make a working copy of your XPress document.
Hard number the pages so that left pages remain left pages after
being split off, else different master items may be applied to the
page.
You then need to walk through the entire document, page by page, text
box by text box, and wherever you come across a linked text box you
need to ...
1. name the text box using some sort of serial number
(say page number and text box number)
2. export the content of _just_ that text box, with tags,
to a text file using the same serial number applied to
the box in step 1. above
Close this working copy of your XPress document, saving it as a template.
For as many pages as your document contains, do ...
Open the working copy again to get an untitled copy. Split the
document into a discreet page by deleting the pages you don't want
(the hard page numbers will survive the split) then ...
Have your script look for and cycle through all named text boxes on
this remaining page, delete any content (only the original text boxes
will now have content) and import, with styles, the content of the
corresponding and previously exported text file -- using the
corresponding box name/file name.
Save the XPress document using it's page number as the file name.
Regards,
Harry