Itextsharp First Contact

Source: Internet
Author: User

Official website: http://www.itextpdf.com/(English good suggestion see here)

Here I will give a preliminary introduction to Itextsharp, and the recently encapsulated one for the generation of PDF library to provide to the needs of friends, for the great god you can step over (but I still hope to get your guidance)

My main job is to collect the information on the Internet, and create a itextsharp in the garden that is dedicated to discussing the entry of the group (hopefully the great God to lead us to build together)

Here is the Java version of itexsharp its name is itext (in fact, I would like to migrate these examples alone to the C # version, this can improve their C # level familiarity. NET class library, but the English level is very poor to try to play, instead of learning English, hoping to transplant it in the future.

Reference information and some of the source code to copy the address to everyone, one respect for the author, and secondly look after the developers who see this blog and/or learners in my blog does not mention the example of the reader can be found in these links to find the answer!

               the way of learning

Learning

Champion

Future Proof now

Shijingming

Xmlworker (a library that renders HTML)

Here you can test the power of Itextsharp

http://www.micmiu.com/(this site and the author in addition to reference to its code is not any relationship)

http://segmentfault.com/q/1010000002489474?_ea=115840 (This is the question I ask when I don't know how to do it)

Http://stackoverflow.com/questions/2822843/itextsharp-html-to-pdf (This is the discussion area where Iexhsharp encounters most of the problems, and perhaps your question is here to find the answer)

Here are some of the difficulties encountered:

For English documents, do not understand is the biggest flaw, otherwise it will not take so long time to learn itextsharp, time spent also just know a little fur (only know with part of the function, unable to understand this kind of library), proposed oneself really want to learn English

Chinese documentation is not known, the use of examples less, not you copy me is I copy you, not a unified discussion Itextsharp platform, I hope that in the future we will encounter problems here to discuss, poke in

Such a good article does not send home a pity (personal lele, big god mo ridicule!) , in the past is not enough space, what to do, then the following have to stick to the basic Itextsharp example

First of all refer to two DLL files (2 methods), I use the version is in the version, do not mistake oh, because itexsharp different version of the difference is very big!

1. Use vs self-feature NuGet

2. Can be downloaded here, I have uploaded!

Below you explain to the reader to create a basic PDF example

            Step 1 Create a new Document object documents document            = new file ();            Step 2 Save the Address setting for the document               PDFWriter writer = pdfwriter.getinstance ("Document, New FileStream (" d:\\study\\itextsharp\\ Itextsharp5_5_4test\\helloworld.pdf ", FileMode.Create));      FileMode.Create document is not created, there is a overwrite
            Step 3 Open Document
Document. Open ();
Step 4 Adds an element to the document


Document. Close ();

The above code is to create a simple PDF is not very simple ah, excited not? If you're excited, just rub the link to find out, maybe you love it---itextsharp

It's off duty!

Itextsharp First Contact

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.