Home  PDF-To-Image  PDFExtractTIFF  PDF2Image  ScreenShots  Articles  Products  Downloads

ASP Example for PDF to Image Converter SDK

<%
    Dim oTest, iPageCount, iPageWidth, iPageHeight
    Set oTest = Server.CreateObject("PDF2TIFF.CPDF2TIFF")
    Response.write "Create Object Success!"

    strInputFileName = "C:\wwwhome\example1.pdf"

    iPageCount = oTest.asp_PDFToImageGetPageCount(strInputFileName)
    iPageWidth = oTest.asp_PDFToImageGetPageWidth(strInputFileName, 1)
    iPageHeight = oTest.asp_PDFToImageGetPageHeight(strInputFileName, 1)

    'Converter PDF file to TIFF file by DPI information
    oTest.asp_PDFToImageConverter strInputFileName, "C:\wwwhome\example1_tiffpack.tiff", "", "", 300, 300, 24, 32773, 70, 0, 1, -1, -1
    oTest.asp_PDFToImageConverter strInputFileName, "C:\wwwhome\example1.emf", "", "", 300, 300, 24, 32773, 70, 0, 1, -1, -1

    'Converter PDF file to TIFF file by page size information
    oTest.asp_PDFToImageConverterEx strInputFileName, "C:\wwwhome\example1_tiffpack_page_size.tiff", "", "", 1, iPageWidth, iPageHeight, 24, 32773, 70, 0, 1, -1, -1

    strInputFileName = "C:\wwwhome\example2.pdf"
    iPageCount = oTest.asp_PDFToImageGetPageCount(strInputFileName)
    iPageWidth = oTest.asp_PDFToImageGetPageWidth(strInputFileName, 1)
    iPageHeight = oTest.asp_PDFToImageGetPageHeight(strInputFileName, 1)
    oTest.asp_PDFToImageConverter strInputFileName, "C:\wwwhome\example2_tiffpack.tiff", "", "", 300, 300, 8, 32773, 70, 1, 1, -1, -1
    oTest.asp_PDFToImageConverterEx strInputFileName, "C:\wwwhome\example2_tiffpack_page_size.tiff", "", "", 1, iPageWidth, iPageHeight, 8, 32773, 70, 1, 1, -1, -1

    oTest.asp_PDFToImageConverter strInputFileName, "C:\wwwhome\example2.bmp", "", "", 300, 300, 8, 32773, 70, 1, 1, -1, -1

    Response.write "Convert Success!"
%>

PDF To Image Converter COM component user manual
Click here to download evaluation version of PDF to Image Converter SDK
Click here to purchase PDF to Image Converter SDK
ASP Example for PDF to Image Converter SDK
VC++ Example for PDF to Image Converter SDK
VB.NET Example for PDF to Image Converter SDK


Home | Products | Downloads | Support | Links | Contact

Copyright © 2000- VeryPDF.com, Inc. All rights reserved.
Send comments about this site to the webmaster.