3 Replies Latest reply on Dec 7, 2018 10:52 AM by MalyarovSE

    PDI to SVG export proplem

    MalyarovSE

      Elements from "Symbol Library" (that have Fill Mode: Solid) always converting with #008000 color.

      These elements in SVG have structure like this:

        <g PB:FillColor="13026246" PB:FillStyle="3">

        <svg>

        <path style="fill:#008000">

        ...

        </svg>

        </g>

      All SVG viewers that i used ignore attribute PB:FillColor="13026246" and use only style="fill:#008000"

       

      My code is:

      PBObjLib.Application app = new PBObjLib.Application();

      PBObjLib.Display disp = app.Displays.Open("1.pdi", true);

      disp.Restore();

      disp.Zoom = "FitAll";

      disp.SaveAs("1.svg", PBObjLib.pbpdFILEFORMAT.pbpdFormatSVG);

      disp.Close(false);

      app.Quit();

      What am I doing wrong?

       

      After several experements all work fine with PBObjLib.Application.Maximize(), but I think this is bad solution.

      Is there any way to convert to SVG without start ProcessBook Application?