Comment 2 for bug 1441998

Revision history for this message
jmr (jmpalavas) wrote :

Hi,

Here are the arguments:
-z -f "D:/inetpub/wwwroot/frodon/cache/frodon6079_20150409_162057.svg" -e "D:/inetpub/wwwroot/frodon/cache/frodon6079_20150409_162057.png"

The hack to the lib does not work very well in fact. We get the texts but not the good font.
If we can run As Administrator, it is working.

Here is the dotnet code used to call inkscape:
                    Dim L_argument As String = " -z -f """ + Simbad_drive + "/inetpub/wwwroot/" + Serveur + "/cache/" + L_name_file + ".svg"" -e """ + Simbad_drive + "/inetpub/wwwroot/" + Serveur + "/cache/" + L_name_file + ".png"""
                    Dim p As System.Diagnostics.Process = Nothing
                    Dim processStartInfo As System.Diagnostics.ProcessStartInfo
                    processStartInfo = New System.Diagnostics.ProcessStartInfo()
                    processStartInfo.FileName = inkscape
                    processStartInfo.Arguments = L_argument
                    'processStartInfo.Verb = "runas"
                    processStartInfo.WorkingDirectory = "C:\Soft\"
                    processStartInfo.EnvironmentVariables("USERPROFILE") = Simbad_drive + "/inetpub/wwwroot/" + Serveur + "/cache/"
                    'processStartInfo.EnvironmentVariables("WINDOWSFONTDIR") = "C:\Windows\Fonts\"
                    processStartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
                    processStartInfo.UseShellExecute = False

                    processStartInfo.RedirectStandardError = False
                    p = System.Diagnostics.Process.Start(processStartInfo)