Asp generate the content of the specified URL into a pdf file ABCPDF asp generate a pdf

Source: Internet
Author: User

You can use ABCPDF to generate the image text in a specified webpage into a PDF file.

7.0.1.1Professnional:

Http://www.3ddown.com/soft/12233.htm

Standard License: 341-639-358
Professional Edition serial number (Professnional License): 719-253-057

Official Website:

Http://www.websupergoo.com

Generate all the content and images of the specified website as PDF files and automatically pagination the Code:

123456789101112131415161718192021222324 <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% Set theDoc = Server.CreateObject("ABCpdf7.Doc") theDoc.Rect.Inset 72, 144   theDoc.Page = theDoc.AddPage() theURL = "http://www.isxml.com/" 'The URL of the PDF source content to be generatedtheID = theDoc.AddImageUrl(theURL)   Do  theDoc.FrameRect ' add a black border   If Not theDoc.Chainable(theID) Then Exit Do  theDoc.Page = theDoc.AddPage()   theID = theDoc.AddImageToChain(theID) Loop  For i = 1 To theDoc.PageCount   theDoc.PageNumber = i   theDoc.Flatten Next  theDoc.Save "D:\dhtml.pdf" 'Save the file pathresponse.Write("PDF generated successfully! ") %>

Code for generating the specified text:

12345 <%Set theDoc = Server.CreateObject("ABCpdf7.Doc") theDoc.FontSize = 96 theDoc.AddText "Hello World"theDoc.Save "c:\mypdfs\simple.pdf" 'To save the file path, please change it to the IIS website directory.%>

Note:

C: \ WINDOWS \ system32 \ abcperformance7.dll
The write modification permission is required. In addition, the MSXML function in NET Framework is used to generate PDF files.
I installed NET Framework4.0.
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.