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
3
votes
2 answers

How do you add a border around a table in MigraDoc?

Is there a way to add a border around the table and hide the cell borders in MigraDoc?
user629283
  • 329
  • 1
  • 8
  • 23
3
votes
1 answer

How to set migradoc chart x axis tickmarks

I assign manually values to the labels of the x-axis. Every 150 steps there should be a value. The rest is String.Empty. This part works perfectly. Chart plotter = plotter_ref.Clone(); XSeries xseries =…
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
3
votes
2 answers

Why MigraDoc gives an "image not found" with this fileless image?

I have the "image.png" fileless image included in my WPF C# project as "embedded resourse". The full name of such image is "myapplication.image.png". I am using such image in a document generated via MigraDoc. However, the document generated…
Lorenzo R.
  • 133
  • 9
3
votes
1 answer

Add MigraDoc Table of Contents to PDFsharp PDF

I am trying to use PDFsharp and MigraDoc to create a PDF report file from many other files. Basically the workflow is as follows: The user uploads 2 or more documents to concatenate The user selects what pages they want to include in the TOC The…
lukejkw
  • 1,054
  • 13
  • 19
3
votes
1 answer

MigraDoc not adding page breaks automatically

I am tasked with refactoring an old MigraDoc project written by a dev that is no longer with my company, and am having problems with the following bit of code.. var Split = new String[1]; Split[0] = "||"; if (invoiceObject.Note != null) { var…
mituw16
  • 5,126
  • 3
  • 23
  • 48
3
votes
2 answers

Align cell so the text aligns at the bottom

I'd like to align the text in a TableCell to align to the bottom of the cell. I'm not seeing this option anywhere in the tablecell properties. Here is the snippet of code that builds that table. Table thirdTable =…
Tyddlywink
  • 876
  • 7
  • 28
3
votes
1 answer

Font data could not retrieved PdfSharp/MigradDoc

I have an ASP .NET MVC web application and I'm using PdfSharp/MigraDoc to generate the reports. When I publish the application to azure and print the report the following exception is raised: Internal error. Font data could not retrieved. I have…
3
votes
2 answers

Migradoc Header, Paragraph with multiple text alignments

I use a Header in my Migradoc documents. Right now I just add a Paragraph to the Header but it doesnt really fit my needs as I want to have lets say two texts that have a different Alignment. For example: Middle-ALigned.Text …
Pax Gordon
  • 31
  • 1
  • 4
3
votes
1 answer

How to prevent MigraDoc header from repeating on additional new pages

Is there a way not to repeat a Migradoc header on every single page? In my program I add an image to the header of my document as: Section section = document.AddSection(); // Put a logo in the header Image image =…
user1526912
  • 15,818
  • 14
  • 57
  • 92
3
votes
1 answer

PDFSharp or MigraDoc: How to create a multi-column page-layout?

I want to use PDFSharp or MigraDoc to create PDFs with a multi-column pagelayout. but I didnt find any hints how to do this? The text should be placed on the page like in newspapers. I cannot use tables, because tabels are organized by rows, but I…
user3283940
  • 31
  • 1
  • 2
3
votes
2 answers

Align Two Paragraphs in One Line

I'm using MigraDoc to create PDF file. I'm adding two paragraph in a textframe. One paragraph is a label while the other is a textbox. After adding the paragraphs to textframe I added the textframe to table row cell. Currently the textbox location…
Jobert Enamno
  • 4,403
  • 8
  • 41
  • 63
3
votes
2 answers
3
votes
2 answers

MigraDoc TextFrame Overflow Options

TextFrames in MigraDoc are really handy but when i add paragraphs to the textframes that exceeds the boundary of the text frame, it simply overflows beyond the frame. But I dont want the text to go beyond the frame . I have defined text frame…
Sabareesh Kkanan
  • 1,201
  • 1
  • 14
  • 22
3
votes
1 answer

MigraDoc: Setting font for a document

I'm wanting to use a different font with MigraDoc, but I'm having a hard time getting it to stick. Currently, I'm working with the following code: I have this as a class-wide variable: String tPdfFont = "MonospaceTyperwriter"; Then the…
mkautzm
  • 1,086
  • 2
  • 18
  • 34
3
votes
2 answers

Check if the page end is near before adding the last 3 rows in Migradoc

I am using MigraDoc library for the first time and need help. I am printing a table in pdf using MigraDoc. In my table 3 rows form a group. So each 3 row group must be on the same page but in my current code this is not happening. It will print…
user1032317