Questions tagged [migradoc]

MigraDoc Foundation is an open source .NET library that easily creates documents based on an object model with paragraphs, tables, styles, etc. and renders them into PDF or RTF. Use this tag for questions related to MigraDoc using any platform and any programming language.

MigraDoc Foundation is an open source .NET library that easily creates documents based on an object model with paragraphs, tables, styles, etc. and renders them into PDF or RTF.

MigraDoc Resources

Questions

Use this tag for all questions that relate to using the MigraDoc library.

PDFsharp is a different library from the same authors. MigraDoc includes PDFsharp and uses PDFsharp to create PDF files. Not all questions about MigraDoc justify the PDFsharp tag.
It is less confusing for people trying to answer your questions when you use the tag that corresponds to the API you are using (either or ). Simply look at the namespace of the objects you are using.

Related Tags

, ,

387 questions
10
votes
1 answer

Pdf sharp font style Bold,Italic and Underline together

Have any way set font style ItalicUnderline or BoldItalicUnderline? Thanks
Shahdat
  • 5,343
  • 4
  • 37
  • 37
9
votes
1 answer

Migradoc Header with table

I can make a header in Migradoc like this: //Create Header Paragraph paragraph = section.Headers.Primary.AddParagraph(); paragraph.AddText("Roto"); paragraph.Format.Font.Size = 9; paragraph.Format.Alignment =…
Jeff
  • 1,364
  • 1
  • 8
  • 17
8
votes
1 answer

Is there any way to have a background image in MigraDoc / PDFsharp?

I want to create a cover page that has text over a background image. Is this possible in MigraDoc / PDFsharp?
leora
  • 188,729
  • 360
  • 878
  • 1,366
8
votes
3 answers

Generating a DOC or DOCX using MigraDoc

I am working on a project where I need to create a Word file. For this purpose, I am using MigraDoc library for C#. Using this library, I am easily able to generate a RTF file by writing : Document document = CreateDocument(); RtfDocumentRenderer…
Aamir Jamal
  • 855
  • 9
  • 15
8
votes
2 answers

MigraDoc headers and footers

I'm creating a PDF with MigraDoc and I want the first page and only the first page to have a footer, and every subsequent page (but not the first page) to have a header. I've experimented with DifferentFirstPageHeaderFooter but it's not giving me…
nasch
  • 5,330
  • 6
  • 31
  • 52
8
votes
1 answer

Scale image to fit to A4 page - Migradoc

I am really struggling to get this right, any help would be appreciated. I have a series of images that I want to build in to a PDF using MigraDoc (1 image = 1 page) Each image must be displayed on a separate page but may not extend over the page…
msbarnard
  • 644
  • 2
  • 8
  • 19
8
votes
2 answers

How to put a table in the center of the page?

With MigraDoc I'm trying to put a table in the center of the page. I'm using this code (c#, VS). Section secondPage = new Section(); Table table = new…
Martina
  • 791
  • 1
  • 14
  • 26
7
votes
2 answers

.NET C# - MigraDoc - How to change document charset?

I've searched for solution to this problem, but still cannot find the answer. Any help would be appreciated. Document document = new Document(); Section section = document.AddSection(); Paragraph paragraph = section.AddParagraph(); …
C.L.
  • 452
  • 4
  • 11
7
votes
1 answer

Add field for a digital signature to PDF

I create a new PDF file using PDFsharp and MigraDoc. Now I want to add a field where the user can click on it and select a certificate for digital signing the file. I found in the web, that this should be possible with AcroForms. But I wasn't able…
TheBrain
  • 685
  • 6
  • 26
7
votes
1 answer

MigraDoc - imbricated / nested tables?

I would like to add a table inside another table (inside a specific cell). I can't find a way to add a Table object to a Cell object. Is that simply impossible? Alternatively, I may merge some cells, but I can't find any sample in MigraDoc website…
olivier
  • 183
  • 1
  • 11
7
votes
2 answers

MigraDoc Footer Position

I am trying to place an image as the footer of each page, I can move the footer closer to the bottom of the page using: doc.DefaultPageSetup.FooterDistance = "0cm" But I cannot seem to find a way to allow a shorter distance from the sides of the…
Ruddy
  • 9,795
  • 5
  • 45
  • 66
7
votes
3 answers

MigraDoc C# Align left and right on same line

I have a table with a cell where i want two texts, the first, aligned on left and the second aligned on the right, in the same cell, on the same line. I tried to reproduce this cell with MigraDoc without success. I only can add two texts aligned on…
Alex Saesee
  • 129
  • 1
  • 1
  • 11
6
votes
1 answer

MigraDoc Bullet List (holes)

In my Solution I am using bullet list in PDF files. It looks something like that: • Solcellepaneler kræver hverken autoriseret service eller tidskrævende vedligehold. • Solceller er støjfri, forurener ikke og har ingen bevægelige dele, hvilket…
Timsen
  • 4,066
  • 10
  • 59
  • 117
6
votes
1 answer

Migradoc , pdfsharp Paragraph without associated bookmarks

I do not know how to get rid of the bookmarks that are automatically generated when I add a paragraph: Paragraph inicio = document.LastSection.AddParagraph(); inicio.Style = "Heading1"; inicio.AddSpace(110); inicio.AddText("Factura…
mcartur
  • 325
  • 3
  • 13
6
votes
1 answer

Is it possible to set a background image for all pages using PdfSharp/Migradoc?

I'm using PDFSharp/Migradoc to generate PDFs from my web application, and I've managed to get a background image working for the first page of the document. I start by creating a single section in the document, then rendering an image to this. I…
Robert
  • 1,487
  • 1
  • 14
  • 26
1
2
3
25 26