64bit version of PDF To Image Converter COM

getting this exception "Exception from HRESULT: 0x8007000B".
we have this license already & it's working fine for 32-bit Windows server box.

Now, we want this to run on Windows server 2008 R2 standard SP1. it's 64-bit OS

kindly suggest
Thanks,
==========================================================
Hi There,

I have few queries please clarify…

· Can u please confirm me whether existing licensed version[which we purchased on Dec 17 19:05:22 2008 ] will work on x64 bit OS or not?

· If NOT, can u provided me evaluation version of this PDF2image.dll , cimage.dll for 64bit OS which can be used for .NET API

Currently, we are accessing this product through our code as below

· After testing the evaluation version on 64-bit OS, we’ll go for purchasing this new product. Buying time may be within 15-30days

const int TRUE = 1;
const int FALSE = 0;
const int COMPRESSION_NONE = 1; // dump mode
const int COMPRESSION_CCITTRLE = 2; // CCITT modified Huffman RLE
const int COMPRESSION_CCITTFAX3 = 3; // CCITT Group 3 fax encoding
const int COMPRESSION_CCITTFAX4 = 4; // CCITT Group 4 fax encoding
const int COMPRESSION_LZW = 5; // Lempel-Ziv & Welch
const int COMPRESSION_JPEG = 7; // %JPEG DCT compression
const int COMPRESSION_PACKBITS = 32773; // Macintosh RLE
const int COMPRESSION_CLASSF196 = 88888889; // Only Tiff generated using this compression can be faxed

[DllImport("pdf2image.dll", CharSet = CharSet.Auto)]
static extern uint PDFToImageConverter(
[MarshalAs(UnmanagedType.LPStr)] string FileName,
[MarshalAs(UnmanagedType.LPStr)] string OutputName,
IntPtr UserPassword, IntPtr OwnPassword,
int xresolution, int yresolution, int bitcount,
int compression, int quality, int grayscale,
int multipage, int firstPage, int lastPage);

[DllImport("pdf2image.dll", CharSet = CharSet.Ansi)]
static extern uint PDFToImageSetCode(string lpRegcode);

======================================
Downloaded trial version of PDF to Image Converter COM & trying to run C# sharp demo example from the downloaded folder I,e

pdf2image_sdk_trial\pdf2image_sdk\PdfConverterDotNet\CSharpConsole

When I try to run this app, I’m getting this error as

"CSharp, converting C:\DoesntWork.pdf to C:\DoesntWork.jpg
Error: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B), press enter..."

Pls note that I’m running on 64-bit W2k8 r2 server.

Please help asap, we need your urgent assistance for this.

Thanks,
======================================

From Class, we are calling this.
try
{
    PDFToImageSetCode("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); a 35 digit license key
    TifResult = (int)PDFToImageConverter(SourceName, DestName, UserPassword, OwnPassword, 196, 196, 1, COMPRESSION_CLASSF196, 70, FALSE, TRUE, -1, -1);
}
catch (Exception ex)
{
}

Thanks,
==========================================================

Yes, the current version of PDF to Image SDK does support x64 system, but you need compile your project with x86 platform, otherwise, your code will not able to load pdf2image.dll library correctly.

So, please compile your project with x86 target platform to try again.

VeryPDF
==========================================================
Please refer to the test steps at below,

You can download the latest version of PDF2Image SDK from following URL,

http://www.globalpdf.com/pdf2tif/pdf2image_sdk_trial.zip

the latest version of PDF2Image SDK does contain the 64bit COM interface, you can use it by following steps,

1. Run “64bit-com-install.bat” or following command line to install PDF2ImageCOM.exe into your system, you need run it by administrator privilege,

PDF2ImageCOM.exe /regserver

2. You can use following 64bit code to test its capability,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim oTest, nPageCount, nPageWidth, nPageHeight
Set oTest = CreateObject(“PDF2Image.CPDF2Image”)
m_strInputFileName = “C:\test.pdf”
oTest.asp_PDFToImageSetCode(“XXXXXXXXXXXXXXXXXXXXXX”)
nPageCount = oTest.asp_PDFToImageGetPageCount(m_strInputFileName)
nPageWidth = oTest.asp_PDFToImageGetPageWidth(m_strInputFileName, 1)
nPageHeight = oTest.asp_PDFToImageGetPageHeight(m_strInputFileName, 1)
‘Converter PDF file to TIFF file by DPI information
oTest.asp_PDFToImageConverter m_strInputFileName, “C:\example1_tiffpack.tiff”, “”, “”, 300, 300, 24, 32773, 70, 0, 1, -1, -1
oTest.asp_PDFToImageConverter m_strInputFileName, “C:\example1.emf”, “”, “”, 300, 300, 24, 32773, 70, 0, 1, -1, -1
‘Converter PDF file to TIFF file by page size information
oTest.asp_PDFToImageConverterEx m_strInputFileName, “C:\example1_tiffpack_page_size.tiff”, “”, “”, 1, nPageWidth, nPageHeight, 24, 32773, 70, 0, 1, -1, -1

MsgBox “Convert Success!”
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please refer to following web pages for more information,

http://www.verypdf.com/wordpress/201108/pdf2image-dll-library-on-x64-system-1850.html
http://www.verypdf.com/wordpress/201107/call-pdf-to-image-converter-com-component-v2-0-from-64bit-application-1191.html
http://www.verypdf.com/wordpress/201106/pdf-to-image-converter-sdk-64-bit-version-439.html

VeryPDF
==========================================================
I followed your steps mentioned by you below to run ur sample app on 64-bit W2K8 server R2. But still facing the same problem. I ran the setting & app in administrative mode itself.
==========================================================
Thanks for your message.

In the meantime, we suggest you may download PDF to Image Command Line product from our website to try, the PDF to Image Command Line is support both 32bit and 64bit systems.

Please download PDF to Image Command Line from following web page,

http://www.verypdf.com/app/pdf-to-image-converter/try-and-buy.html
http://www.verypdf.com/dl2.php/pdf2image_win.zip

after you unzip it to a folder, you can run following command line to convert your PDF file to Image files without any problem,

pdf2img.exe D:\test.pdf D:\out.png

You can call pdf2img.exe from your ASP or C# code to convert PDF file to image files easily, if you don't know how to do, please feel free to let us know, we will send more examples to you asap.

We hoping pdf2img.exe command line application will more easier for you.

VeryPDF
==========================================================
Hello Team,

What’s the issue with your existing demo sample on my box. I believe u r able to login to my box using Team Viewer.
Was the demo sample working on my 64-bit box or not? Kindly share your result what’s the issue here, as I need to report to my manager on this progress.
It’s proving to be too much delay for us.

Moreover, we are ONLY interested in COM API product I,e PDF to Image COM. We already had 32-bit license with us & accordingly COM coding is also done for this. Below is sample code snippet.

Our license is working fine with 32-bit OS. Now, we are migrating all our app to 64-bit OS I,e W2K8 R2. So, we don’t want to go for another product. We want to stick to this only I,e PDF to Image COM

Since this code & our business scenarios are working fine with this, so kindly requesting you to provide evaluation license key for us for testing OR if any issues from your side kindly fix it asap.

Please consider this as high priority

Below is sample code snippet which we implemented & tested on 32-bit OS using PDF to Image COM product

try
{
   PDFToImageSetCode("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
   TifResult = (int)PDFToImageConverter(SourceName, DestName, UserPassword, OwnPassword, 196, 196, 1, COMPRESSION_CLASSF196, 70, FALSE, TRUE, -1, -1);
}
catch (Exception ex)
{
   TifResult = -1;
   EventLog.WriteEntry("Application", ex.Message + "- ***Error in PDFToImage dll***", EventLogEntryType.Error);
   Console.WriteLine("C.Error occured while converting PDF to TIF. For more information refer the Windows event viewer");
}

Thanks,
==========================================================
The trial version does support 64bit system, after you downloaded the trial version, you can launch a CMD window by administrator privilege, and run following command line to register PDF2ImageCOM into your system,

PDF2ImageCOM.exe /regserver

after that, you can run following VBS code to convert your PDF file to Image files easily, "PDF2Image.CPDF2Image" COM interface is support both 32bit and 64bit systems,

----------------------------------
Dim oTest, nPageCount, nPageWidth, nPageHeight
Set oTest = CreateObject("PDF2Image.CPDF2Image")

m_strInputFileName = "C:\test.pdf"

oTest.asp_PDFToImageSetCode("XXXXXXXXXXXXXXXXXXXXXX")
nPageCount = oTest.asp_PDFToImageGetPageCount(m_strInputFileName)
nPageWidth = oTest.asp_PDFToImageGetPageWidth(m_strInputFileName, 1)
nPageHeight = oTest.asp_PDFToImageGetPageHeight(m_strInputFileName, 1)

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

'Converter PDF file to TIFF file by page size information
oTest.asp_PDFToImageConverterEx m_strInputFileName, "C:\example1_tiffpack_page_size.tiff", "", "", 1, nPageWidth, nPageHeight, 24, 32773, 70, 0, 1, -1, -1

MsgBox "Convert Success!"
----------------------------------

VeryPDF
==========================================================
Hi Team,

I’m unable to run the below sample provided by you. Please provide me with working C# sample which can run on 64-bit version OS.

Secondly, you suggested me to use ” PDF2Image.CPDF2Image” instead of ”pdf2image”, I want to know what’s is the major difference between them? And how it affects our exist code which uses licensed version “pdf2image” runs on 32-bit OS.

If we want to purchase license version which one we need to purchase among these ” PDF2Image.CPDF2Image” instead of ”pdf2image”, to work smoothly on 64-bit OS??

Is it possible to arrange call from your side, so that we can discuss & close it soon. Seems like we are dragging the days without proper outcome. Please do let me know

Thanks,
==========================================================
We have created a C# example for you, this C# example does use "PDF2Image.CPDF2Image" COM interface, please by following steps to try again,

1. Run a CMD window by “Run as administrator” privilege, and run following command line to register PDF to Image COM interface,

PDF2ImageCOM.exe /regserver

2. You can run following C# code to call PDF to Image COM from both 32bit and 64bit systems,

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using PDF2Image;

 

namespace example_CSharp_WindowsFormsApplication1

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            PDF2Image.CPDF2Image pdf2imgobj = new PDF2Image.CPDF2Image();

            long ret1 = pdf2imgobj.asp_PDFToImageConverter("D:\\temp\\_001.pdf", "D:\\temp\\_001.tif",

                "", "", 200, 200, 24, 32773, 100, false, false, 0, 0);

            long ret2 = pdf2imgobj.asp_PDFToImageConverter2("D:\\temp\\_001.pdf", "D:\\temp\\_002.tif",

                "", "", 200, 200, 24, 32773, 100, false, false, 0, 0);

        }

    }

}

 

 

"PDF2Image.CPDF2Image" is a COM interface for pdf2image.dll library, "PDF2Image.CPDF2Image" can be used in both 32bit and 64bit applications, it is work smoothly on both 32bit and 64-bit OS.
==========================================================
Thanks Team, this C# demo sample working properly on my 64-bit box.

Now, I’ll be incorporating this PDF2Image methods into our business logic & let you know on the test result.

Meantime, I want to know what is the difference between pdf2imgobj.asp_PDFToImageConverte versus pdf2imgobj.asp_PDFToImageConverter2 methods?? When to use one over other??

If we want to buy the license of this, what is the complete product name??

Thanks,
==========================================================
pdf2imgobj.asp_PDFToImageConverter() and pdf2imgobj.asp_PDFToImageConverter2 are two functions to render PDF file to image files, in general, you can use pdf2imgobj.asp_PDFToImageConverter2() function to convert all PDF files, pdf2imgobj.asp_PDFToImageConverter2() function is work fine for almost PDF files.

also, the full product name is: PDF to Image Converter SDK

VeryPDF
==========================================================

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF to Image Converter and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!