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
 I can not open pdf in ImageenMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

abbasiali1010@gmail.com

5 Posts

Posted - Nov 08 2021 :  01:59:09  Show Profile  Reply
Hi

Why I can not open pdf in ImageenMView?
Please add it option to ImageenMView.
I think I can open in ImageenFolderView.


Regards

Ali Abbasi

xequte

38127 Posts

Posted - Nov 08 2021 :  18:01:35  Show Profile  Reply
Hi Ali

You can open a PDF file in ImageEnMView, just ensure you have copied iepdf32.dll to your EXE folder:

https://www.imageen.com/download/

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

ali

Iran
110 Posts

Posted - Nov 10 2021 :  04:07:07  Show Profile  Reply
Hi Nigel

Thank you, I will test it.

Best Regards

Ali Abbasi
Go to Top of Page

ali

Iran
110 Posts

Posted - Nov 10 2021 :  04:32:47  Show Profile  Reply
Hi Nigel

I copied iepdf32.dll to my EXE folder path and ImageenMView show first page of PDF file.
I want to open all pages of PDF file in ImageenMView.

Best Regards

Ali Abbasi
Go to Top of Page

xequte

38127 Posts

Posted - Nov 10 2021 :  04:39:32  Show Profile  Reply
Hi Ali

Are you using ImageEnMView1.MIO.LoadFromFilePDF()?

Also, see the demo:

\Demos\Other\PDFViewer\PdfViewer.dpr

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

abbasiali1010@gmail.com

5 Posts

Posted - Nov 10 2021 :  15:03:48  Show Profile  Reply
Hi Nigel

Are you using ImageEnMView1.MIO.LoadFromFilePDF()?
No.
I copied with regular Windows copy.

Also, see the demo:
\Demos\Other\PDFViewer\PdfViewer.dpr
I will test it.

Thank you for your help.

Regards

Ali Abbasi
Go to Top of Page

ali

Iran
110 Posts

Posted - Nov 14 2021 :  07:46:16  Show Profile  Reply
Hi Nigel

I copy PDF from ImageEnMView1 to ImageEnView1 with below code and I want to after that show all pages of PDF File in ImageEnView1. Please help me for do this.

ImageEnMView1.CopyToIEBitmap(idx, ImageEnView1.IEBitmap);
ImageEnView1.Update;

Best Regards

Ali Abbasi
Go to Top of Page

xequte

38127 Posts

Posted - Nov 14 2021 :  17:11:36  Show Profile  Reply
Hi Ali

TImageEnMView.CopyToIEBitmap() will only copy a specific frame from a TImageEnMView.

If you attach a TImageEnView to your TImageEnMView then it will show all of the frames:

// Show thumbnail preview of all pages of a PDF document
ImageEnView1.PdfViewer.Enabled := True;
ImageEnMView1.AttachedImageEnView := ImageEnView1;
ImageEnView1.IO.LoadFromFilePDF( 'C:\document.pdf' ); // NOTE: Loading into TImageEnView, not TImageEnMView

https://www.imageen.com/help/TImageEnMView.AttachedImageEnView.html

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

ali

Iran
110 Posts

Posted - Nov 17 2021 :  01:54:35  Show Profile  Reply
Hi Nigel

I use above code and delphi show this error and what uses most be add?
[dcc32 Error] Documents_Unit.pas(584): E2003 Undeclared identifier: 'AttachedImageEnView'

Best Regards

Ali Abbasi
Go to Top of Page

xequte

38127 Posts

Posted - Nov 17 2021 :  04:20:54  Show Profile  Reply
Hi Ali

Ensure you are calling ImageEnMView.AttachedImageEnView, not ImageEnView.

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

ali

Iran
110 Posts

Posted - Nov 17 2021 :  06:14:32  Show Profile  Reply
Hi Nigel

I checked you were right.

I want to save image content of ImageEnView1 PDF file opened to other temporary place and load again with ImageEnView1.
As same as below which show error: "PDF document is not open".
// Show thumbnail preview of all pages of a PDF document
ImageEnView1.PdfViewer.Enabled := True;
ImageEnMView1.AttachedImageEnView := ImageEnView1;
ImageEnView1.IO.SaveToFile('C:\SCM\documents\doc.pdf');
ImageEnView1.IO.LoadFromFilePDF( 'C:\SCM\documents\doc.pdf' ); // NOTE: Loading into TImageEnView, not TImageEnMView


Best Regards

Ali Abbasi
Go to Top of Page

xequte

38127 Posts

Posted - Nov 17 2021 :  15:05:26  Show Profile  Reply
Hi

In your code above, when you call ImageEnView1.IO.SaveToFile() you have not yet loaded or added any content to the PDF, so there is nothing to save.

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

abbasiali1010@gmail.com

5 Posts

Posted - Nov 19 2021 :  11:03:01  Show Profile  Reply
Hi Nigel

Ok,I undestand it, so please help me I can open or show PDF file with all pages.
Now, i can show first page.

Regards

Ali Abbasi
Go to Top of Page

xequte

38127 Posts

Posted - Nov 19 2021 :  23:02:26  Show Profile  Reply
Hi Ali

Have you tried the demo:

\Demos\Other\PDFViewer\PdfViewer.dpr

Does that work correctly for you?

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

ali

Iran
110 Posts

Posted - Nov 20 2021 :  06:58:07  Show Profile  Reply
Hi Nigel

I tried ...\Demos\Other\PDFViewer\PdfViewer.dpr and it not useful for me.

I make a simple sample for my problem.
I want to if user click in ImageenMView1 PDF file then show all pages of PDF file in ImageenView1.
Please copy it sample in c:\.
Please modify my sample and upload here.


Best Regards

Ali Abbasi

attach/ali/20211120706_PDFViewer_ALI.zip
3484.29 KB
Go to Top of Page

xequte

38127 Posts

Posted - Nov 21 2021 :  22:53:57  Show Profile  Reply
Hi Ali

Change your ImageSelect event as follows:

procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
var
  fn: string;
begin
  fn := ImageEnMView1.ImageFileName[ idx ];
  if LowerCase( ExtractFileExt( fn )) = '.pdf' then
  begin
    ImageEnView1.PdfViewer.Enabled := True;
    ImageEnView1.IO.LoadFromFilePDF( fn );
  end
  else
  begin
    ImageEnView1.PdfViewer.Enabled := False;
    ImageEnMView1.CopyToIEBitmap(idx, ImageEnView1.IEBitmap);
    ImageEnView1.Update;
  end;
end;


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

ali

Iran
110 Posts

Posted - Nov 24 2021 :  02:45:45  Show Profile  Reply
Hi Nigel

Thank you very much, You are the best!

Best Regards

Ali Abbasi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: