🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker
2 messages
2 total messages Started by HanzelPeter Wed, 04 Feb 2009 10:02
Get all cells on one page with FDK
#987
Author: HanzelPeter
Date: Wed, 04 Feb 2009 10:02
11 lines
1410 bytes
Hello.

I am trying to write an application that gets all texts from one specified page with FDK. So I am using F_ApiGetText with FTI_Strings. That returns normal text on page. (I am getting text from textframe on specified page).

But it doesn't return table cells texts. So I start to get all cells from textframe with F_ApiGet(docId, frameId, FP_FirstCell). That return the first cell on page. Then I am iterationg trough all cells with F_ApiGetId(docId, cellId, FP_NextCell).

And here is the problem. I have page with has on start continuation table from previous table and than simple text with pfgnumber and than next table. But FP_NextCell doesn't return these cells from another table. It stop on end from previous table.

What is the way to get all cells on one page?

P.S. PP_NextCell states next cell in textframe. What is wrong?
Re: Get all cells on one page with FDK
#991
Author: Russ Ward
Date: Wed, 04 Feb 2009 12:09
7 lines
1464 bytes
Hi Peter,

You are calling FP_FirstCell to get the first cell in the text frame, which is a valid operation. However, when you call FP_NextCell, you are then at a table-level operation, no longer working within the context of the text frame. So, it operates on the current table only, returning the next cell in that table. When it reaches the end of the current table, it returns zero. You'll never be able to get to any other tables with FP_NextCell.

Perhaps you could use one of the valid cell IDs to retrieve the table object ID, then you could use the FP_NextTableInDoc property on that table ID to get the next table, then drill down to the cells, etc. I don't know, however, if this will retrieve the tables in document order and I also don't know off the top of my head how to be sure a table is actually in a desired text frame, if that is important.

Russ
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads