Thread: PDF
View Single Post
  #2 (permalink)  
Old July 24th, 2013, 04:15 AM
Elias AS Elias AS is offline
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, here is how you can create PDF file in C#:
Code:
// Create a new empty document.
var document = new DocumentModel();

// Add document content.
document.Sections.Add(
    new Section(document,
        new Paragraph(document, "Hello world!")));

// Save the document to a PDF file.
document.Save("Document.pdf");
I used this C# Word component.
Reply With Quote