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

Cast System.Drawing.Font to MigraDoc.DocumentObjectModel.Font?

was wondering why I can't cast the System.Drawing.Font to MigraDoc.DocumentObjectModel.Font. I need to load a specific font in my application. I want to do it through Styles like this: PrivateFontCollection pfc; FontFamily family =…
f1v3
  • 379
  • 6
  • 12
0
votes
2 answers

Winform - Label Printing?

I am working on an application in which I need to print labels ranging from 1"x3" up to 8"x10". The text and images that will be printed on the labels is defined in a xml file that contains all needed info including its location on the label as…
user1017477
  • 161
  • 2
  • 13
0
votes
1 answer

Migradoc footer note skip first page

All went well until the client said he wants the first page of the pdf to be the cover. This means the first page should have no margins, and the next ones should. My base class that I inherited all my export files from had in it's constructor…
bokkie
  • 1,477
  • 4
  • 21
  • 40
0
votes
1 answer

Blank Pages in MigraDoc due to section.PageSetup.SectionStart = BreakType.BreakOdd/EvenPage

I'm generating a price guide from a database - lots of the functionality required has been worked out, but the system is generating blank pages, which I believe is correct, but I wonder if there is a workaround for it. Put simply, I have used…
Mark Rabjohn
  • 1,643
  • 14
  • 30
0
votes
1 answer

Cannot figure out this migradoc error

i m having the stack trace. there is no line number. wen i work on my system its working correctly. Please help if anyone can get a clue System.ArgumentNullException: Value cannot be null. Parameter name: text at…
Pankaj Nagarsekar
  • 219
  • 1
  • 6
  • 17
0
votes
1 answer

MigraDoc Paragraph Text, possible to Truncate?

The Paragraph in MigraDoc automatically wraps text and adjust the height automatically. I want to be able to Truncate the text and if possible get it to Shrink to Fit. Has anyone accomplished this or have any idea how to do so?
user1166905
  • 2,612
  • 7
  • 43
  • 75
0
votes
1 answer

No margin print with Epson TM-U220D

I am using this Epson TM-U220D printer for printing receipts. By default, the margin is set to 1 inch on all four sides of paper.I do not find any options to edit it in the printer utility nor in any printer manual. I tried finding in Google. But no…
Pankaj Nagarsekar
  • 219
  • 1
  • 6
  • 17
0
votes
1 answer

Include EMF file in MigraDoc / PDFSharp

How does one include a EMF image in a PDF generated by MigraDoc or PDFSharp? Thanks.
0
votes
2 answers

"Image could not be read" in MigraDoc

When I specify a path to my image, I get a message saying that the "image could not be read". I wanted to see if I had the wrong path so I changed this path to something made up just to test. After this I get a message saying that the image is not…
Challe
  • 866
  • 12
  • 26
0
votes
1 answer

ASP.NET Generating .pdf files, UnauthorizedAccessException on Save()

I have a list of jobs and i give users the option to get job description in form of a pdf file. I use MigraDoc/PDFsharp to generate pdf files. The problem is, after i render the pdf document and want to save it somewhere on the DevServer i get…
Viktor
  • 85
  • 8
-1
votes
2 answers

Is there a way to calculate Height of the string by provided width with Migradoc/PdfSharp?

i have to render a PDF with 3 columns layout. But i have to know when i dont have enough space for the next paragraph in the column and switch to the next one. I tried to use the XTextFormatterEx what the owner of the library using, but im still…
iFURY
  • 27
  • 1
  • 2
-1
votes
1 answer

No appropriate font found using MigraDoc to create a PDF on Xamarin Forms

I'm trying to create a pdf using MigraDoc. Here's a list of the libraries that I'm using: MigraDoc.DocumentObjectModel MigraDoc.DocumentObjectModel.Tables MigraDoc.Rendering It throws me an error on printer.RenderDocument(). Code below private…
-1
votes
1 answer

Problem rendering µ and ³ with MigraDoc (PdfSharp) in Azure

I'm rendering a PDF using MigraDocCore, when I run my app locally these symbols render correctly: But when I run it in Azure App Service the symbols are missing: My default Style is defined as Style style =…
Greg B
  • 14,597
  • 18
  • 87
  • 141
-1
votes
1 answer

How can I add a Hyperlink to a Header image using MigraDoc and C#?

I have a project that needs a hyperlink embedded in an image that is part of a header. The Header is replicating to additional PDF pages automatically. Just to be clear, I want to generate the PDF, and then click on the image and a browser tab…
Mirage
  • 1
  • 1
-1
votes
1 answer

path to image in deployed C# WPF app with ClickOnce

I have problem with set correct file path to image in my project which is deployed with ClickOnce. The 3rd party library for generating pdf documents needs path of image as input for method. public Image AddImage(string fileName); I'm using…
magino
  • 109
  • 9
1 2 3
25
26