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.
Unfortunately, activation email could not send to your email. Please try again.

Create PDF with Custom Form

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

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

Christoph Schuster
Replied On September 11, 2009 04:19 AM

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

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

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

Christoph Schuster
Replied On September 15, 2009 11:06 AM

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

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

Hi Christoph,

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

Regards,
Suba

CONFIRMATION

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.

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.

;