Click here to Skip to main content
15,888,454 members
Articles / Programming Languages / C#

Creating PDF documents with iTextSharp

Rate me:
Please Sign up or sign in to vote.
4.90/5 (43 votes)
2 Nov 2011CPOL6 min read 368.6K   33.8K   146  
Creating PDF documents with iTextSharp using a combination of images and text.
using System.IO;
using System.Reflection;

namespace Article.Pdf {


    public static class Resources {

        // ------------------------------
        // Class fields
        // ------------------------------

        private const string KeyBicycle = "bicycle.pdf";

        // ------------------------------
        // Class methods
        // ------------------------------

        public static Stream GetBicycle() {
            return Assembly.GetExecutingAssembly().GetManifestResourceStream(typeof (Resources), KeyBicycle);
        }


    }


}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions