We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create PDF with Custom Form

Thread ID:





89907 Sep 10,2009 08:45 AM UTC Sep 16,2009 10:20 AM UTC ASP.NET Web Forms (Classic) 5
Tags: PDF
Christoph Schuster
Asked On September 10, 2009 08:45 AM UTC


i would like to create a PDF with a (embedded) custom Font, but the following Code gives an error:

Dim f As Font = New Font("Corporate S", 12)
Dim Font = New PdfTrueTypeFont(f, False)

"PdfTrueTypeFont cannot be accesed, because it's Friend"

(original Message was: Fehler 10 "Syncfusion.Pdf.Graphics.PdfTrueTypeFont" ist in diesem Kontext nicht zugreifbar, da es sich um "Friend" handelt.)

The only incliuded Reference is to the Syncfusion.Pdf.Web, Version=7.303.0.20

do You hava an idea how to fix this?


Sri Subhashini M [Syncfusion]
Replied On September 11, 2009 06:02 AM UTC

Hi Christoph,

Thank you for your interest in Essential PDF.

I was able to reproduce the issue which you mentioned here. We have to use either Pdf.Base or Pdf.Web assemblies in an application.

Could you please try to remove the Pdf.Base assembly from your application and let me know if this helps?


Christoph Schuster
Replied On September 11, 2009 08:19 AM UTC


i have only on reference to Syncfusion in my Project:

C:\Program Files\Syncfusion\Essential Studio\\Assemblies\3.5\Syncfusion.Pdf.Web.dll

(I'm using Windows 7 x64, could this be a issue?)


Sri Subhashini M [Syncfusion]
Replied On September 15, 2009 04:47 AM UTC

Hi Christoph,

We regret for the inconvenience caused.

Please remove the reference to Syncfusion.Pdf,Web.dll. Both Pdf.Base and Pdf.Web contain the same classes, but Pdf.Web has some changes to be able to deploy in partial trust environments. Currently, we don't provide PdfTrueTypeFont support in Pdf.Web. Could you please do find the our online documentation for more information about Partial Trust Scenarios and let me know if you need any further assistance?



Christoph Schuster
Replied On September 15, 2009 03:06 PM UTC


now it's working, thank you.

I now have the following DLL's in my asp.net project:
- Syncfusion.Core.dll
- Syncfusion.Compression.Base.dll
- Syncfusion.Pdf.Web.dll

regards and thank you

Sri Subhashini M [Syncfusion]
Replied On September 16, 2009 10:20 AM UTC

Hi Christoph,

Glad to hear that it worked fine. Please let me know if you need any further assistance.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon