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
 "ImageEnView" freezes when viewing the PDF file
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Stalker4

Ukraine
25 Posts

Posted - Jul 28 2022 :  04:50:27  Show Profile  Reply
Hi,

Delphi 11.1, ImageEn 10.3.0

In attachments there is a demo error and PDF files to demonstrate this problem.

Run the demo, click the "Open" button, open the "error.pdf" file. The program freezes, the program freezes (focuses) on the ImageEnView1Resize processor (it constantly calls it).
If the program did not freeze at the weight, then try to just change the size of the demo window size with the mouse.

If you open the "norm.pdf" file in the demo, then everything is fine - there is no freezing.
Please note that the text content of these two PDF files is the same, they have the same PDF format and were created in the same program. But for some reason, on the "Error.pdf" file there is a mock in the ImageEnView1Resize processor, and everything is fine on the "norm.pdf" file.

attach/Stalker4/202272843054_ien10_3_0_err.zip
1324.38†KB

xequte

7079 Posts

Posted - Jul 29 2022 :  00:43:03  Show Profile  Reply
Hi

I cannot reproduce that in 11.0.1, you might want to email me for the latest update.

Also from v11.0.2 you can use FitMode to control how images/pages fit:

// Fit images to control
ImageEnView1.FitMode := iefmBoth;
ImageEnView1.AutoShrink  := True;
ImageEnView1.AutoStretch := True;
ImageEnView1.Update();

// Fit images to control width
ImageEnView1.FitMode := iefmWidth;
ImageEnView1.AutoShrink  := True;
ImageEnView1.AutoStretch := True;
ImageEnView1.Update();

// Fit images to control height
ImageEnView1.FitMode := iefmHeight;
ImageEnView1.AutoShrink  := True;
ImageEnView1.AutoStretch := True;
ImageEnView1.Update();


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

Stalker4

Ukraine
25 Posts

Posted - Jul 30 2022 :  08:00:26  Show Profile  Reply
Unfortunately, I still canít check this problem on version 11.0.1 or 11.0.2, since only trial version 10.3.5 is available on your site
Go to Top of Page

xequte

7079 Posts

Posted - Jul 31 2022 :  00:15:59  Show Profile  Reply
Hi

A newer version of the trial will be available later in the year.

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

Stalker4

Ukraine
25 Posts

Posted - Aug 01 2022 :  02:58:10  Show Profile  Reply
There is one incomprehensible moment in this problem.

After the opening of the PDF file, I call the procedure "ImageEnView1.FitToWidth()". And during the call of this method, for some reason, the event processor "ImageEnView1.OnResize" occurs.

Question: Why is this happening ?
After all, the "ImageEnView1.OnResize" processor should be called only when ImageenView1 size changes, and I do not change its size when opening PDF.
Go to Top of Page

xequte

7079 Posts

Posted - Aug 01 2022 :  17:08:27  Show Profile  Reply
Hi

If FitToWidth changes the display of scrollbars then OnResize will occur.

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