how to embed font when export SSRS report file to pdf using reportviewer in c# RRS feed

  • Question

  • I am working on export SSRS file to pdf in c# using reportviewer

    using (Streams = view.ServerReport.Render("PDF"deviceInfonullout m_mimeType, out m_fileExt))

    and deviceinfo is a string and it define as below

    deviceInfo"<DeviceInfo>"     + "  <OutputFormat>" + OutputFormat + "</OutputFormat>"     + "  <PageWidth>" + PageWidth + "</PageWidth>"     + "  <PageHeight>" + PageHeight + "</PageHeight>"     + "  <MarginTop>" + MarginTop + "</MarginTop>"     + "  <MarginLeft>" + MarginLeft + "</MarginLeft>"     + "  <MarginRight>" + MarginRight + "</MarginRight>"     + "  <MarginBottom>" + MarginBottom + "</MarginBottom>" 

       + "</DeviceInfo>"


    after export job is done, we send a pdf batch to our fullfillment vendor however it is too big because each pdf has embedded subset fonts.

    My question is there a way to include only certain fonts instead all of them? we can pick and choose

    the fonts to include. since there are couple "standard" font that we choose not include since we know it is

    installed via our fullfillment vendor.

    I am appreciate your helps.


    Monday, August 17, 2020 5:28 PM

All replies

  • Hi motheroftwo,

    Thank you for posting here.

    According to the documentation, if the font you use is a font commonly referred to as standard type 1 font or basic 14 fonts in the PDF specification, the font will not be embedded for ANSI content.

    Font Embedding

    If there are other fonts, you may have to embed them.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 18, 2020 5:17 AM
  • Hi Timon,

    First, thank you for response.

    Currently all of fonts we use are embedded. However that make the file size too large. Is it possible to only have half of our fonts embedded and request that the other half is installed by our vendor? Is it possible to do that programmatically? Below is the fonts we use. 


    -ABCDEE+Calibri (Embedded Subset)



    -ABCDEE+Code 39 (Embedded Subset)



    -ABCDEE+OCR A Extended (Embedded Subset)



    -ABCDEE+Trebuchet (Embedded Subset)



    Sunday, August 23, 2020 11:39 PM