How to call doc to any SDK from my application?

Hi,
Thanks for your prompt reply.
I have downloaded doc2any sdk in trial version it doesn't have any exe. I have doc2any dll file.
Please let me know how to use dll in this case I want to in corporate it into my web/desktop application.

Thanks,
=======================
doc2any sdk is contain following examples,

example_C#
example_vb
example_vc

you can compile and run these examples and check them how to work, these examples are call doc2any.dll internally.

You can also refer to a C# example at below, this C# example does call "pdfshell.dll" to convert documents, "pdfshell.dll" then call to doc2any.dll internally,

~~~~~~~~~~~~~~~~~~~~~~~~~~
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

[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);
}
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~
==============================
I am not able to convert pdf,html,mhtml, xls images(jpg,bmp) into desired tiff 300X300 dpi black and white LZW compression. But with same command i can convert doc,rtf and txt,docx,ppt format.

I have open office installed on my computer and Visual studio 2008.

Please tell me how can i do that with Any Doc doc2any sdk.

I also tried using docprint sdk. With docprint i m unable to convert doc,docx,rtf, txt ppt (ms office document) but it was able to convert pdf,html etc with same command. Also it gives me message of tries left and i have very few tries left and i m still testing it .
========================
Doc2any.exe can't convert PDF, HTML, MHTML files to TIFF files, you need following products to convert from PDF, HTML, MHTML files to TIFF files,

You can use PDF to Image Converter to convert PDF files to image files,

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

You can use HTMLPrint to Any Converter product to convert HTML and MHTML files to TIFF files,

https://www.verydoc.com/htmlprint-to-any.html

however, doc2any.exe is able to convert XLS files to TIFF files without any problem if your system has MS Excel application installed, if your system hasn't MS Excel application installed, the conversion will failed.

docPrint SDK product is depend on MS Office application to convert DOC, DOCX, RTF, PPT, PPTX, XLS, XLSX, etc. office documents to PDF and TIFF files, if your system hasn't MS Office installed, docPrint SDK will fail.

However, docPrint SDK product is able to convert HTML, MHTML PDF files to TIFF files without MS Office application installed.

VeryDOC

VeryDOC

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

2 Replies to “How to call doc to any SDK from my application?

  1. Hi ,
    I have tried using doc converter for jpg, bmp,tiff ,pdf ,xls, eml , xps, html, MHTML into 300X300 dpi grayscale tiff image and used
    strCmd = “-$ XXXXXXXXXXXXXXXXXXXX -debug -useprinter -multipagetif -xres 300 -yres 300 -bitcount 1 -compression 5 C:\\* C:\\*.TIF”;

    This is not creating tif image for pdf,xls,eml,xps file . And creating emty tiff for any image file,html, mhtml im using. same command is running succesfully for doc,rtf,ppt txt .
    I dont have ms office. ihave open office installed on my machine. I want to convert this for creating OCR through tiff files.

    Please suggest me a solution

    [Reply]

    VeryDOC Reply:

    Thanks for your message, please look at the answer at following web page,

    http://www.verydoc.com/blog/doc-to-any-converter-is-not-creating-tif-image-for-pdfxlsemlxps-file.html

    [Reply]

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

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!