Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FDK 7.2 : Props of each Char of an object

New Here ,
Oct 06, 2008 Oct 06, 2008
Hi,

I need to obtain Props of each character of a text inside an object.

I can get the ID of the object.

But I can't find a way :
1)to get his text
2)to get (loop) each character of his text in order to get his Props.

I have tried TextRange, TextItem ... but it seems that i am not using them well.

I want to use : F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *textLocp);

Some ideas?

Thanks,
Alexandre
TOPICS
Structured
522
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2008 Oct 10, 2008
Hi,

1)
I have found a way to do this thanks to :
*F_ElementRangeT
*method F_ApiElementLocToTextLoc(...) = ElementRangeT to TextRangeT

and after I get props char per char of the text.

2)About :

*F_PropValsT F_ApiGetTextProps(F_ObjHandleT docId, F_TextLocT *tLocp);

*VoidT F_ApiSetTextProps(F_ObjHandleT docId,F_TextRangeT *ttRgep,
F_PropValsT *setVal);

I have one remark : For F_ApiGetTextProps, we need to use F_TextLocT and for F_ApiSetTextProps we need to use TextRangeT which is 2 F_TextLocT in a structure.

This is the first time that i see in a language that the type of param of a set method is different than the param of a get method.

Thanks,
Alexandre
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Oct 10, 2008 Oct 10, 2008
Alexandre,

The difference is because the format properties are only absolute at a single location, so you couldn't reliably retrieve them for a range. However, it is likely that you would want to set them over a range, hence the ability to set them that way.

Russ
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 22, 2008 Dec 22, 2008
hi ! i'm new to FDK. what i need is to find the end od the document and to add there the empty paragrah. Wich functions i ought to use?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Dec 23, 2008 Dec 23, 2008
LATEST
shooter,

I might recommend starting with the FDK Developer's Guide. It has lots of good information about text management with the FDK. It would be a bit much to try to coach you through it here. Besides, there are a number of approaches, depending on your intended goal.

Russ
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines