Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Font embedding in PDF
posted

Hi,

I created a PDF file using Infragistics45.WebUI.Documents.Reports.v18.1 library.

Here is the code:


Report rep = new Report();
ISection sec = rep.AddSection();

IQuickText t = sec.AddQuickText("test");
Font f = new Font("Arial", 12);
f.Preferences.Embed = false;
f.Preferences.Subset = false;
t.Font = f;

rep.Publish(@"test.pdf", FileFormat.PDF);

The size of PDF file is  22KB. The font was embedded. 

I have to generate many files and I don't want to embed the fonts to reduce overall size.

How to achieve that?

BR.

 

test.pdf

  • 10685
    Offline posted

    Hello Ivan,

    Thank you for posting in our community! 

    I have investigated the matter and it appears as a Development Issue as it seems you are using only ASCII characters. For reference: Official API .

    I have created dev issue 259718Embedding Font to PDF even when explicitly setting not to.”

    The next step will be for a developer to review the investigation and confirm these findings or to offer a fix, or other resolution.

    What is more, I have created a private case CAS-199332-Z3X8K7 for you, so you will be automatically updated when there is a solution provided. I will leave this case open and update you with this information after the review. You can also continue to send updates to this case at any time. You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "My Support Requests" page of our website. You will automatically receive updates for the progress of it and when a fix is available. 

    Additional info: Please notice, “Embedding fonts in your pdf file allows anyone who opens your file to see the document as you intended.  If you don’t embed a font, the pdf viewer will substitute a font if it is not available on the computer viewing the document, and the result usually isn’t what you intended”.