This is a migrated thread and some comments may be shown as answers.

Embedding fonts in pdf and filesize

1 Answer 180 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 19 Jul 2017, 06:07 PM

Hello,

A while back I requested the ability to embed fonts when exporting from a RichTextEditor to pdf. Eventually this functionality was added (thank you for that!), but in my current use case it's causing pdf filesizes to be extremely large compared to the workaround solution I've initially implemented. I was wondering if anyone at Telerik would have an idea on the differences between the two methods and why one is much larger than another.

Use case info:
I'm required to take the output from a bunch of RichTextEditors, export each one to a pdf and then merge those individual pdfs into a larger one. By using the PdfFormatProvider, this causes fonts to be embedded multiple times in the merged pdf (and makes the filesize really large).

However, before this functionality, Telerik recommended a workaround to get fonts embedded that takes the content from the the RichTextEditor into a docx file, then imported back in and exported to a pdf. This was a hacky workaround that causes some formatting issues, but actually embedded the font and didn't balloon the filesize.

(for details on the workaround, it was recommended in this thread: http://www.telerik.com/forums/embedding-fonts-in-pdf-output)

 

Is there anyway to make the proper pdf export provider work similar to the one in the workaround? Using the correct export provider fixes a bunch of my issues, but the duplicate embedded fonts causing large file size is a dealbreaker unfortunately.

Thanks!

-Tom

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 20 Jul 2017, 12:58 PM
Hello Tom,

Thank you for writing.

Embedding fonts when exporting RadRichTextEditor to PDF is still not supported. I have logged the feature request on our feedback portal, here: ADD. RadRichTextEditor - implement font embedding mechanism for PDF export. I have also added a vote for the item on your behalf. Additionally, you can subscribe to it and be updated with its status changes.

For the time being, you would need to stick to the suggested in the forum post workaround. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RichTextEditor
Asked by
Tom
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or