How to create a PDF file?

For my Microsoft Surface application, I would like to create a PDF file containing some images. How do I start doing this?

EDIT: I do not want to convert a text or html document, but I want to create a PDF code from scratch.

+6
c # pdf
source share
5 answers

PDFsharp is good, free, relatively easy to use and compatible with WPF

+5
source share

Two main options:

  • use special PDF library like iText in @Kent answer
  • Install a PDF printer and use any report / print code. A.

Option 1) will be the most flexible and efficient way.
Option 2) is interesting when you already have code that prints what you want. It is a bit of a hassle to manage the output file, etc. It is very easy to support XPS.

+4
source share

The Docotic.Pdf library can be used to create PDF files from scratch and for other purposes.

Please see samples for various PDF tasks .

The library has no external dependencies and is written in C #. Several different editions are available .

Disclaimer: I am working on Bit Miracle.

+2
source share

For me, the easiest way is to use Reporting Services. http://www.microsoft.com/sqlserver/2008/en/us/reporting.aspx

+1
source share

You should also take a look at Fop / PdfBox for creating / editing PDF.

+1
source share

All Articles