Author |
Topic |
|
abbasiali1010@gmail.com
5 Posts |
Posted - Nov 08 2021 : 01:59:09
|
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
38615 Posts |
|
ali
Iran
110 Posts |
Posted - Nov 10 2021 : 04:07:07
|
Hi Nigel
Thank you, I will test it.
Best Regards
Ali Abbasi |
|
|
ali
Iran
110 Posts |
Posted - Nov 10 2021 : 04:32:47
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 10 2021 : 04:39:32
|
Hi Ali
Are you using ImageEnMView1.MIO.LoadFromFilePDF()?
Also, see the demo:
\Demos\Other\PDFViewer\PdfViewer.dpr
Nigel Xequte Software www.imageen.com
|
|
|
abbasiali1010@gmail.com
5 Posts |
Posted - Nov 10 2021 : 15:03:48
|
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 |
|
|
ali
Iran
110 Posts |
Posted - Nov 14 2021 : 07:46:16
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 14 2021 : 17:11:36
|
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
|
|
|
ali
Iran
110 Posts |
Posted - Nov 17 2021 : 01:54:35
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 17 2021 : 04:20:54
|
Hi Ali
Ensure you are calling ImageEnMView.AttachedImageEnView, not ImageEnView.
Nigel Xequte Software www.imageen.com
|
|
|
ali
Iran
110 Posts |
Posted - Nov 17 2021 : 06:14:32
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 17 2021 : 15:05:26
|
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
|
|
|
abbasiali1010@gmail.com
5 Posts |
Posted - Nov 19 2021 : 11:03:01
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 19 2021 : 23:02:26
|
Hi Ali
Have you tried the demo:
\Demos\Other\PDFViewer\PdfViewer.dpr
Does that work correctly for you?
Nigel Xequte Software www.imageen.com
|
|
|
ali
Iran
110 Posts |
Posted - Nov 20 2021 : 06:58:07
|
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 |
|
|
xequte
38615 Posts |
Posted - Nov 21 2021 : 22:53:57
|
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
|
|
|
ali
Iran
110 Posts |
Posted - Nov 24 2021 : 02:45:45
|
Hi Nigel
Thank you very much, You are the best!
Best Regards
Ali Abbasi |
|
|
|
Topic |
|