查看单个帖子
旧 2009-05-05, 08:09 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:dfexportflags(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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)