Creating pdf files at runtime in c#
iTextSharp
http://itextsharp.sourceforge.net/
Complex but comprehensive.
itext7 former iTextSharp
Need to create pdf files dynamically for each patient in asp.net c#
Make use of iTextSharp dLL that will help you to create PDF file easily
here is article and demo for this : Creating PDF documents with iTextSharp
one more good eample : Create PDF document using iTextSharp in ASP.Net 4.0 and MemoryMappedFile
Best C# API to create PDF
Update:
I'm not sure when or if the license changed for the iText# library, but it is licensed under AGPL which means it must be licensed if included with a closed-source product. The question does not (currently) require free or open-source libraries. One should always investigate the license type of any library used in a project.
I have used iText# with success in .NET C# 3.5; it is a port of the open source Java library for PDF generation and it's free.
There is a NuGet package available for iTextSharp version 5 and the official developer documentation, as well as C# examples, can be found at itextpdf.com
Open source API to Create and add dynamic data to PDF
Would it be possible to use Ghostscript? Just output the data as postscript and let the program output the pdf...
I found also this: Creating pdf files at runtime in c#. Maybe it helps.
Create PDF from form data and save it
How do I get all the static and dynamic values that are posted to this page?
You can retreive them as you retrieve any other value from an html control, for example:
string MyVal = Request.Form["FieldName"];
and create another pdf file with the entered data?
Here you can use a PDF library of your choice ( iText.Net, Nitro PDF, Amyuni PDF Creator.Net ), load your PDF form, set the values to each field, flatten your file if needed, and save. The code for this part depends on the library being used, but they are usally well documented so you should be able to find sample code easily.
Create pdf from inDesign at runtime
You can automate pretty much anything using the built-in scripting support in InDesign. In the InDesign GUI you can assign script labels to various elements, such as text frames, in your InDesign document. If you, for instance, would like to replace some text in a text frame you can apply something like this in Javascript (CS4 and below, see note below):
var document = app.open(File("path to your InDesign file"), false);
var textFrame = document.pageItems.item("your script label");
var story = textFrame.parentStory;
story.contents = "your new content"
To create a PDF you do something like this:
var pdfFile = new File("path to your pdf");
document.exportFile(ExportFormat.PDF_TYPE, pdfFile);
This was just a few examples of what you can do, I hope that was somewhat helpful.
If you don't know how to install and run scripts in InDesign, this blog post explains the process. You can find a good online scripting reference here.
As I understand it you would like to run your scripts as a batch process. If that is the case I recommend that you take a look at InDesign Server. It is basically the desktop version of InDesign but without the GUI and with a simple Web Service interface. It is also running as a Windows service (or the equivalent on other platforms).
NOTE: Starting with CS5, you can no longer identify a text frame by its script label, as shown above. There's some discussion about it here. The best alternative is to use itemByName(name) instead of item, with name being the name on the layers palette. This can be changed in the GUI by doing a really slow double click on the item in the layers palette. Or, this workaround sets each text frame's name to be equal to its script label. Then, all you have to do to change the text frame's contents is this:
document.textFrames.itemByName("shmullus").contents = "The Doctor";
Related Topics
Two Dimensional Array Slice in C#
Reading a Key from the Web.Config Using Configurationmanager
How to Remove New Line Characters from a String
Differencebetween a C# Reference and a Pointer
Hosting Clr in Delphi With/Without Jcl - Example
Assign Format of Datetime with Data Annotations
How to Initialize a C# Attribute with an Array or Other Variable Number of Arguments
Using Propertyinfo to Find Out the Property Type
Popup's in Selenium Webdrivers
How to Store/Retrieve Rsa Public/Private Key
How to Align Text in Columns Using Console.Writeline
What Is the C# Equivalent of Nan or Isnumeric