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.