i wrote a script to export layouts at an automatic place, with an automatic name: the script is like this:
{
var pdf = FilePdf.Create();
foreach (var layoutName in selected)
{
var pageview = pageviews.FirstOrDefault(p => p.PageName == layoutName);
if (pageview == null)
continue;
// Dimensions papier en pouces
double inchW = pageview.PageWidth / 25.4;
double inchH = pageview.PageHeight / 25.4;
SD.Size size = new SD.Size(
(int)(inchW * dpi),
(int)(inchH * dpi)
);
var settings = new ViewCaptureSettings(pageview, size, dpi)
{
RasterMode = true,
OutputColor = ViewCaptureSettings.ColorMode.DisplayColor
};
pdf.AddPage(settings);
}
pdf.Write(finalPdf);
Process.Start(new ProcessStartInfo(finalPdf) { UseShellExecute = true });
}
the output is a raster pdf, and it not take the value of the midth line print of the layer when the display mode of the view is “technical”, do you know why?