1. Products
  2.   Aspose.Cells
  3.   .NET
  4.   PDF Converter
  5.   TXT to PDF Converter

Create Professional PDFs from TXT with Aspose.Cells

Ensure consistent layout and formatting when converting TXT spreadsheets to PDF

Simplify TXT Sharing with Aspose.Cells PDF Converter for .NET

Share your TXT data effortlessly! Aspose.Cells PDF Converter for .NET empowers you to convert TXT files to universally readable PDF documents. Recipients can view and print your data with perfect layout and formatting, regardless of their software.

How to Convert TXT to PDF using .NET?

  • Integrate Aspose.Cells into your .NET project
  • Set up your Aspose.Cells license
  • Load your TXT spreadsheet using the Workbook class constructor
  • Utilize the Workbook.Save method with the desired output PDF path to generate the converted file

Get Aspose.Cells PDF Converter for TXT

Download the necessary assemblies from the download section or install the package via NuGet (NuGet). Ensure compatibility with your development environment (.NET Core, etc.).


Convert TXT to PDF/A Compliant Document

You can choose to utilize the PdfSaveOptions class for adjusting various parameters during TXT conversion. By adjusting the properties of this class, you gain authority over print, font, security, and compression settings for the resulting PDF. Among these properties, Compliance stands out as it allows you to save spreadsheets into PDF/A compliant format.


Convert TXT to PDF with All Sheet Columns on Single Page

Sometimes you need a PDF where all the columns from a TXT worksheet fit on one page. The PdfSaveOptions.AllColumnsInOnePagePerSheet feature makes this simple to achieve. It automatically calculates the PDF dimensions based on your worksheet’s data, ensuring that all columns are shown on a single page. Depending on the amount of data, rows may span multiple pages.


Convert TXT to PDF with Custom PDF Creation Time

Using the PdfSaveOptions class, you have the ability to retrieve or define the PDF creation time while converting TXT files. If PdfSaveOptions.CreatedTime property is left unspecified, the library automatically sets it to the time when the PDF is generated.


Frequently Asked Questions

What is Aspose.Cells PDF Converter for .NET?

It is a .NET library that allows developers to programmatically convert various spreadsheet formats (Excel, OpenOffice) to PDF within their applications.

How does Aspose.Cells PDF Converter differ from Aspose.Cells for .NET?

Aspose.Cells for .NET offers a broader range of spreadsheet manipulation functionalities, including conversion to PDF, creation, editing, and more. Aspose.Cells PDF Converter focuses specifically on cost-effective PDF generation from existing spreadsheets.

Which file formats can be converted to PDF other than TXT?

Aspose.Cells PDF Converter supports a wide range of formats, including XLS, XLSX, XLSM, XLTX, XLTM, XLSB, CSV, TSV, HTML, ODS, and more (full list).

Does PDF Converter preserves the original layout during TXT conversion?

Yes, Aspose.Cells PDF Converter is designed to maintain the original layout and formatting of your spreadsheet as closely as possible when converting to PDF. This includes fonts, cell styles, borders, and formulas.

Can I customize the generated PDF?

Yes, Aspose.Cells provides the PdfSaveOptions class for controlling various aspects of the conversion, such as print settings, fonts, security, compression, and PDF/A compliance.

Popular Options

  

Support and Learning Resources

  
 English