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 create a monochrome PDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

GeneJu

USA
4 Posts

Posted - Sep 10 2025 :  14:07:41  Show Profile  Reply
Hello,

I am using ImageEn 13.5.
I am trying to create a monochrome PDF but it end up being 8 bit color.

ImageEnViewPdf := TImageEnView.Create(nil);
ImageEnViewPdf.IO.Params.PDF_PaperSize := IEStrToPaperSize('US Letter', iepLetter);
ImageEnViewPdf.IO.Params.PDF_PaperLayout := ielLandscape;
ImageEnViewPdf.IEBitmap.PixelFormat := hyiedefs.ie1g;
IEGlobalSettings.AutoSetBitDepth := True;

Are there any other parameters that I need to change?

Thank You

Gene


GJ

xequte

39146 Posts

Posted - Sep 11 2025 :  01:51:10  Show Profile  Reply
Hi Gene

What is your value for:

https://www.imageen.com/help/TIEGlobalSettings.ActivePNGEngine.html

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

GeneJu

USA
4 Posts

Posted - Sep 11 2025 :  09:41:15  Show Profile  Reply


Hello Nigel,

"Native loading is being used for PNG"

Also these show as undeclared identifiers so maybe a version issue?
RadStudion 12.3
ImageEn 13.5

IEGlobalSettings.IEVisionAvailable
IEGlobalSettings.CopyIEStatusToClipboard(True, True);


GJ
Go to Top of Page

xequte

39146 Posts

Posted - Sep 11 2025 :  13:51:29  Show Profile  Reply
Ugh, sorry, I meant ActivePDFEngine. I need to know if you are using native ImageEn code or PDFium to save PDF files.

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

GeneJu

USA
4 Posts

Posted - Sep 12 2025 :  09:07:14  Show Profile  Reply
I installed the latest ImageEn and ran the Compatibility Fixer (useful tool)

I ran this code -
-----------------------------------------------------------------
IEGlobalSettings.PDFEngine := ieenAuto;
if IEGlobalSettings.ActivePDFEngine(True) = ieenNative then
ShowMessage('Native loading is being used for PDF')
else ShowMessage('Native loading is NOT being used for PDF');

"Native loading is NOT being used for PDF" was the answer
-----------------------------------------------------------------

The PDF was saved in the correct format greatly reduced in size.
------------------------------------------------------------------
ImageEn Version: v14.2.6 Beta (9/10/2025)

IEVision/IELib DLL: Unavailable
IELang DLL: Unavailable
PDFium DLL: Unavailable
SevenZip DLL: Unavailable
WebP DLL: Unavailable
ImageMagick DLL: Unavailable

JPEG Engines: [Native], WIC
PNG Engines: [Native], WIC
JPEG2000 Engines: [Native]
Raw Engines: [WIC]
PDF Engines: [Native]
WebP Engines: [WIC]

GJ
Go to Top of Page

xequte

39146 Posts

Posted - Sep 13 2025 :  01:02:49  Show Profile  Reply
Thanks Gene, so it is working correctly now?

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

GeneJu

USA
4 Posts

Posted - Sep 15 2025 :  11:34:02  Show Profile  Reply
Hi Nigel,
We are now getting the correct PDF format but found another error.
When we installed the newly re-compiled program for an end-user, she received the following error.

"PDFium.DLL is missing - Copy iepdf32.dll to folder with Notary.exe"
This message is somewhat confusing.

I found this - https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=5374

Where can I download the correct DLLs?

Thanks,

Gene

iepdf32.dll was already there. We added PDFium.dll but we are still getting the same error message.

Gene



GJ
Go to Top of Page

xequte

39146 Posts

Posted - Sep 15 2025 :  15:08:20  Show Profile  Reply
Hi Gene

iepdf32.dll is our PDFium DLL. It is included in the \DLL\ folder where you installed ImageEn.

However this error is not in our code: "PDFium.DLL is missing - Copy iepdf32.dll to folder with Notary.exe." So presumably it is in yours. What is the code that triggers this message?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: