Examples 図形描写 line.pxdx

直線
<?xml version="1.0" encoding="utf-8"?>
<!-- 用紙サイズ「A4」用紙方向「縦」 -->
<pxd paper-type="a4" orientation="portrait" title="図形">
   <page>
      <!-- 値10の時1mmになるように設定 -->
      <svg x="0" y="0" width="29.7cm" height="21cm" viewBox="0 0 2970 2100">
         <!-- 横2cm 縦5cmから横方向に4cmの長さ、太さ1mmの黒色の直線を描く -->
         <line x1="200" y1="500" x2="600" y2="500" stroke="black" stroke-width="10"/>
      </svg>
   </page>
</pxd>