diff --git a/src/Docfx.App/PdfBuilder.cs b/src/Docfx.App/PdfBuilder.cs index 2e4123f6a3b..8c95fea7821 100644 --- a/src/Docfx.App/PdfBuilder.cs +++ b/src/Docfx.App/PdfBuilder.cs @@ -258,9 +258,6 @@ static async Task CreatePdf( Func> printPdf, Func> printHeaderFooter, ProgressTask task, Uri outlineUrl, Outline outline, string outputFolder, string outputPath, Action> updatePageNumbers) { - var tempDirectory = Path.Combine(Path.GetTempPath(), ".docfx", "pdf", "pages"); - Directory.CreateDirectory(tempDirectory); - var pages = GetPages(outline).ToArray(); if (pages.Length == 0) return;