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
 Modified PDF shows font in different color
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
102 Posts

Posted - Jun 03 2024 :  06:50:29  Show Profile  Reply
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

xequte

38319 Posts

Posted - Jun 04 2024 :  00:22:51  Show Profile  Reply
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
Go to Top of Page

yeohray2

Malaysia
102 Posts

Posted - Jun 04 2024 :  02:21:19  Show Profile  Reply
Hi Nigel,

Noted, thanks.

Ray
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: