How to getting PDF to Image Converter SDK C++ to work?

Hi support,

I downloaded the software from https://www.verypdf.com/pdf2tif/pdf2image_sdk_trial.zip

I plan to integrate this PDF to Image Converter SDK C++ source code, however, I have found there is no detail document here either. Could you let me know what are the necessary library that I need to include for use the C++ SDK for 64bit OS? I only found the instruction for ASP user. I plan to get this going and test it so that I can make decision of purchasing in early next week. Please let me know.

Thanks,
Customer
------------------------------------------------------
Thanks for your message, you may call PDF2ImageCOM.exe from 64bit C++ code, please look at following web pages for more information,

https://www.verypdf.com/wordpress/201107/call-pdf-to-image-converter-com-component-v2-0-from-64bit-application-1191.html

The latest version of PDF2Image SDK contains a PDF2ImageCOM.exe file, this is the COM interface, this COM interface can be called from both 32bit and 64bit applications.

Please put PDF2ImageCOM.exe and pdf2image.dll, cimage.dll files into same folder, launch a CMD window by administrator privilege, run following command line to register it,

PDF2ImageCOM.exe /regserver

After you registered it, you can call asp_PDFToImageConverter() function from 32bit or 64bit code to convert PDF files to image files, please refer to following VBS code,

~~~~~~~~~~~~~~~~~
'please run "64bit-com-install.bat" to register PDF2ImageCOM.exe first
Set pdfcom = CreateObject("PDF2Image.CPDF2Image")
pdfcom.asp_PDFToImageSetCode("XXXXXXXXXXXXXXXXXXXX")
pdfcom.asp_PDFToImageSetFileNameSuffix("")
nRet = pdfcom.asp_PDFToImageConverter("C:\\1.pdf", "C:\\1.jpg", "", "", 200, 200, 24, 32773, 85, 0, 0, 1, 1)
~~~~~~~~~~~~~~~~~

You can also 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

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")
strInputFileName = "C:\test.pdf"
oTest.asp_PDFToImageSetCode("XXXXXXXXXXXXXXXXXXXXXX")
nPageCount = oTest.asp_PDFToImageGetPageCount(strInputFileName)
nPageWidth = oTest.asp_PDFToImageGetPageWidth(strInputFileName, 1)
nPageHeight = oTest.asp_PDFToImageGetPageHeight(strInputFileName, 1)
'Converter PDF file to TIFF file by DPI information
oTest.asp_PDFToImageConverter strInputFileName, "C:\example1_tiffpack.tiff", "", "", 300, 300, 24, 32773, 70, 0, 1, -1, -1
oTest.asp_PDFToImageConverter 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 strInputFileName, "C:\example1_tiffpack_page_size.tiff", "", "", 1, nPageWidth, nPageHeight, 24, 32773, 70, 0, 1, -1, -1

MsgBox "Convert Success!"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For the C++ code, you can add a reference to PDF2ImageCOM.exe, then you can call it from 64bit source code easily, if you can't get it work, please feel free to let us know, we will prepare an example for you asap.

VeryPDF
------------------------------------------------------
Hi there,

I am mainly looking for C++ example. I have looked at the folders from

https://www.verypdf.com/pdf2tif/pdf2image_sdk_trial.zip

There are VC, VC2, VC3, VC4...etc. and I have tried to use the code and build a stand alone project but didn't get any output.

There are instructions for vbs code which I don't know whether they are needed for C++ but I did that anyways.

Would you please send me a very simple VS C++ project code that demonstrate a simple task: counting the number of page of a input pdf file and outputting the pages into separated image files.

Thanks,
Customer
------------------------------------------------------
Hi support,

Please ignore my stupid question in my previous email. I simply did not realized there is a dsp file in the VC folder. It was default to be opened from notepad. Therefore, I didn't quite understand what should I do with it.
I should be fine for now.

Thanks,
Customer
------------------------------------------------------
Everything works great! I wonder if all the features are available with unlicensed version (so that we can evaluate the quality and capability better) and if there is any detail documentation about all the parameter settings that I can use for the pdf to image conversion, i.e. compress type, quality, the range of resolution value, quality...etc.

Also, what is the PDFToImageSetCode refers to in the C++ project code.

Thanks,
Customer
------------------------------------------------------
Thanks for your message, please look at the "PDF to Image Converter COM component user manual" from following web page,

https://www.verypdf.com/pdf2tif/pdf-to-image-sdk.htm

Yes, the unlicensed version is contain all functions except for the demo watermark, after you purchase it, please pass your license key to PDF2Image SDK, the demo watermark will be removed from generated image files.

Please set your license key to PDFToImageSetCode() function, you will able to register PDF2Image SDK successful,

void __stdcall PDFToImageSetCode(const char *lpRegcode)
Description:
Register your PDF2Image SDK by the given Registration Key.

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

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!