几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】pdf converter (http://www.dimcax.com/hust/showthread.php?t=17868)

yang686526 2009-05-06 09:48 PM

【转帖】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 &params). for example params.pageparams.size() != params.layouts.size() or paper margins bigger than paper width or height.


所有的时间均为北京时间。 现在的时间是 05:32 PM.