Quantcast
Channel: Adobe Community : Popular Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 23442

Page location of a hidden page

$
0
0

I am using FrameMaker FDK 7.2.  I am looping through all flowIds in a document.   When I see a flow that is a FO_HiddenPage, how can I determine the actual page number of the hidden page in the document. (code below).

 

////////////////////////////////////////////////////////////////////// //////////

VoidT OpenDoc(F_ObjHandleT docId)

////////////////////////////////////////////////////////////////////// //////////

{

    F_ObjHandleT pageId     = F_ApiGetId(0, docId, FP_FirstBodyPageInDoc);

    F_ObjHandleT lastPageId = F_ApiGetId(0, docId, FP_LastBodyPageInDoc);

    IntT lastPageNo         = F_ApiGetInt(docId, lastPageId, FP_PageNum) + 1;

    IntT currPageNo = 1;

 

 

 

 

 

    F_ObjHandleT pgfId, flowId, objectId;

    IntT pageType = 0;

 

F_Printf(NULL, "    Last Page=%d\n", lastPageNo);

 

    while (currPageNo <= lastPageNo)

    {

        //pageType = GetHidden(docId,pageId);

F_Printf(NULL, "    Current Id=%d\n", pageId);

        pageId     = F_ApiGetId(0, pageId, FP_PageNext);

        ++currPageNo;

    }

 

    flowId = F_ApiGetId(FV_SessionId,docId,FP_FirstFlowInDoc);

    while (flowId)

    {

        objectId = F_ApiGetId(docId,flowId,FP_FirstTextFrameInFlow);

        pageType = GetPageType(docId,objectId);

 

 

        if (pageType == FO_HiddenPage)

       {

            pgfId = F_ApiGetId(docId,objectId,FP_FirstPgf);

            while (pgfId)

            {

    F_Printf(NULL, "     flowId=%d objectId=%d pgfId=%d -->HIDDEN PAGE\n", flowId, objectId, pgfId);

                pgfId = F_ApiGetId(docId,pgfId,FP_NextPgfInFlow);

            }

      }

}


Viewing all articles
Browse latest Browse all 23442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>