Author |
Topic  |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 14 2014 : 09:59:13
|
Hi
I am trying to load and view a PDF using a TImageEnView component and the ImageMagick plugin as outlined in the help.
I have installed ImageMagick and the Ghost Script libraries as instructed, and tested that ImageMagick works from the command line, which it is.
When I run the code from the help file to display my PDF, I get no errors but no PDF. I then added this line to see if the plugin was available:
TIEMiscPluginsImageMagick.IsAvailable
but that comes back false so the plugin is not being activated.
I have installed the latest version of ImageMagick: ImageMagick-6.8.9-7-Q16-x64-dll.exe and the latest version of the Ghost Script library: gs914w32.exe
I am using the latest version of ImageEN on a Windows 7 PC with Delphi XE6. Has anyone else had problems displaying a PDF or is it something I've missed?
Bruce. |
|
Uwe
  
284 Posts |
Posted - Sep 14 2014 : 13:27:19
|
Bruce,
If I were you I wouldn't waste my time with ImageMagick and Ghost Script. Just use a simple TWebBrowser to display the PDF files (requires Acrobat Reader to be installed). Much less complicated.
-Uwe |
 |
|
xequte
    
39140 Posts |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 14 2014 : 23:28:15
|
Nigel
I can display 2 out of the 3 SVG files from the Zip file you attached in the IMDisplay application that comes with ImageMagick if that's what you mean.
Bruce. |
 |
|
Uwe
  
284 Posts |
Posted - Sep 15 2014 : 16:09:29
|
Nigel
Since when is it possible to use the original ImageMagick DLL's with ImageEn? I thought you have to stick with the DLL that is provided by you guys.
Cheers Uwe |
 |
|
xequte
    
39140 Posts |
Posted - Sep 15 2014 : 22:53:43
|
@Uwe: Since v5.0.6 ImageEn will automatically support ImageMagick (and thereupon Ghostscript) if they are installed on the system.
@Bruce: Sorry, I meant using an ImageEnView.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 16 2014 : 08:49:01
|
Nigel
Do I use the same ImageMagick plugin and code exactly like I do for a PDF?
If so I don't get anything either when I try and load one of the examples in the zip file.
Or do I need to include something else?
I don't see any help for loading an SVG, in fact I didn't even realise I could do it!
Bruce.
|
 |
|
Uwe
  
284 Posts |
Posted - Sep 16 2014 : 13:54:22
|
Thanks, Nigel.
-Uwe |
 |
|
xequte
    
39140 Posts |
Posted - Sep 16 2014 : 23:39:44
|
Hi Bruce
I'm working on an ImageMagick demo now.
One thing to consider is that the installed version of ImageMagick should match the bitness of your application. I.e. if you are creating a 32bit Delphi application, ensure you have installed the 32bit version of ImageMagick.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 17 2014 : 05:58:46
|
Nigel
Yes, swapping to the 32 bit version fixes it - so stupid of me not to have installed the 32 bit version.
I look forward to having a look at your demo and see what ImageEn offers when you have a PDF - or an SVG come to that - loaded.
Bruce. |
 |
|
xequte
    
39140 Posts |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 19 2014 : 04:29:05
|
Nigel
One final question!
I can't seem to get the LoadFromURL call to work with PDF's - has this functionality not been added for the PDF format, or is it just me?
Bruce. |
 |
|
xequte
    
39140 Posts |
Posted - Sep 22 2014 : 14:43:44
|
Hi Bruce
Hmmm, that's odd, all supported format should load. Did you try stepping into the ImageEn code to see where it was failing?
Have you tested LoadFromURL with other formats, JPEG and SVG, in particular?
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
bmesser
  
United Kingdom
236 Posts |
Posted - Sep 23 2014 : 07:28:19
|
Nigel
I always figured that because the installer installed ImageEN as a series of BPL's that I never could see any of the source code at design time in any of the various components that I use, so I never have traced anything relating to ImageEN back to the original source code.
LoadfromURL works for all image formats apart from PDF and I use it extensively, although I will admint I've never tried downloading SVG either.
Bruce. |
 |
|
|
Topic  |
|