PdfSharpCore
PdfSharpCore copied to clipboard
Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
I'm trying to add custom font family and font weight in the inline html. But I couldn't able to see any changes in the generated pdf. var htmlContent = `...
Here is the problem: We are using both XFont and Font objects. We create our fonts this way:  And while we no problem with the XFonts in handling Chinese...
Targeted latest Six Labor packages to allow upgrading in consumer projects. Targets > .NET 6 due to constraints in Six Labor packages
proyect en net.maui in Net 7.0 { String filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "xxx.pdf"); Document document = new Document(); Section section = document.AddSection(); Paragraph paragraph = section.AddParagraph(); paragraph.Format.Font.Color = Color.FromCmyk(100, 30, 20,...
Hello. I have some troubles with PDFSharpcore. I would integrate some json text, created with NewtonSoft.json (vers 13.0.3), into a pdf file and to indent it correctly. The text is...
How to add a table with 3 rows and 5 columns in the document?
when I use pdfsharpcore in MAUI , I got a ERROR when running the first step example. Here is the error: System.NotImplementedException: 'FontResolver not implemented for this platform (PdfSharpCore.Utils.FontResolver.cs).'
Is there a way to calculate pdf margins for any given pdf ? I tried few approaches via PdfSharpCore library and it didn't work for all pdfs. comparing MediaBox &...
Hi, How can I add an inner margin with DrawString? Currently you can only use TopLeft alignment. "Error: System.ArgumentException: Only TopLeft alignment is currently implemented. at PdfSharpCore.Drawing.Layout.XTextFormatter.DrawString(String text, XFont font,...
Hello. I use PdfSharpCore version 1.3.45 (.NET Core 5). I use code below to generate a PDF-file: public byte[] Execute() { using var document = new PdfDocument(); DrawReport(document); using var...