Embedding fonts in pdf and filesize

2 posts, 0 answers
  1. Tom
    Tom avatar
    13 posts
    Member since:
    Aug 2015

    Posted 19 Jul 2017 Link to this post


    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.



  2. Hristo
    Hristo avatar
    1508 posts

    Posted 20 Jul 2017 Link to this post

    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.

    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.
Back to Top