ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 NewTextAnnotation with PdfViewer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeffp

USA
66 Posts

Posted - Dec 13 2024 :  14:13:57  Show Profile  Reply
I'm trying to create a new text annotation with the PdfViewer.

The following code adds the annotation, BUT I can't seem to see the default text OR click into the annotation and edit or add more text.

FViewer.PdfViewer.Annotations.NewTextAnnotation(DR, 'Add text here');



jp

xequte

39047 Posts

Posted - Dec 15 2024 :  22:52:18  Show Profile  Reply
Hi Jeff

A text annotation is not visible as text (unlike a text object). It appears as a hover hint:




To show annotations, iepoAnnotations must be specified in ImageEnView1.PdfViewer.Options (which is the default).

https://www.imageen.com/help/TIEPdfViewer.Options.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jeffp

USA
66 Posts

Posted - Dec 16 2024 :  09:58:28  Show Profile  Reply
I do have that in PdfEditor.Options. Here's what it looks like. The annotation is there. I just can't click into it and add text.

jp



Go to Top of Page

xequte

39047 Posts

Posted - Dec 16 2024 :  16:43:39  Show Profile  Reply
See the annotations demo which allows editing of the text in annotations:

\Demos\PDF\PDFAnnotations\PDFAnnotations.dpr

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jeffp

USA
66 Posts

Posted - Dec 16 2024 :  16:59:54  Show Profile  Reply
I did. I can't double click into that text annotation either. I'm I just not understanding how the PDF text annotation works. I'm expecting something similar to the image layer text where I draw a rectangle and then I click into it to start typing text.

jp
Go to Top of Page

xequte

39047 Posts

Posted - Dec 17 2024 :  00:33:40  Show Profile  Reply
Hi Jeff

There is no support at this time for displaying an editor when editing a text object or annotation. I've added it to the to-do list.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

39047 Posts

Posted - Jun 09 2025 :  00:47:03  Show Profile  Reply
Hi Jeff

We've added experimental support for text editing of PDF objects and annotations. Please email me to test the beta.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: