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

Prevent chrome to re size PDF for printing

I am generating PDF file using migradoc library in a .NET webpage. PDF gets generated as expected. When I save the PDF from chrome to file system and print it using "Actual size" option, the resulting print is same as PDF preview. Problem is when…
Mike Ezzati
  • 2,968
  • 1
  • 23
  • 34
0
votes
1 answer

MigraDoc: How to extend the row height when adding text?

I am building a table in MigraDoc. I have found a way to put a Table into a Table.Row.Cell with the help of a TextFrame. Unfortunately the Row.Cell does not grow when adding new entries into the TextFrame. So at a certain point the inner table…
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
0
votes
1 answer

Retaining Tabs in String When Rendering MigraDoc PDF

Basically, I was able to successfully generate a multiple page PDF (from a string read from a .txt file) using the MigraDoc sample here: http://www.pdfsharp.net/wiki/MigraDocHelloWorld-sample.ashx The problem is that in the original text there are…
Brandon Avant
  • 659
  • 5
  • 21
0
votes
1 answer

Repeat columns in a table

I am new to PDFsharp and MigraDoc. I have a requirement to generate a dynamic report with a header and a table. The table should have a number of columns that are fixed and repeated on every page. I understand MigraDoc automatically calculates the…
Bernard
  • 995
  • 2
  • 9
  • 20
0
votes
1 answer

ZedGraph to PDF using MigraDoc

I am currently working on a C# application that aims to do some computation and output graphs in a pdf file. I use the Zedgraph library to draw my graphs so something like graphPane.AddCurve(PointPairList). Now I tried to output these graphs to pdf…
bchu1392
  • 59
  • 2
  • 8
0
votes
1 answer

Building a container around each pdf page

I want to build a container around an existing PDF page, so actually enlarge that document and put it in the middle so that I can write more things into. What I tried so far : // Open the file PdfDocument…
JoeTheRock
  • 13
  • 4
0
votes
1 answer

vb.net Overload resolution failed error using MigraDoc

"Overload resolution failed because no accessible "New" accepts this number of arguments" error occured,when I insert Imports MigraDoc.DocumentObjectModel it throws error on following statement cmb.DefaultCellStyle.Font = New Font("Verdana", 10,…
Singh
  • 43
  • 4
0
votes
0 answers

Add image from HTML using PdfSharp + MigraDoc + Stream 2.0.1 via nuget package manager

I'm trying to install PdfSharp + MigraDoc + Stream 2.0.1 in a VS2013 C# project. If I use the nuget GUI, it shows the install button, but when clicked it says it's already installed. If I use the package manager console to uninstall and then…
devlock
  • 959
  • 1
  • 9
  • 14
0
votes
2 answers

How to set Y axis custom label using MigraDoc?

I am trying to draw graph using MigraDoc.DocumentObjectModel.Shapes.Charts. I want to avoid to get y axis label generated automatically. Do you anybody how to set custom Y axis label using MigraDoc? Thanks in advance
user3289230
  • 431
  • 2
  • 6
  • 19
0
votes
1 answer

MigraDoc + PDFsharp to generate Horizontal PDF

I am using MigraDoc + PDFsharp for generating a PDF (Salary slip). The PDF that is generated is by default vertical. (A4 - vertical). I want it to be generated as Horizontal. What changes do I need to do? currently I'm able to get this PDF Sample…
0
votes
4 answers

Japanese characters with MigraDoc/PDFsharp

I'm using MigraDoc for generating PDF documents, on my local machine. Japanese characters are not displayed properly. I'm using the instructions below to generate the document with Unicode. var document = new…
David
  • 33,444
  • 11
  • 80
  • 118
0
votes
1 answer

Split section horizontally between MigraDoc chart and table

I have the following elements: 1. MigraDoc.DocumentObjectModel.Shapes.Charts.Chart 2. MigraDoc.DocumentObjectModel.Tables.Table I want to show the data table (2) on the right side of the chart (1). Something like a legend, but with more…
0
votes
1 answer

How to make room for the header on PDF document?

This is a follow up of this other question. I have an image and text on the header of a PDF document created with MigraDoc. Problem is that content that should be below header is placed over the header partially, hiding part of the header content…
StackOverflower
  • 5,463
  • 13
  • 58
  • 89
0
votes
1 answer

Does not contain a definition for "table" and no extension method "table" accepting

I'm trying to send data to PDF using MigraDoc. But I encountered this syntax error and could find the assembly reference to fix it. Reason of the error is below: this.table = section.AddTable(); this.table.Style = "Table"; …
BarisY
  • 171
  • 2
  • 4
  • 14
0
votes
1 answer

Set orientation per page using Migradoc

I'm using PdfSharp/Migradoc (WPF nuget package) to create a PDF which is sent as an attachment to an e-mail. I need the first page of the document to be in portrait orientation and then the rest of the pages (sections) to be in landscape…
Bo Mortensen
  • 935
  • 1
  • 13
  • 31