几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】dwg to pdf conversion111 (http://www.dimcax.com/hust/showthread.php?t=15896)

yang686526 2009-05-05 08:09 AM

【转帖】dwg to pdf conversion111
 
dwg to pdf conversion!!!
dwg to pdf conversion!!!
i have crated one dwg file and converted that file to pdf by using dwgdirect library.
after that, i tried to open the converted pdf file by adobe reader but it did not open.
pdfexportparams params;
params.flags = pdfexportparams::pdfexportflags(pdfexportparams::k zoomtoextentsmode);
?
?
?
exportpdf(params);
attached are the dwg and pdf file for checking.
is there insufficient data to make the dwg file? please let me know, where i made the mistake.
--thanks
yoshida
attached files
hi,
your file containes layer with lineweight = bylayer. in my opinion this value cannot be used with layer. bylayer enum value is -1... as result pdf output includes negative lineweight command and viewer hangs. the temporary fix is
void pdf2dexportdevice::dc_lineweight (double lineweight)
{
graphstatechanged();
pdficontentcommands *pout = cc();
pout->w(lineweight < 0 ? 0 : lineweight);
}
quote:
originally posted by arumjantsev
hi,
your file containes layer with lineweight = bylayer. in my opinion this value cannot be used with layer. bylayer enum value is -1... as result pdf output includes negative lineweight command and viewer hangs. the temporary fix is
void pdf2dexportdevice::dc_lineweight (double lineweight)
{
graphstatechanged();
pdficontentcommands *pout = cc();
pout->w(lineweight < 0 ? 0 : lineweight);
}
hello,
thanks arumjantsev for your quick reply.
let me check it.
--yoshida


所有的时间均为北京时间。 现在的时间是 10:22 AM.