高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】pdf converter
pdf converter
pdf converter
hi!
currently i am trying to use the dynamic link library that is created by the project dd_pdfexport_dll (mvc6).
i've tried to add a simple method to the library, but when i try to link to the library in asp.net i get the following error:
unable to load dll '<correct path>\dd_pdfexport.dll'; the specified module could not be found. (exception from hresult: 0x8007007e)
according to some forums on the internet, this should have to do with oracle. but as far as i know, oracle isn't used.
i hope to hear from you soon!
the problem can be solved as follows:
by opening the dll in showdep it can be seen that pdftoolkit.dll is missing.
this dll has to be copied to the bin-dir (where the non-functioning dll already had been put), and now at reloading the file in showdep three other missing files emerge. obviously, also these files have to be copied to the bin-dir.
once this has been done, a method can be invoked in the dll.
now my next question:
is there any example (e.g. open-source command line tool, like dwf) for exporting pdf's.
now i have a great number of methods, but i don't know to invoke which method. i have consulted the example at odamfcapp but this hardly makes it clearer to me.
it seems that i should use the exportpdf function. but i get an error of exinvalidpageparameters from the function cpdfexportimpl::init.
so does anyone know an example of how to use the functions in dd_pdfexport?
you should use the exportpdf function and mfcapp is the good example for exporting pdf.
exinvalidpageparameters generated if something wrong with input parameter params of exportpdf(pdfexportparams ¶ms). for example params.pageparams.size() != params.layouts.size() or paper margins bigger than paper width or height.
|