Skip navigation
suren_tringer
Currently Being Moderated

how to get all page items from the document

Mar 7, 2012 2:50 AM

Tags: #plug-in #indesign_cs5

Hi all,

 

i want to get all page items and its frame and data from the document

Then i want to create my own xml.

 

any help? any advice ?please.

 
Replies
  • Currently Being Moderated
    Mar 7, 2012 3:22 AM   in reply to suren_tringer

    Pageitems are owned by the spreadlayer, you can traverse the spread and get the pageitems from it. Please refer the SDK for examples.

     

    The general way to do this is to traverse the IHierarchy interface of the parent object to get the children.

     

    Manan Joshi

     

      - Efficient InDesign Solutions -

    MetaDesign Solutions

    http://metadesignsolutions.com/services/indesign-development.php

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 3:45 AM   in reply to suren_tringer

    As i pointed out previously the owner of the Pageitems is spread layer and not the document, as far as i can recall IHierarchy won't exist on kDocBoss.

     

    You need to go to the content layer of the document and then traverse its hierarchy. Have a look at the Layout Fundamentals in the programming guide.

     

    Manan Joshi

     

      - Efficient InDesign Solutions -

    MetaDesign Solutions

    http://metadesignsolutions.com/services/indesign-development.php

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 1:42 PM   in reply to Manan Joshi

    For completeness sake you may  also want to cover "TOP" type on path and anchored page items.

     

    Dirk

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 7:27 AM   in reply to suren_tringer

    Hi,

     

    did you try it with IPageItemTypeUtils instead of IPathUtils?

     

    Markus

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 30, 2012 3:43 AM   in reply to Manan Joshi

    You also can iterate all of UIDs in doc’s database.

     

    Have a look on IDataBase.h and there are several examples in the SDK.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points