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