Learn how to convert TXT files to PDF in C#: https://blog.aspose.com/2021/11/02/convert-txt-to-pdf-in-csharp/
Last active
December 4, 2021 03:54
-
-
Save aspose-com-gists/a47f7e6f38b14c376c6bd47067cd89aa to your computer and use it in GitHub Desktop.
Convert TXT Files to PDF in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load TXT file | |
Document document = new Document("sample.txt"); | |
// Save TXT file as PDF | |
document.Save("output.pdf", SaveFormat.Pdf); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment