Closed RenderMichael closed 4 months ago
Reproduction:
public static string GenerateNewPdf() { string path = $"outputs/Generated--{NewGuid():N}.pdf"; using var document = new PdfDocument(); PdfPage page = document.AddPage(); document.Save(path); return Path.GetFullPath(path); }
Outputs:
The trailer contains the line:
/ID[<FCEAE9E3BEA9864C83AA492B76687F02><FCEAE9E3BEA9864C83AA492B76687F02>]
There should be a space inserted.
I cloned the repo to try and debug through it, and found out this only happens in Release mode.
Reproduction:
Outputs:
The trailer contains the line:
There should be a space inserted.
Full file output
``` %PDF-1.4 %���� 1 0 obj << /CreationDate(D:20240522141508-04'00') /Creator