PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Add Text/form box in migradoc that is rendered to pdf
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4422
Page 1 of 1

Author:  jorgz [ Mon Feb 27, 2023 2:29 pm ]
Post subject:  Add Text/form box in migradoc that is rendered to pdf

Hello,

I have the task to add a text box(form) where users can input text to a pdf that is generated with migradoc.

So the code creates a Document and then uses PdfDocumentRenderer(). On the internet the closest I have found to an answer is the accepted answer to this post:

https://stackoverflow.com/questions/544 ... 4#66003104

But this is for a pdfsharp not migradoc. I have tried using python to add pages with text boxes to the document but links in the table of contents that lead to pages after the table of contents are lost, the links before the table of contents are maintained.

Any way, I am using version 1.50.5147 installed in nuget and using visual studio comunity 2022

Is it even possible to define a text/form box for user input in a document and then redere it to pdf?

Thanks!!!

Author:  TH-Soft [ Mon Feb 27, 2023 3:00 pm ]
Post subject:  Re: Add Text/form box in migradoc that is rendered to pdf

Hi!
MigraDoc uses PDFsharp under the hood, but not everything that PDFsharp can do can be done though the MigraDoc API.
It is possible to mix both APIs and have the document created by MigraDoc, but add form fields by using PDFsharp directly.
Or use the PDFsharp API exclusively.

Author:  jorgz [ Tue Feb 28, 2023 8:00 am ]
Post subject:  Re: Add Text/form box in migradoc that is rendered to pdf

Hi, thanks for the hit.

Sorry about my dumb questions and insistance:

If I want to add the text box form to a migradoc cell of a table, So the table has two columns the column 0 is where I write some description as a paragraph, the colum 1 is where for every description I should add the text form box.

Due to time constrains and that Im not an expert on c# I want to use whats allready available, so the question is how can I create an acroform(is it even available in pdfsharp?) and add it to the cell?

Thanks for the support.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/