You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a pdf with fields in it.
I use MigraDoc but my problem is related to pdfSharp classes.
Document document = new Document();
Section section = document.AddSection();
section.AddParagraph("Signature Test");
PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(false, PdfFontEmbedding.Always);
pdfRenderer.Document = document;
pdfRenderer.RenderDocument();
// NullPointerException: AcroForm is null
pdfRenderer.PdfDocument.AcroForm.Elements.Add(PdfAcroForm.Keys.SigFlags, new PdfInteger(3));
const string filename = "HelloWorld.pdf";
pdfRenderer.PdfDocument.Save(filename);
Process.Start(filename);
My problem is that the pdfRenderer.PdfDocument.AcroForm is always null and there is no possibility to create a new object.
Unfortunately there is no example on the homepage.
The text was updated successfully, but these errors were encountered:
I want to create a pdf with fields in it.
I use MigraDoc but my problem is related to pdfSharp classes.
My problem is that the
pdfRenderer.PdfDocument.AcroForm
is always null and there is no possibility to create a new object.Unfortunately there is no example on the homepage.
The text was updated successfully, but these errors were encountered: