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. Image for the cookie policy date

Create PDF with Custom Form

Hi,

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?


Regards
Christoph

5 Replies

SS Sri Subhashini M Syncfusion Team 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?

Regards,
Suba


CS Christoph Schuster September 11, 2009 08:19 AM UTC

Hello,

i have only on reference to Syncfusion in my Project:

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

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

regards
Christoph


SS Sri Subhashini M Syncfusion Team 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?

http://help.syncfusion.com/ug_73/pdf/InstallationAndDeployment.html

Regards,
Suba


CS Christoph Schuster September 15, 2009 03:06 PM UTC

Hi,

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
Christoph


SS Sri Subhashini M Syncfusion Team 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.

Regards,
Suba

Loader.
Live Chat Icon For mobile
Up arrow icon