csharp_pain/Scraping/COM/samples/ASP/getpage.asp

21 lines
431 B
Text
Raw Normal View History

2014-06-26 15:13:46 +00:00
<%@ Language=VBScript %>
<%
option explicit
dim pdfDoc
set pdfDoc = Server.CreateObject("PDFParser.Document")
if not pdfDoc.Open(Server.Mappath("in_sample.pdf")) then
Response.Write "<p>"
Response.Write "Could not open file." & "<br>"
end if
Response.Write "<p>"
Response.Write "Number of pages: " & pdfDoc.PageCount & "<br>"
Response.Write "</p>"
%>