PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jul 13, 2024 9:26 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PDF component suggestion
PostPosted: Tue Aug 16, 2011 11:43 am 
Offline

Joined: Mon Aug 15, 2011 9:15 pm
Posts: 1
I am looking for a solution that can do the following, but from the FAQ, it seems clear that PDFsharp doesnt fit the bill, and is not planned to be able to. Therefore I wondered if anyone had found a solution out there, that could do these things:

Component that can generate PDF documents on a web server.

1. Runs on the web server.
2. Accessible by .NET code.
3. Takes a stream of input in the form of some markup language. (HTML, or an XML derivative for example)
4. Generates a uniquely named PDF document from that stream of input.
5. Provides .NET code with the path where the document is stored.

A second-class alternative replaces 3 & 4 above with:
3. Takes as input a collection of data in the form of name/value pairs
4. Generates a uniquely named PDF document from an existing, preconfigured PDF document by mapping the data values to locations in the preconfigured document.

Some considerations to keep in mind as nice-to-have features are listed below. If any of these need to be sacrificed, in order to obtain the above 5 objectives, it is best if they are sacrificed last first. (So, Free but not Open Source beats Open Source but not Free, for example.)
1. Reliable
2. Widely Accepted
3. Free
4. Well Supported
5. Open Source

It can be passed as a string of data. Like this, for example:

public sub GetPDF{
// Declares
string webPage; // Document to be rendered as PDF.
string fileName; // Resultant file created by the component.

webPage = GenerateHTML();
fileName = PDFCreator.RenderPDF(webPage);

DoUserDownload(fileName);
}

(If only it were that simple.) Basically, we have code that Creates the HTML, XML, whatever, stream as a string. We pass that to the creator component using a call inside the code. It passes back a filename that we can do whatever we want with.


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 16, 2011 12:06 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
undivine wrote:
but from the FAQ, it seems clear that PDFsharp doesnt fit the bill, and is not planned to be able to

PDFsharp is a library that creates PDF files - and it can run on a server.
So requirements 1 and 2 are met, 3 through 5 are left as an excercise for the reader (it's up to you to parse the data input, create the PDF file, store it on the server (or return it in the web response)).

Maybe you are looking for a high-level report generator.
MigraDoc (included with PDFsharp) is a low-level report generator that can convert name/value pairs into a report.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group