pdfsharp Questions

3

Solved

I'm trying to perform a simple action: adding a photo (JPG file) inside a PDF file generated from scratch with PDFsharp v1.32.2608.0 using .NET Framework 4.0 and MVC.NET I'm using the next code to...
Martinic asked 26/2, 2016 at 20:4

2

Solved

I'd like to add an image to the header of a MigraDoc document, but hardcoding a filesystem path in the document generation is slightly problematic for a number of issues - not the least of which is...
Heteroousian asked 18/3, 2011 at 22:28

6

Solved

* Update * Found a solution using Clipper library. Solution added as answer. New / better / easier ideas are still welcome though! Given a path like this: I want to create a path surrounding...
Decanal asked 2/2, 2016 at 19:54

3

Solved

I included an image as a resource following this post: How to create and use resources in .NET I am using PDFSharp library to create a PDF. The method to draw an image, requires the path of the im...
Carbuncle asked 10/1, 2013 at 19:10

1

Solved

I'm writing a web app that extracts a line at the top of each page in a PDF. The PDFs come from different versions of a product and could go through a number of PDF printers, also in different vers...
Collaboration asked 29/10, 2015 at 11:59

1

Solved

I am getting a problem when merging two files. If I try to have the AddPage(from.Pages[i]); in a separate void function I get An object reference is required for the non-static field, method, o...
Fowliang asked 24/9, 2015 at 8:16

1

Solved

I am using MigraDoc to generate PDFs in my ASP.NET5 MVC6 Web Application, which is deployed to the Azure cloud. I am using version 1.50 beta-2, but I have also tried using v1.50 beta-1 and v1.32. ...
Railroad asked 22/9, 2015 at 20:26

6

Solved

I am new to C#.net, I downloaded PDFsharp lib. But how to add this lib to our project? My project is to create a PDF file. Please provide me step by step instructions. After unziping it has 32 fold...
Adjutant asked 2/12, 2009 at 9:41

1

Using PDFsharp .NET library, I need to set the page size in the PDF document same as that of the images. Example, image no. 1 measures 152px x 1775px. Image no. 2 measures 100px x 1582px The resu...
Flanker asked 18/8, 2015 at 20:14

1

I am using PDFSharp to generate PDF from html source. PdfGenerator.GeneratePdf(html, PageSize.A4); Generate to pdf works well, but I dont know how I can change page orientation to landscape?
Oxbow asked 18/12, 2014 at 18:1

2

Is it possible to find good documentation for the PDFsharp library? I searched on Google but I didn't find any reference documentation. I don't know how XGraphics.RotateAtTransform and XGraphics....
Aramen asked 23/7, 2014 at 15:39

3

Solved

I am using PDFsharp to export a chart legend. I am using a for loop and a table to display the properties. There is actually only one property: the Subdivision name. The object has the right RGB co...
Melanson asked 12/6, 2015 at 18:42

1

Solved

I have some code that adds text using a private font to a PDF file using PDFSharp. This works successfully if the font is located on the local file system but does not work when I provide it with a...
Rainproof asked 8/4, 2015 at 8:15

1

Solved

I have a MigraDoc table where I specify a row height of 0.75cm, and the text is vertically-aligned in the middle of the cell. When I set cell.Format.Shading.Color to something non-white, there is s...
Seaside asked 3/4, 2015 at 20:1

1

Solved

I did a lot of digging to figure out an easy way to convert an XPS document into a PDF. There are many tools that can do this but they are not free. Is there a free alternative?
Name asked 17/3, 2015 at 19:45

3

Solved

I am trying to add text to a PDF document using private, i.e. not installed on the system, TrueType fonts and having trouble. I am using PDFSharp + MigraDoc WPF version 1.32.2608.0 from NuGet. I h...
Scarab asked 11/3, 2015 at 20:17

1

Solved

I am trying to use the Migradoc library from PDFSharp (http://www.pdfsharp.net/) to print pdf files. So far I have found that Migradoc does support printing through its MigraDoc.Rendering.Printing....
Acquire asked 6/2, 2015 at 16:22

3

Solved

I have a C# console application and would like to add some of the functionality of PdfSharp to it. I've downloaded both zip files from Sourceforge ... both the assemblies and the source code. Th...
Immortality asked 12/9, 2012 at 15:7

2

Is there any free library, that can be used to get resolution of images in DPI contained by PDF file? I've tried the following code, using PDFSharp but the DPI it returns is not correct. For examp...
Centreboard asked 14/1, 2015 at 8:25

1

Solved

I have a requirement to measure the text length in a PDF and wrap the line if the length exceeds a certain amount. I am already using PDFsharp library. I already used the following code to determi...
Landin asked 20/10, 2014 at 12:47

4

Solved

I am using PDFsharp in an ASP.NET MVC application. I want to add an image but no matter what directory I put it in, it can't seem to find it. I have code like this as I am trying to copy the sample...
Shadrach asked 6/7, 2010 at 2:48

1

How I can get the number of pages before rendering? I need to write the number as words in my document.
Lachellelaches asked 2/9, 2014 at 22:23

0

Hi I am using PDFsharp & MigraDoc to generate column chart. I was wondering, if I can rotate the x axis labels to 90 degree so they come like vertical instead of horizontal. Does any body has a...
Zippora asked 11/8, 2014 at 6:16

2

Solved

I just started with a project that requires me to write to PDF file. After some googling I decided on using PDFsharp which looks simple enough, however I have a few questions regarding drawin...
Miscreance asked 9/7, 2009 at 8:10

2

Solved

I'm currently creating a PDF with PdfSharp which mostly consists of text and some images. The text elements have different colors. My problem is that as soon as I use a different color than the col...
Carmacarmack asked 29/5, 2014 at 11:28

© 2022 - 2024 — McMap. All rights reserved.