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
 ImageMagick & PDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
236 Posts

Posted - Sep 14 2014 :  09:59:13  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

xequte

39140 Posts

Posted - Sep 14 2014 :  22:06:17  Show Profile  Reply
Hi Bruce

First, clarify the issue relates to the ImageMagick installation. Are you able to view other ImageMagick files that do not require Ghostscript, such as SVG:

www.xequte.com/temp/svg_files.zip


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
236 Posts

Posted - Sep 14 2014 :  23:28:15  Show Profile  Reply
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.
Go to Top of Page

Uwe

284 Posts

Posted - Sep 15 2014 :  16:09:29  Show Profile  Reply
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
Go to Top of Page

xequte

39140 Posts

Posted - Sep 15 2014 :  22:53:43  Show Profile  Reply
@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
Go to Top of Page

bmesser

United Kingdom
236 Posts

Posted - Sep 16 2014 :  08:49:01  Show Profile  Reply
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.

Go to Top of Page

Uwe

284 Posts

Posted - Sep 16 2014 :  13:54:22  Show Profile  Reply
Thanks, Nigel.

-Uwe
Go to Top of Page

xequte

39140 Posts

Posted - Sep 16 2014 :  23:39:44  Show Profile  Reply
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
Go to Top of Page

bmesser

United Kingdom
236 Posts

Posted - Sep 17 2014 :  05:58:46  Show Profile  Reply
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.
Go to Top of Page

xequte

39140 Posts

Posted - Sep 17 2014 :  16:19:50  Show Profile  Reply
Hi Bruce

The bitness issue is an easy one to overlook.

The demo only shows how to load the plug-in and retrieve the list of supported formats:

http://www.imageen.com/ieforum/topic.asp?whichpage=2&TOPIC_ID=1446#6574

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

bmesser

United Kingdom
236 Posts

Posted - Sep 19 2014 :  04:29:05  Show Profile  Reply
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.
Go to Top of Page

xequte

39140 Posts

Posted - Sep 22 2014 :  14:43:44  Show Profile  Reply
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
Go to Top of Page

bmesser

United Kingdom
236 Posts

Posted - Sep 23 2014 :  07:28:19  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: