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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDFium - how to implement page filter

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marek Posted - Jun 21 2021 : 16:00:59
Thanks for adding PDFium to the last release IMAGEEN.
I would like to know if it is possible, with the current functions, to implement a page filter.
What I want:
- I have a search term
- with the current functions I can find all pages, were the term was found
- now I would like to say show only these pages

Currently I could only remove other pages but it is not the best solution and probably slow if many pages exists.

Thanks,
Marek
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 28 2021 : 01:23:46
Hi Marek

In v10.0.2 you can use the TImageEnView.OnImageSeek event. Email me for a pre-release to test it.

Nigel
Xequte Software
www.imageen.com
marek Posted - Jun 27 2021 : 17:04:28
It is probably simpler to get the PdfViewer demo.
I have added the following code for filter event:

procedure TfrmMain.ImageEnMView1Filter(Sender: TObject; Index: Integer;
              const Filename: string; var ShowFrame: Boolean);
var pageNrStr: string;
    filter: string;
begin
   filter := ',2,5,8,';
   pageNrStr := ','+ExtractFilename(Filename)+',';
   if  not filter.Contains(pageNrStr)then
      ShowFrame:= false;
end;


Please load pdf file with more as 8 pages.
On the left we can see only filtered pages - corectly!
Now try to use buttons for next, prior, last - nothing happens there.
If the controls are linked with:
ImageEnMView.AttachedImageEnView := ImageEnView;

I would expect that next, prior, first, last - are internal implemented.
Of course next, prior,first, last - should shows only the pages: 2,5,8.
xequte Posted - Jun 23 2021 : 18:53:50
Hi

Can you be more specific? Do you mean that navigation in the TImageEnView goes to filtered pages?

Nigel
Xequte Software
www.imageen.com
marek Posted - Jun 23 2021 : 14:54:27
Hi Nigel,

thanks foe the hint with OnFilter.
It works great with TImageEnMView. It shows only pages I want show.
Unfortunatelly it seems that

ImageEnMView.AttachedImageEnView := ImageEnView;


does not work. ImageEnView shows all pages.
Would it be possible to fix it in the next release?
xequte Posted - Jun 23 2021 : 06:12:49
Hi Marek

A global search is on the to-do list. You can use OnFilter method to show only specific pages:

https://www.imageen.com/help/TImageEnMView.OnFilter.html

Nigel
Xequte Software
www.imageen.com