Hi Laubender,
Please find the conversation which i had with 'Jarek'. I have explained the problem where I'm facing.
|
Hi Jarek,
Thanks for findings.
Sorry for not detailing with the logic.
Yes, I have found my logic. Let me explain, and I request your valuable time to read this.
I have InDesign Document with fully formatted. It also contains unthreaded text frames and Graphic rectangle frames (Images) with no anchoring. I have to write tool to do following tasks.
- Open InDesign document
- Anchoring unthreaded text frames and Graphic rectangles to the previous or next text frames. ( I’m struck in this step)
- Applying styles using external style sheet.
- Then export document to epub v3.0.
I have logic to do further steps except step 2 of finding previous textframe of unthreaded text frame.
Please find the below screen shot for better understanding.
..................................
|
Thanks
Suneetha.
Hi,
I dont know what specific solution can be found using ID 2014 CC features in UI but a generic way could be to create a function and call it for each page in a doc. The function would:
- collect all pageItems (array)
- sort them by geometricBounds[0] value (ascending)
- iterate through and:
- each time current item is a threated textFrame ==> set its last insertionPoint as a destination
- otherwise ==> anchore item in current destination (not sure if original visibleBounds are essential to be copied)
It assumes the order of pageItems can be based on its top position.
Jarek