Create thumbnail image for Office doc and PDf file’s first page only

Dear Support,
 
    We have tested your evaluation version(Doc to any) for creating the thumbnail image for the first page of every office doc and pdf files. but got some issues.
 
1) PDF support is not given, We need that.
2) If word file has multiple pages then it is creating multiple images, as we want only first page's thumbnail.
3) In your C# sample we do not find any dll reference so if we install on client side then which dll we need to refer.
4) The image quality is not good. From excel I am unable to get the thumbnail on evaluation version.
 
    waiting for your feedback.
 
Thanks & Regards,
=============================
Hi,

>>1) PDF support is not given, We need that.

Yes, doc2any.exe doesn't support PDF format, you can use PDF to Image Converter to convert PDF file to thumbnail image,

http://www.verydoc.com/pdf-to-image.html

>>2) If word file has multiple pages then it is creating multiple images, as we want only first page's thumbnail.

You can use -pagerange parameter to convert first page only, for example,

Doc2any.exe -pagerange 1 C:\test.doc C:\out.jpg


>>3) In your C# sample we do not find any dll reference so if we install on client side then which dll we need to refer.

You can call pdfshell.dll from your C# code directly, please refer to the C# example code at below,

~~~~~~~~~~~~~~~~~~~~~
        [DllImport(@"pdfshell.dll", CharSet = CharSet.Auto)]
        static extern uint DocToAnyRunCmd([MarshalAs(UnmanagedType.LPStr)]
string strCmdLine);

        private void button1_Click(object sender, EventArgs e)
        {
            string strCmd;
            strCmd = "-$ XXXXXXXXXXXXXXXXXXXX C:\\example.doc C:\\example.pdf";
            uint nRet = DocToAnyRunCmd(strCmd);
        }
~~~~~~~~~~~~~~~~~~~~~

>>4) The image quality is not good. From excel I am unable to get the thumbnail on evaluation version.

Please add -useoffice and -useprinter parameters to try again, for example,

Doc2any.exe -pagerange 1 -useoffice 1 -useprinter C:\test.doc C:\out.jpg

VeryDOC
=============================
Dear Support,

Thanks for your reply,

I have one question that I am unable to convert XLS file to JPG with Doc2any.exe. Can you pl help me in that.

Thanks
=============================
Hi,

Our doc2any.exe does convert office DOC file to JPG file without any problem, please run following command line to try,

Doc2any.exe C:\test.doc C:\out.jpg

Doc2any.exe -useprinter -useoffice 1 C:\test.doc C:\out.jpg

VeryDOC
=============================
Dear Support,
 
I knaow that DOC is converted in JPG.

But I have 2 issues

1) XLS is not converted to JPG.
2) The 'pagerange' parameter for converting only first page is not working

So please give feedback on that.

Thanks
=============================
>>1) XLS is not converted to JPG.

You can run following command line to convert XLS file to JPEG file easily,

Doc2any.exe -useprinter -useoffice 1 C:\test.xls C:\out.jpg

>>2) The 'pagerange' parameter for converting only first page is not working

We will research this problem shortly, we will send an email to you after this problem is solved, thanks for your patience.

VeryDOC

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Create thumbnail image for Office doc and PDf file's first page only, 10.0 out of 10 based on 1 rating

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!