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
-1
votes
1 answer

Is it possible to pass the value of a new Cell to the Cells[x] Collection?

I need to pass the value of a new cell. this is because I need to make the same logic as in ItextSharp, that logic being that I need to be able to create a table only by adding cells. Instead of adding rows and then adding the cells to the rows. var…
Erick Santander
  • 311
  • 3
  • 17
-1
votes
1 answer

Convert DOCX files to PDF files using PDFsharp or MigraDoc in VB.NET

I have a console application in VB. Today I'm using PDFsharp (http://www.pdfsharp.net/) to merge PDF files like this: Private Sub mergePdfFiles(pdfFiles As String(), output As String) Dim out As PdfDocument = New PdfDocument Try For…
shlomi
  • 523
  • 3
  • 13
  • 26
-1
votes
1 answer

Creating a master detail table from a List in PDF report with PDFsharp or ITextSharp

I just want to a create a report with a table look like this : Day, Date, and Movement are properties from DailyProgram model. Here's my DailyProgram class : public class DailyProgram { public DailyProgram(int day, DateTime date) { …
Satria Janaka
  • 463
  • 4
  • 15
-1
votes
1 answer

Font style and table cell spacing is not working correctly in migradoc

I have the below style defined in xslt( which is used just to provide template) but as you can see the font is not bold it's just normal font. also i would like to know how to add cellspacing
Maqsood
  • 369
  • 4
  • 17
-1
votes
1 answer

Can I improve MigraDoc v1.32 table generation time?

I've been working with MigraDoc v1.32 for on a project and have been running into very slow PDF generation times when building tables. I looked on the MigraDoc FAQs and saw that they had addressed the slowness of generating tables with their v1.5…
-1
votes
3 answers

Align Image inside cell to the right doesn't work

I need to align on the headers an image to the right. This is my code: Section section = document.AddSection(); table = section.Headers.Primary.AddTable(); var column = table.AddColumn("5cm"); column.Format.Alignment =…
cmonti
  • 187
  • 1
  • 12
-1
votes
1 answer

How to set heigth of table row?

I am not trying to do anything fancy, but every row in the table has som sort of padding bottom. It looks like there is a \n in the end of the string. +--------------------------------+ |First Cell | Second Cell | …
vicentedealencar
  • 913
  • 1
  • 10
  • 20
-1
votes
1 answer

Migradoc loses underline formatting before page break

I have a small HTML-to-PDF which uses MigraDoc to produce PDF files. There seems to be a bug with adding formatted text to a paragraph. The problem is that underline formatting gets lost for all text on first page in a multipage PDF. Bold and Italic…
lekso
  • 1,731
  • 3
  • 24
  • 46
-2
votes
1 answer

How do I set a table background color in a PDF file with MigraDoc?

MigraDoc.DocumentObjectModel.Tables.Table tAzul = section.AddTable(); MigraDoc.DocumentObjectModel.Tables.Column colAzul = tAzul.AddColumnMigraDoc.DocumentObjectModel.Unit.FromCentimeter(20)); MigraDoc.DocumentObjectModel.Tables.Row rowAzul =…
user3357141
  • 199
  • 1
  • 3
  • 16
-2
votes
2 answers

How do I align a table in the section area with PDFsharp or MigraDoc?

How do I align a table in the section area? MigraDoc.DocumentObjectModel.Tables.Table tFirma = section.Footers.Primary.AddTable(); MigraDoc.DocumentObjectModel.Tables.Column cFirma =…
user3357141
  • 199
  • 1
  • 3
  • 16
-2
votes
1 answer

How to use Listinfo to create hierarchical list

I am trying to create a list that has another list inside it. Both lists are numbered and how do i manage the numbering For example i am trying to create a list as follows If you cannot see the image above then refer below List 1 item 1 List 1…
Sabareesh Kkanan
  • 1,201
  • 1
  • 14
  • 22
-3
votes
1 answer

Output image with build

I am using MigraDoc, and would like to insert an image in a document. The simplest way to do this, is to provide a path for the image file (rather than having it in the resources). So what I would like to do is, to include an image as a file,…
Jakob Busk Sørensen
  • 5,599
  • 7
  • 44
  • 96
1 2 3
25
26