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
 PDF-Viewer with Transition Page Flip

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
jenswahl Posted - Sep 01 2026 : 14:28:05
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
2   L A T E S T    R E P L I E S    (Newest First)
jenswahl Posted - Sep 01 2026 : 19:01:44
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/
xequte Posted - Sep 01 2026 : 16:45:01
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