Embedding fonts into PDF

Embedding fonts into PDF

  • Comments 7

Update: I stand corrected, embedding fonts into a PDF is not an option with the SAVEASPDF function in NAV 2009.

But now you at least know that this is solved in our next version.

/Clausl

******

I just want to share a small tip today. If you need to include a custom font into a RDLC report you need to first install the font, of course.

The Font must be a True Type font. If your font is an Open Type font you will need to convert this first for it to visible in Visual Studio.

Then you will need to restart the computer for the font to be embedded into the report when saving as PDF.

The restart issue took me some time to figure out, so with this small tip, you hopefully will not loose as much hair as I did, when you include a custom font into a RDLC report.

I have attached a sample RDLC report with a custom barcode font.

/Clausl

Attachment: Report with embedded font.pdf
Leave a Comment
  • Please add 3 and 2 and type the answer here:
  • Post
  • Hi Claus,

    This means that if I use SAVEASPDF(....) i'll get a pdf file with embedded fonts?

    I did a lot of times but I got ALWAYS pdf files without embedded fonts.

    Please could you attach an example with a very simple report, using a very popular font (arial is installed on every pc) I can use with SAVEASPDF an get a PDF file with embedded fonts?

    Thanks

    Stefano  

  • Hi Stefano,

    I suggest you use the font Segoe UI, this will be the standard font in our reports in our next version. More about this later...

    Design any report in VS, change a textbox or more to the font Segoe UI. Save, compile and run report and export to PDF.

    In Acrobat select "File / Properties"

    Select "Fonts" tab.

    Verify that the Segoe UI font is included in your PDF file.

    /Claus

  • Ciao Claus

    Sorry for my stupid question but we both are using about Nav2009 R2 and VS 2008 or you are wroking with a beta version of Nav7 and VS2010?

  • I'm using NAV 2009 R2 Build 32012. Drop me an e-mail(my e-mail address should be easy to guess) or click "Email Blog Author", then I will have a look why you cannot get it working.

    /Claus

  • Ciao Claus,I emailed you using Email Blog author.

    I didn't get any confirmation about it.

    Let me know if you don't receive it.

    Ciao

    Stefano

  • It is worth noting that unless you have the rights to distribute the font that you are using that it is illegal to embed the font.

  • Ciao Claus,

    I noticed an important difference between your attached pdf example and mine:

    If I open your pdf in Proprerties I see In Advanced section Pdf Author value:

    "Microsoft Reporting Service PDF Rendering Extension 10.0.0.0".

    In mine pdf (created with Nav2009 R2) the i see the value:  

    "Microsoft Reporting Service 9.0".

    Do I need to install on my computer some additional Visual Studio extension or some hotfix?

    Ciao

    Stefano

    e-mail address removed by clausl

Page 1 of 1 (7 items)