Use ABCpdf in c # To process PDF, so easy

Source: Internet
Author: User

QQ chat group: 276874828 (ABCpdf)

 

In the past few days, the project needs to guide the page into PDF. At the beginning, iTextSharp was used. I thought it was complicated to process pages. Later, I accidentally saw ABCpdf, which is very simple to use, you can record some common operations and share them with everyone. If you don't talk nonsense, paste the Code directly.

Modification, is there a link to the official website with more code? Why ???

ABCpdf Overview

Http://www.websupergoo.com/

The demo uses the latest version ABCpdf. NET 9.1X64. It supports the latest win8, IE10 (server version), server2003, xp, vista, win7, and win8 versions.

ABCpdf has a 30-day trial

Reference Method, install ABCpdf component, there are two DLL is useful, need to add reference to ABCpdf. dll, ABCpdf9-64.dll (engine components) in the bin directory can be

It has other components, such as functions not available in iTextSharp. If you can directly specify a URL, you can convert the page to PDF. This is also its strength.

When selecting a version, you must note that the 64-bit and 32-bit versions are differentiated. if the version is wrong, an error will occur. You must note that this issue may occur during IIS deployment, please refer to the official information: http://www.websupergoo.com/support.htm FAQ introduction more detailed

Usage

Let's take a look at the code below.

Add reference:

Using WebSupergoo. abc00009;

 url =   DownloadPDF( fileName, = , = ,  +  DateTime.Now.ToString() +                                       Button1_Click( fileName == = doc.AddPage();            doc.Rect.Inset(, );             id = doc.AddImageUrl(url, , , );             (                 (!== doc.AddImageToChain(id);            [] buffer = doc.GetData();                                      Button2_Click( fileName == = doc.AddPage();            doc.Rect.Inset(, );            doc.FontSize = ;             doc.Color.String =  id = doc.AddText();            doc.FrameRect(); [] buffer =                                      Button3_Click( fileName == =, [] buffer =                                      Button4_Click( fileName == =,             doc.Rect.String = ;              doc.HPos = ;             doc.VPos = ;             doc.Color.String = ;              ( i = ; i <= doc.PageCount; i++= +  + DateTime.Now.ToString() + , , , );             doc.Rect.String = = ;             doc.VPos = ;             doc.Color.String =  ( i = ; i <= doc.PageCount; i++= + i.ToString() +  +, , , [] buffer =

The above are some of the features I have used, and some of them are also very useful.

Doc also supports AddImageHtml

Parameter description:

Html: html to be added

Paged: whether to pagination; true: Enable pagination

Width: The page width (the width of the browser when the browser parses html)

DisableCache: whether to ignore the cache; true: Disable caching; false: enable caching

One thing to mention is the technical support. The official website is doing well. A support page covers many common problems and solutions, which is fairly detailed. I wish you a pleasant use.

 

Related Article

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.