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
 How to open PDF using ImageMagic and GhostScript ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

326 Posts

Posted - Mar 05 2024 :  14:45:43  Show Profile  Reply
I want to open PDF using ImageMagic and GhostScript.

Installed the ImageMagic plugin from the developer's website and connected it to the program (checked the registraration).
The GhostScript plugin is installed.

Use
ImageEnView1->LoadFromFile (or LoadFromFilePDF)

I get an error about the absence of iepdf32.dll (But I wouldn't like to use PDFium)

xequte

38448 Posts

Posted - Mar 05 2024 :  15:13:37  Show Profile  Reply
Hi

At the start of your application, please call:

TIEMiscPluginsImageMagick.RegisterPlugin( '', True );

https://www.imageen.com/help/TIEMiscPluginsImageMagick.RegisterPlugin.html


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

graph_man

326 Posts

Posted - Mar 06 2024 :  06:57:27  Show Profile  Reply
Hi,

I use

IEGlobalSettings()->RegisterPlugIns(MyImageMagickPath, TIEPlugIns() << iepiImageMagick);

This is not enough?
Go to Top of Page

graph_man

326 Posts

Posted - Mar 06 2024 :  07:02:36  Show Profile  Reply
TIEMiscPluginsImageMagick->RegisterPlugin(MyImageMagickPath, true);

[BCC32 Error] Unit9.cpp(50): E2108 Improper use of typedef 'TIEMiscPluginsImageMagick'

ImageEn 13.0.0
C++ Builder 2010
Go to Top of Page

xequte

38448 Posts

Posted - Mar 06 2024 :  19:27:06  Show Profile  Reply
Hi

It is a class method, so that should read:

TIEMiscPluginsImageMagick::RegisterPlugin(MyImageMagickPath, true);

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

graph_man

326 Posts

Posted - Mar 07 2024 :  07:25:04  Show Profile  Reply
The error is gone. Thank you.
Where is the quality (resolution) of the resulting raster images of a PDF file set?
Go to Top of Page

xequte

38448 Posts

Posted - Mar 07 2024 :  19:57:16  Show Profile  Reply
For ImageMagick you need to set the density:

ImageEnView1.IO.Params.Dict.Clear();
ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick:Density', 200 );
ImageEnView1.IO.LoadFromFile( 'D:\doc.pdf' );

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

graph_man

326 Posts

Posted - Mar 08 2024 :  03:19:19  Show Profile  Reply
Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: