Skip to main content
0 votes
2 answers
188 views

In a .NET MAUI 9 app I use PdfSharp.Maui (1.0.5) to create a pdf document. I don't use PdfSharp.Maui directly but rather PDFsharp which is a transitive package: using (PdfDocument document = new ...
dpant's user avatar
  • 2,244
0 votes
1 answer
123 views

TL;DR: I want to replace text input fields in a PDF with strings but they are duplicated and this is difficult with PdfSharp. Does anyone know a library which makes this easy? I am trying to replace ...
Matt W's user avatar
  • 12.7k
1 vote
1 answer
127 views

The code below is working fine for most web Brower but I am seeing problems with edge browser 137 and 138. In Edge browser 137 and 138 keep asking for owner password and went I enter in the password ...
Jefferson's user avatar
  • 119
0 votes
1 answer
60 views

When using the PdfSharp NuGet package, I can create string elements in a PDF document, but because the XGraphics.DrawString does not return a value I cannot identify the element it has created. I am ...
Matt W's user avatar
  • 12.7k
1 vote
1 answer
123 views

Building a webapp with C# and Blazor. I have a function in one of my .cs files that uses PdfSharp to generate a PDF based on data from a dictionary. I'm trying to add a signature field that will allow ...
Sunkist's user avatar
  • 21
-1 votes
1 answer
163 views

I am creating an Azure function to convert a png (stored in the blob store) to a pdf and upload it to the blob store. My code is failing for pngs over ~4000 pixels. I have tried to amend my method for ...
f_olivere's user avatar
-1 votes
1 answer
327 views

I am to creating an Azure function with a method that converts a png to a pdf. The method takes a byte array (png) and I want to output a byte array (pdf). I am then uploading the pdf to the blob ...
f_olivere's user avatar
-1 votes
1 answer
75 views

I'm trying to write a method in my Azure Function using PdfSharp that will download a png from a url, convert it to a pdf and upload it to the blob store. However, I keep running into an issue with ...
f_olivere's user avatar
0 votes
1 answer
150 views

I have a file and draw a rectangle in it. var brush = new XSolidBrush(XColor.FromArgb(255, colorArray.R, colorArray.G, colorArray.B)); XGraphics gfx = XGraphics.FromPdfPage(document.Pages[0]); gfx....
Nikolas McRain's user avatar
1 vote
1 answer
111 views

I have a C# .netFramework4.8 COM INTEROP library that takes data and puts it into a .pdf file to be saved somewhere. This involves PDFSharp, as I need to take pages out of existing .pdf files and ...
TheKDude's user avatar
-1 votes
2 answers
218 views

I'm trying to write code that stamps a passport with the system users name, date and an image of their signature (which I store as a varbinary in the sql database and byte in the model). Here is my ...
William Sewell's user avatar
-1 votes
1 answer
112 views

I am trying this: try { using (var memoryStream = new MemoryStream(pdfBytes)) { // Load the PDF document PdfSharp.Pdf.PdfDocument pdfDocument = PdfReader.Open(memoryStream, ...
innom's user avatar
  • 1,155
1 vote
1 answer
921 views

For example this line: gfx.DrawString( "Bit Depth: " + lightning.BitDepth, new XFont("Arial", 14), XBrushes.Black, new XRect(50, 330, page.Width, page.Height), ...
Daniel Lip's user avatar
  • 11.5k
0 votes
2 answers
81 views

I made a small function, that reads a PDF, adds some table on original PDF, then saves as a new file. The problem is when I use it, it seems to block the original file, and several users cannot read ...
Siegfried.V's user avatar
  • 1,615
0 votes
1 answer
149 views

I'm using MigraDoc to layout PDF documents, which are generated with PDFSharp. I would like to add Alt Text to images. Intuitively, I would expect that the Image would have a property such as AltText, ...
AJ Morris's user avatar
  • 1,119

15 30 50 per page
1
2 3 4 5
61