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
 PDF-Viewer with Transition Page Flip
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jenswahl

Germany
76 Posts

Posted - Sep 01 2026 :  14:28:05  Show Profile  Reply
Hello Nigel,

to get a "page flip"-feeling on reading PDF-files I "mixed" your PDFViewer-Demo with code from
your Transition-demo only for the "next"-button to test it.
I set Transsitioneffect and its duration already in the object-inspector. It didn't work
with ImageEnView1.IO.Seek(ieioSeekNext).
In the help I found that seek is only setting ImageIndex and after them LoadFromFile. So I
replaced seek with it and I can see the transition BUT only with two white pages - the next
page will be shown only after the transition. Where is my error or does a transition do not work with
PDF-files?

Here is my mixed code for the "next"-button (only 2 rows at the end):


procedure TframPDF.btnNavNextClick(Sender: TObject);
begin
//==>> Original from PDFViewer-demo:	ievPDF.IO.Seek(ieioSeekNext);

//The following is from Transition-demo adapted:
//note: ievPDF is a TImageEnView

// 	Set Transition options
//this would be nonsense:
//  ievPDF.TransitionEffect   := ievPDF.TransitionEffect;
//  ievPDF.TransitionDuration := ievPDF.TransitionDuration;
//  ievPDF.TransitionParams.AlternativeStyle := chkDrawAlternative.checked;

// 	Load the next image
//  ImageEnView1.IO.LoadFromFile( ExtractFilePath(ParamStr(0)) + IntToStr(fCurrentImage) + '.jpg');

//has no effect:	ievPDF.IO.Seek(ieioSeekNext);
    ievPDF.IO.Params.ImageIndex := ievPDF.IO.Params.ImageIndex + 1;
//lblPathComplete.Caption is the complete path to the loaded PDF-file:
    ievPDF.IO.LoadFromFile(lblPathComplete.Caption);
end;


Kind regards

Jens

xequte

39530 Posts

Posted - Sep 01 2026 :  16:45:01  Show Profile  Reply
Hi Jens

PDFViewer is a special overlay for TImageEnView to allow PDF functionality. The transition effects work only with images. So you could make it work only if you load the PDF pages as images (PDFViewer.Enabled = False).


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

jenswahl

Germany
76 Posts

Posted - Sep 01 2026 :  19:01:44  Show Profile  Reply
Thank you for the information. I pretty much thought so. It works without the bells and whistles, too...

Kind regards

Jens

www.inntalsoftware.de/en/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: