🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker
Article #2905

Re: Selecting hidden text.

#2905
From: Russ Ward
Date: Tue, 08 Jul 2008 12:16
25 lines
1756 bytes
Jim,

I haven't done this before, so it is just a guess, but I'd think you could get the first paragraph on the hidden page as follows. I didn't test this. Of course, getting the first paragraph ID is only a small part of the battle. I think the real challenge would be using it to navigate the invisible page and set up the F_TextLoc structures.

1 - Get the hidden page ID

pageId = F_ApiGetId(FV_SessionId, docId, FP_HiddenPage);

2 - Get the page frame

frameId = F_ApiGetId(docId, pageId, FP_PageFrame);

3- Maybe iterate over child frames to find the text frame. I don't know if this is necessary. In any case, once you have a paragraph, you should have the correct frame.

if(F_ApiGetId(docId, frameId, FP_FirstGraphicInFrame))
  frameId = F_ApiGetId(docId, frameId, FP_FirstGraphicInFrame);
while(frameId)
{
  if(F_ApiGetId(docId, frameId, FP_FirstPgf)) break;
  else frameId = F_ApiGetId(docId, frameId, FP_NextGraphicInFrame);
}

pgfId = F_ApiGetId(docId, frameId, FP_FirstPgf);

Russ
Technical Details
Message-ID: <59b5ba73.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news01.khis.de!news4us.nl!webcrossing
References: <59b5ba73.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fd315,ea1d00edee638f61
X-Google-Attributes: gidfd315,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Russ Ward" <russ@weststreetconsulting.com>
Newsgroups: adobe.framemaker
Subject: Re: Selecting hidden text.
Message-ID: <59b5ba73.3@webcrossing.la2eafNXanI>
Date: Tue, 8 Jul 2008 05:16:36 -0700
References: <59b5ba73.-1@webcrossing.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news01.khis.de!news4us.nl!webcrossing