[.Net] convert DWG to PNG or SVG, width and height issuse

Hi,
There is width and height issue when i try to convert DWG to PNG and SVG.

Converting results have too big width and height for my dwg file.

In SVG CASE, result is like this
<svg xmlns="~~" … width=“24437.021” height=“1543.9378”>


<path d=“M5647.3975 -769.94834L5646.6987 -770.64709”


The Path Starts with (5647.3975, -769.94834)
even There is nothing to draw X : 0~ 5500

So the result of Converting have Lots of empty space.
with small dwg path.

How can I handle empty space when I convert DWG to SVG and PNG ?

Empty spaces vary according to target extension.
For example, In Case of DWG to PNG (and SVG), Empty space is similar to Sqaure.
But DWG to JPEG, looks like long rectangle (lots of empty width space,)

@loverpc,
Hi.
Please, attach the original file here, we will check this problem.

Oh, I solve this problem.

The problem is DWG file.
there is ‘dot’ in other space ( not in main viewpoint)
Dot Creates Lots of empty space.

Thanks.

1 Like

Hi may i ask on how you were able to remove the dot or the extra spaces?

@EricAce,
Hi,
please provide the initial file and share code sample so we can reproduce the issue on our side.