A PDF generálásának javítása

This commit is contained in:
2025-06-17 11:35:36 +02:00
parent d1ad7e76c3
commit e5dd9aad27
3 changed files with 6 additions and 3 deletions
@@ -41,7 +41,11 @@ namespace WorkFlowCheck.BL.DocumentGenerator
// LibreOffice parancssori konverzió
ProcessStartInfo startInfo = new ProcessStartInfo
{
#if !DEBUG
FileName = "e:\\LibreOffice\\program\\soffice", // LibreOffice parancs
#else
FileName = "c:\\Program Files\\LibreOffice\\program\\soffice", // LibreOffice parancs
#endif
Arguments = $"--headless --convert-to pdf \"{tempWordPath}\" --outdir \"{pdfDirectory}",
RedirectStandardOutput = true,
UseShellExecute = false,
@@ -169,8 +173,6 @@ namespace WorkFlowCheck.BL.DocumentGenerator
body.Append(new Paragraph(new Run(new Break() { Type = BreakValues.Page })));
body.Append(table);
}
private static Drawing CreateImageDrawing(string relationshipId, long width, long height)
{
return new Drawing(