Asp.net C # pdf generator that runs on a trust tool

Friends, I need to create PDF reports on a server where applications with full trust run . (I cannot use PdfSharp and MigraDoc due to security exceptions when I say

PdfDocumentRenderer renderer = new PdfDocumentRenderer(true, PdfSharp.Pdf.PdfFontEmbedding.Always);
            renderer.Document = doc;
            renderer.RenderDocument(); // <<< ex here
            renderer.PdfDocument.Save(filePath);

Message: permission request of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089' failed.

, so I need You have an asp.net C # pdf generator that runs on a trust or low trust means OR be able to transfer values ​​from asp.net C # to any php pdf generator

Are there any solutions you know about? I'm trying itextsharp-5.0.5, but I'm not sure yet ....

Please let me know. Thanks and Regards PP

+3
source share
2 answers

See the answer to this question: https://stackoverflow.com/questions/4055838/best-commercial-html-to-pdf-c-component

Personaly, I have always used PDF4NET O2 solutions, but this is not free ...

+1
source

What is Developer Express XtraReports, which allows you to create reports with a good designer, than you can export them as PDF or other formats easily without rendering ui in case you are working in a backend process?

0
source

Source: https://habr.com/ru/post/1785900/


All Articles