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
 RichText formatting not exported in 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
aleatprog Posted - Oct 10 2021 : 13:38:56
Hi,

(1) creating a RichText layer using:
ImageEnView1.LayersAdd('Double click', 40, clBlack, 'Arial', []);
TIETextLayer(ImageEnView1.CurrentLayer).EnableFormatting := True;

or
ImageEnView1.LayersAdd(ielkText);
TIETextLayer(ImageEnView1.CurrentLayer).RichText := 'Double click';
TIETextLayer(ImageEnView1.CurrentLayer).EnableFormatting := True;

then (2) manually editing the text, first using the enter key to get the two words on two lines and than formatting the text (e.g. color and/or size of the word "click" or text orientation of "Double click") and (3) saving it as PDF using:
ImageEnView1.IO.SaveToFilePDF(PDFFile);

the text in the PDF file is on two lines but doesn't have the formatting changes.



What am I missing?

Al
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 12 2021 : 00:22:48
Hi Al

Yes, that is a suitable workaround, though note that the text will not be selectable like other text (or available via Find for example).




Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Oct 11 2021 : 05:52:08
The following workaround converts the text layers to images before saving to PDF thus maintaining the RichText formatting.
for i := 0 to ImageEnView1.LayersCount - 1 do
if TIELayer(ImageEnView1.Layers[i]) is TIETextLayer then
ImageEnView1.Layers[i].ConvertToImageLayer(1, True);

Al
xequte Posted - Oct 10 2021 : 18:15:44
Hi Al

I'm afraid Rich Text formatting is not supported when exporting to PDF. I will add this to the documentation.

Nigel
Xequte Software
www.imageen.com