ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to create a monochrome PDF

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
GeneJu Posted - Sep 10 2025 : 14:07:41
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
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 15 2025 : 15:08:20
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
GeneJu Posted - Sep 15 2025 : 11:34:02
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
xequte Posted - Sep 13 2025 : 01:02:49
Thanks Gene, so it is working correctly now?

Nigel
Xequte Software
www.imageen.com
GeneJu Posted - Sep 12 2025 : 09:07:14
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
xequte Posted - Sep 11 2025 : 13:51:29
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
GeneJu Posted - Sep 11 2025 : 09:41:15


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
xequte Posted - Sep 11 2025 : 01:51:10
Hi Gene

What is your value for:

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

Nigel
Xequte Software
www.imageen.com