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

Migradoc & sharpPDF

I have a problem concerning integrating both Migradoc and SharpPDF. I am creating a pdfpage with text with the pdfpage.add(text) function. (SharpPDF) However I also am creating a chart from data using the functionality of MigraDoc. So my PDF code…
Revils
  • 1,478
  • 1
  • 14
  • 31
0
votes
0 answers

EPPlus: Importing data from excel file into PDF shows wrong date format

I am reading data from an XLSX file using EPPlus and then, converting it to PDF using MigraDoc. But the date fields show some double values. For e.g. : 2014-06-17 19.25.14 becomes 41807.8091898148 in the PDF. _book = _package.Workbook; _sheet =…
harsha
  • 103
  • 2
  • 8
0
votes
1 answer

How to set border-shadow in migradoc?

MigraDoc.DocumentObjectModel.Tables.Row myRow= myTable.AddRow(); //Fila Titulo MigraDoc.DocumentObjectModel.Paragraph paraTitle= myRow[0].AddParagraph("Some text"); paraTitulo.Format.Alignment =…
user3357141
  • 199
  • 1
  • 3
  • 16
0
votes
1 answer

Out of memory exception using PdfSharp in a azure webjob

I'm using Azure Storage Queues to send a message to a WebJob. This WebJob then creates a PDF and stores it in a blob container. This works fine on my dev-machine. The message is received, object instantiated and PDF is created and stored in the blob…
Dribbel
  • 2,060
  • 2
  • 17
  • 29
0
votes
1 answer

C# PDFsharp end of page detection

Is it possible to detect the end of page in creating PDF file with PDFsharp library? How? Or overflowing text on page? I am generating PDF file with list of users and if the list is too long, I need to add new page and continue on it. I don't want…
Tomask
  • 2,344
  • 3
  • 27
  • 37
0
votes
1 answer

Outputting Data View Tables in PDFsharp

I have a problem I'm not sure can be solved, I wondered if I could ask for help on here. I am creating an invoice in PDFsharp in C#, I have written the first page displaying strings taken from datagrids along the way. That's all fine. However I'm…
0
votes
1 answer

MigraDoc - why don't my ParagraphFormats show?

After 2 years I just returned to do a few things with MigraDoc & PDFsharp. To make life easier I have created a helper function for styles and I wonder why this doesn't work as expected? All font assignments work just fine: Font family, size and…
TaW
  • 53,122
  • 8
  • 69
  • 111
0
votes
1 answer

MigraDoc Columns not wrapping to new page

I'm producing a PDF Export document for a project i'm working on using MigraDoc; the document can contain many rows spans multiple pages, the document can have a user specified number of columns also, this is where i'm having an issue if there are…
ccStars
  • 817
  • 2
  • 11
  • 34
0
votes
2 answers

How to parse marked up text in C#

I am trying to make a simple text formatter using MigraDoc for actually typesetting the text. I'd like to specify formatting by marking up the text. For example, the input might look something like this: "The \i{quick} brown fox jumps over the lazy…
AdamAL
  • 1,571
  • 2
  • 14
  • 25
0
votes
1 answer

Slow rendering with image | MigraDoc

I am creating a PDF using MigraDoc and have now ran into a little problem. I am using a A4 size image (2480px x 3508px / 96KB in size) as a background for my PDF using the following code: Dim frame =…
Ruddy
  • 9,795
  • 5
  • 45
  • 66
0
votes
1 answer

Why is a wrong link generated while using Migradoc Hyperlink object?

I have an odd problem while trying to render a Weblink on a PDF using Migradoc. Paragraph hotelP = cell.AddParagraph(offer.Hotel.CompanyName.ToString()); hotelP.AddLineBreak(); Hyperlink hyperlink =…
f1v3
  • 379
  • 6
  • 12
0
votes
2 answers

How to get Page Count per section in a PDF

I'm rendering a PDF document with MigraDoc. Each section has one or more paragraph texts. Currently this is how I create a document; var document = new Document(); var pdfRenderer = new PdfDocumentRenderer(true); pdfRenderer.Document = document;…
Amitd
  • 4,769
  • 8
  • 56
  • 82
0
votes
2 answers

How can i convert this to a factory/abstract factory?

I'm using MigraDoc to create a pdf document. I have business entities similar to the those used in MigraDoc. public class Page{ public List Content { get; set; } } public abstract class PageContent { public…
Amitd
  • 4,769
  • 8
  • 56
  • 82
0
votes
1 answer

MigraDoc: Forcing embed tables to break at logical points

I have a large form I'm transforming into a PDF. The first 1/6th of it looks like this: https://i.stack.imgur.com/lCiuj.png The number of entered fields however, varies from 1 to 20 per section, and I need to be able to make this document break…
mkautzm
  • 1,086
  • 2
  • 18
  • 34
0
votes
2 answers

PdfSharp/MigraDoc - how to shade part of a paragraph

Is there a way to apply shading to part (for example, just a word) of a Paragraph in PdfSharp/MigraDoc? I tried adding a Style with the shading to the Document and then passing the style name to the AddFormattedText method but it only takes the font…
theburningmonk
  • 15,701
  • 14
  • 61
  • 104