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
 Layers in ImageenView with PDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tiagosis

Brazil
24 Posts

Posted - Jul 16 2021 :  11:17:59  Show Profile  Reply
hi, I'm using 10.0.1 to work with PDF in ImageenView, but my routines that used to work applying layers over imageemview stopped working when imageenview.pdfview.enabled := true; how to solve this?

tiago

xequte

6248 Posts

Posted - Jul 16 2021 :  15:36:32  Show Profile  Reply
Hi Tiago

Yes, PDFViewer is not intended to be used with layers. Can you tell me more about what you are looking to do?

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

tiagosis

Brazil
24 Posts

Posted - Jul 19 2021 :  08:45:15  Show Profile  Reply
I really need you to point me something in the sense of layer that works with PDF, we have a routine that works by dropping an image with layer over imageen and we can't give it up.

tiago
Go to Top of Page

xequte

6248 Posts

Posted - Jul 20 2021 :  00:09:09  Show Profile  Reply
Hi Tiago

If you are looking to adorn a PDF page with arrows, etc, then don't enable ImageEnView.PDFViewer.

Instead just load the PDF page as a bitmap (ImageEnView.IO.LoadFromFilePDF). Then all the normal layer functionality will work.



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

tiagosis

Brazil
24 Posts

Posted - Jul 20 2021 :  09:44:35  Show Profile  Reply
if i do this will all pages of my pdf be displayed?

tiago
Go to Top of Page

xequte

6248 Posts

Posted - Jul 20 2021 :  16:58:06  Show Profile  Reply
No, that would create an unwieldy bitmap.

PDFViewer puts ImageEnView into a special display mode. Layers are not possible. This is outlined in the documentation.


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

tiagosis

Brazil
24 Posts

Posted - Jul 21 2021 :  17:23:48  Show Profile  Reply
I tried the solution indicated by you, but when I open the pdf using "loadfromfilepdf", imageenview distorts the PDF image making the printout illegible, how can I get around this? below is a screenshot of how it looks in imageenview.

tiago

Go to Top of Page

xequte

6248 Posts

Posted - Jul 21 2021 :  18:55:52  Show Profile  Reply
Hi Tiago

In this method, ImageEn rasterizes the PDF to bitmap, so ensure you are loading at reasonable size to maintain quality.

Either call LoadFromFilePDF() directly passing a size as parameters:

https://www.imageen.com/help/TImageEnIO.LoadFromFilePDF.html

Or set the AutoScaleImport properties:

https://www.imageen.com/help/TIOParams.AutoScaleImport.html


Also, ensure that you have specified a zoom filter:

ImageEnView1.ZoomFilter := rfLanczos3;





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