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 ShowAllPages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mdgodfrey

USA
54 Posts

Posted - May 01 2024 :  18:24:22  Show Profile  Reply
Can someone tell me why the following code doesn't work for being able to move through a multipage PDF document with mouse or arrow keys?

Function TfrmPDFViewer.ViewPDF(aPDFName: String) : Boolean;
var
  PDFFile: String;
begin
  PDFFile := frmPreferences.DirRepository + '\Help\' + aPDFName;
  ImageEnView1.PDFViewer.ShowAllPages := True;
  ImageEnView1.Update();
  ImageEnView1.Blank;
  ImageEnView1.IO.LoadFromFilePDF(PDFFile);
end;

I have ShowAllPpages working in other places where I have an ImageEnView.
MouseInteractGeneral is set with [miScroll].
I am loading multipage documents and using buttons to move to other pages works.
I have moved ShowAllPages to several other locations in the program with no behavior difference.
So, just guessing that I am missing some other property?

xequte

38608 Posts

Posted - May 01 2024 :  23:37:46  Show Profile  Reply
Hi

Does ImageEnView1.PDFViewer.Enabled = TRUE?

Is the TImageEnView the focused control? I.e. if you click the ImageEnView (or programmatically set it as focused) does it work?



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

mdgodfrey

USA
54 Posts

Posted - May 02 2024 :  00:34:45  Show Profile  Reply
It is focused.
The problem is that I hadn't added ImageEnView1.PdfViewer.Enabled := True;
Which is kind of weird because everything else, at least with viewing, responds like the PDFViewer is enabled.

Also, this next release will have the adding annotations feature?

Thanks

Go to Top of Page

xequte

38608 Posts

Posted - May 02 2024 :  22:07:02  Show Profile  Reply
If PdfViewer.Enabled = False, ImageEn will load the PDF file as an image (specified page only).
If PdfViewer.Enabled = True, ImageEn will load the PDF file as a document.

Annotations are included in the next update.


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

mdgodfrey

USA
54 Posts

Posted - May 03 2024 :  12:04:13  Show Profile  Reply
Thanks for the help. Very excited about annotations!
Go to Top of Page

mdgodfrey

USA
54 Posts

Posted - May 03 2024 :  13:58:15  Show Profile  Reply
Will Add Bookmark be an option at some point?
Go to Top of Page

xequte

38608 Posts

Posted - May 03 2024 :  21:45:52  Show Profile  Reply
PDFium does not support that, at this time.



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