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
 How to select a series of PDF Viewer objects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
732 Posts

Posted - Jun 09 2026 :  05:36:51  Show Profile  Reply
Hello,

I am trying to use the PDFViewer.Objects to select objects. I am able to select them manually but am finding it hard to select them programmatically.

I have attached a screenshot of the objects that I want to select. I have highlighted the lines which I want to select the objects of each line.



Once a line of objects are selected I want (if possible) to merge them into one single object and also to enlarge them by 15%.

TIA

Yogi Yang

xequte

39450 Posts

Posted - Jun 09 2026 :  17:23:58  Show Profile  Reply
Hi Yogi

You can select objects programmatically using:

  ImageEnView1.PdfViewer.SelectedObject := ...;

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

Multiple selection is not supported, and PDFium provides no way to merge objects.


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

yogiyang

India
732 Posts

Posted - Jun 10 2026 :  00:10:37  Show Profile  Reply
Hello Nigel,

Thanks for your reply. But getting the exact number of the objects that needs to be selected is the issue. Coz the length of a line is variable I am not able to find a way to select all the objects of a line that I have marked in Yellow color.

Is it possible to enlarge all the selected objects in one go? I mean are there any functions that I can use to tell PDFViewer to enlarge all selected objects?

While reading the documentation I understood that it is possible to extract selected objects to IEView as bitmap on a separate layer. I think I can use this to extract selected objects and then enlarge them in IEView. Correct me if I am wrong here.

The actual issue is to be able to select all the objects from start of a line to the end of a line programmatically.


Yogi Yang
Go to Top of Page

xequte

39450 Posts

Posted - Jun 12 2026 :  02:09:20  Show Profile  Reply
Hi Yogi

If you mean iterate through all the objects on a page (or within a rect for example), then you can just use PDFViewer.Objects, check its position (X, Y, Width, Height) and if necessary enlarge it, e.g. by using the Scale method.

https://www.imageen.com/help/TPdfObject.Scale.html

I don't think you want to convert them from a text object to an image object because then they will no longer be selectable in PDF viewing applications.

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