VeryPDF Releases a new version of PDF to Image COM Developer License (Royalty Free License) today, the new version can be used from both 32bit and 64bit system. It is a COM component, you can convert any PDF file to image file with just two code lines, very simple and easy to use.
PDF to Image COM Developer License home page is,
https://www.verypdf.com/app/pdf-to-image-converter/try-and-buy.html
You can download the trial version from following URL directly,
https://www.verypdf.com/dl2.php/pdf2image_com.zip
The following are example source code to convert PDF file to Image file with PDF to Image COM Developer License ,
ASP Source Code:
<%
strInFile = "D:\test.pdf"
strOutFile = "D:\_out.tif"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-trimimage " & strLicenseKey & " """
& strInFile & """ """ & strOutFile & """"
Set VeryPDFCom = Server.CreateObject("VeryPDF.PDFtoImageCom")
strReturn = VeryPDFCom.PDFToImageConverter(strCmd)
Response.write "Conversion finished."
%>
C# Source Code:
private void button1_Click(object sender, EventArgs e)
{
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
string strPDFFile = appPath + "\\test_files\\test.pdf";
string strOutFile = appPath + "\\_test_out.tif";
string strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX";
string strCmd = "-r 300 " + strLicenseKey + " \"" + strPDFFile
+ "\" \"" + strOutFile + "\"";
System.Type VeryPDFType =
System.Type.GetTypeFromProgID("VeryPDF.PDFtoImageCom");
VeryPDF.PDFtoImageCom VeryPDFCom = (VeryPDF.PDFtoImageCom)
System.Activator.CreateInstance(VeryPDFType);
string strReturn = VeryPDFCom.PDFToImageConverter(strCmd);
MessageBox.Show("Converter finished.");
}
C++ Source Code:
char szCmd[4096] = {0};
sprintf(szCmd, "-trimimage -r 300 %s \"%s\" \"%s\"", lpstrLicenseKey, szPDFFile, szImageFile);
try
{
PDFtoImageCom VeryPDFCom;
VeryPDFCom.CreateDispatch("VeryPDF.PDFtoImageCom");
VeryPDFCom.PDFToImageConverter(szCmd);
}
catch(COleDispatchException* pEx)
{
printf("Something is wrong...\n");
}
Javascript Source Code:
<html>
<script type="text/javascript">
function PDFToImageConverter()
{
strInPDF = "D:\\downloads\\a.pdf"
strOutImage = "D:\\downloads\\_test_out.tif"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-trimimage " + strLicenseKey + " \"" + strInPDF + "\" \""
+ strOutImage + "\""
alert("Start converting,\n\n" + strCmd);
try {
var VeryPDFCom = new ActiveXObject("VeryPDF.PDFtoImageCom");
VeryPDFCom.PDFToImageConverter(strCmd)
} catch (error) {
alert(error + '\n\nThis error occurred while\nattempting to load
VeryPDF.PDFtoImageCom.')
return;
}
alert("Finished the converting.\n\n" + strCmd);
}
</script>
<body>
<input type="button" value="Test VeryPDF PDF to Image Converter COM/SDK Function" id="btn" onclick="PDFToImageConverter()">
</body>
</html>
PHP Source Code:
<?php
$strFolderDir = dirname(__FILE__);
$strParentDir = dirname($strFolderDir);
$strInFile = $strParentDir . "\\bin\\test_files\\test.pdf";
$strOutFile = $strFolderDir . "\\_out.tif";
$strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX";
$strCmd = "-trimimage $strLicenseKey \"$strInFile\" \"$strOutFile\"";
echo $strCmd . "\n";
$VeryPDFComObject = new COM("VeryPDF.PDFtoImageCom");
$VeryPDFComObject->PDFToImageConverter($strCmd);
echo "Conversion finished.\n";
?>
VB Source Code:
Private Sub Command1_Click()
strFolderDir = App.Path & IIf(Right$(App.Path, 1) <> "\", "\", "")
strInFile = strFolderDir & "\test_files\test.pdf"
strOutFile = strFolderDir & "\_test_out.tif"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-r 300 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
Set VeryPDFCom = CreateObject("VeryPDF.PDFtoImageCom")
strReturn = VeryPDFCom.PDFToImageConverter(strCmd)
MsgBox "Conversion finished."
End Sub
VB.NET Source Code:
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim strFolderDir As String = Application.StartupPath()
Dim strInFile As String = strFolderDir & "\test_files\test.pdf"
Dim strOutFile As String = strFolderDir & "\_test_out.tif"
Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
Dim strCmd As String = "-r 300 " & strLicenseKey & " """ & strInFile & """ """
& strOutFile & """"
Dim VeryPDFCom As Object = CreateObject("VeryPDF.PDFtoImageCom")
Dim strReturn As String = VeryPDFCom.PDFToImageConverter(strCmd)
MsgBox("Conversion finished.")
End Sub
VB Script Source Code:
Set fso = CreateObject("Scripting.FileSystemObject")
strFolderDir = fso.GetParentFolderName(WScript.ScriptFullName)
strParentDir = fso.GetParentFolderName(strFolderDir)
strInFile = strParentDir & "\bin\test_files\test.pdf"
strOutFile = strFolderDir & "\_out.tif"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "-trimimage " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
msgbox strCmd
set VeryPDFCom = CreateObject("VeryPDF.PDFtoImageCom")
strReturn = VeryPDFCom.PDFToImageConverter(strCmd)
msgbox "Conversion finished."
If you encounter any problem with it, please feel free contact us, we are glad to assist you asap,
http://support.verypdf.com/open.php