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
 "ImageEnView" freezes when viewing the PDF file

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
Stalker4 Posted - Jul 28 2022 : 04:50:27
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
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 01 2022 : 17:08:27
Hi

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

Nigel
Xequte Software
www.imageen.com
Stalker4 Posted - Aug 01 2022 : 02:58:10
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.
xequte Posted - Jul 31 2022 : 00:15:59
Hi

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

Nigel
Xequte Software
www.imageen.com
Stalker4 Posted - Jul 30 2022 : 08:00:26
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
xequte Posted - Jul 29 2022 : 00:43:03
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