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
 Modified PDF shows font in different color

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
yeohray2 Posted - Jun 03 2024 : 06:50:29
Using the PDFPageObjects demo and iepdf32.dll (125.0.6406.0) and ImageEn 13.2, I loaded a PDF file.



I changed the text.



I then applied the changes, and saved the modified PDF. When I open the modified PDF, the font color is in black.



You can download the PDF file here - https://drive.google.com/file/d/1JPhfrAoPqpaTe1ZIcndtX7M1S-XJ7PUs/view?usp=drive_link

Is there some setting I need to apply to preserve the font properties?

Thanks.

Ray Mond
2   L A T E S T    R E P L I E S    (Newest First)
yeohray2 Posted - Jun 04 2024 : 02:21:19
Hi Nigel,

Noted, thanks.

Ray
xequte Posted - Jun 04 2024 : 00:22:51
Hi Ray

That looks to be a quirk of PDFium. You might want to explicitly set the Text fill color when you update the text:

ImageEnView1.PdfViewer.Objects[ImageEnView1.PdfViewer.SelectedObject].FillColor := color;

Nigel
Xequte Software
www.imageen.com