PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 1:08 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Feb 27, 2023 2:29 pm 
Offline

Joined: Mon Feb 27, 2023 2:07 pm
Posts: 6
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!!!


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 27, 2023 3:00 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 28, 2023 8:00 am 
Offline

Joined: Mon Feb 27, 2023 2:07 pm
Posts: 6
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 131 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group