public static string Convert(Subtitle subtitle, int width, int height)
        {
            var finalSub = new Subtitle();

            foreach (var paragraph in subtitle.Paragraphs)
            {
                finalSub.Paragraphs.AddRange(SplitToAssRenderLines(paragraph, width, height));
            }

            var oldFontSize = Configuration.Settings.SubtitleSettings.SsaFontSize;
            var oldFontBold = Configuration.Settings.SubtitleSettings.SsaFontBold;

            Configuration.Settings.SubtitleSettings.SsaFontSize = 40; // font size
            Configuration.Settings.SubtitleSettings.SsaFontBold = false;
            finalSub.Header = AdvancedSubStationAlpha.DefaultHeader;
            Configuration.Settings.SubtitleSettings.SsaFontSize = oldFontSize;
            Configuration.Settings.SubtitleSettings.SsaFontBold = oldFontBold;

            finalSub.Header = finalSub.Header.Replace("PlayDepth: 0", @"PlayDepth: 0
PlayResX: 1280
PlayResY: 720").Replace("1280", width.ToString(CultureInfo.InvariantCulture))
                              .Replace("720", height.ToString(CultureInfo.InvariantCulture));

            return(finalSub.ToText(new AdvancedSubStationAlpha()));
        }