Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating pdf files at runtime in c# [closed]

Tags:

c#

pdf

Is there a pdf library attached/that can be attached to .NET 3.5 that allows creation of pdf files at runtime i.e opening a new pdf file, writing to it line by line, embedding images, etc and closing the pdf file all in C# code?

What I want is a set of tools and specifications which allow me to implement a customised pdf writer in C# without using Reporting Services' pdf output option.

like image 247
Lonzo Avatar asked Jan 21 '09 14:01

Lonzo


People also ask

How do I create a running PDF?

Open Acrobat and choose “Tools” > “Create PDF”. Select the file type you want to create a PDF from: single file, multiple files, scan, or other option. Click “Create” or “Next” depending on the file type. Follow the prompts to convert to PDF and save to your desired location.

How do I change the timing on a PDF?

You need to change your computer clock and then right-click on the file, properties, details, click on "Remove Properties and Personal Information" and select "Create a copy with all possible properties removed" and click on OK. The copy will change the created date to the current computer date/time.

Can a PDF run code?

The PDF file format is very sophisticated and powerful. In addition to containing text and images, and causing a reader to display that content, PDF files include the ability to execute code on your device—and that's where the real danger lies.


1 Answers

iTextSharp is no longer licensed under the MIT/LGPL license. Versions greater than 4.1.6 are licensed under the Affero GPL, meaning you can't even use it in a SaaS (Software as a Service) scenario without licensing your code under the GPL, or a GPL-compatible license.

Other opensource PDF implementations in native .NET include

  • PDF Clown (make sure you get the patches to the latest version)
  • PDFSharp
  • PDFJet open source edition (commercial version also available, and you will need the JDK installed to build this)

There's also a couple of Java PDF libraries (like PDFBox) you can convert to .NET using IKVM.

like image 102
darkphoenix Avatar answered Oct 01 '22 06:10

darkphoenix