How to make a PDF document from a text file

2017-08-25

Today we will talk about the cases when you need to make a PDF document, but there is no Adobe Acrobat on the computer. You only have a text file with original data and FastReport Desktop.

To begin with, you need a test file, in which there is a division into paragraphs (carriage return to a new line). Such a data source will allow you to use paragraphs as data strings.

Now let's create a report in the designer.

Create a new data source:

 

Note the Separator field. By the way, you can enter any character that does not exist in the document, and this will allow you to use carriage return at the end of each paragraph as a separator.

Then select the column Field0:

In the data window appeared a source with one field:

 

Drag this field to the "Data" band and stretch it to the full width:

To fit the entire paragraph text on the band, enable the CanGrow property (can grow) for the added field and for the Data band. You can do this from the context menu:

Also, we call the context menu for the band by right clicking on the band header.

Add a title:

Let's see how the report looks in the preview mode:

As you can see, from a regular text file we received a paragraph-broken document.

So, half the work is done. It remains only to configure the export of the report to PDF format using FR Desktop.

Launch the Configurator tool. Choose the report we created:

We mark the option Export as. And choose the PDF format:

The next step is to select the folder where our PDF document will be saved. To do this, select the Save to option and select the value of Folder:

To select a folder, click the Settings button.

Now, save the configuration with the Save button. You can run the configuration file for execution immediately using the Run button, or use it later with the scheduler.

Press the Run button:

We will check the folder specified in the config. And there is! File created:

As we have seen, you can easily create PDF documents from text files using FastReport.

.NET FastReport Desktop CSV PDF
March 04, 2026

Overview of .NET 10: What's New in C# 14, ASP.NET Core, WinForms, and MAUI

Microsoft has released .NET 10 with long-term support (LTS). The release has not brought about a revolution but rather a host of targeted, mature improvements. This article highlights the key points.
February 17, 2026

How to Install FastReport Desktop on Windows and Linux

In this article, we will outline the detailed steps for installing, configuring, and launching the FastReport Desktop installer, with examples for each platform.
February 06, 2026

FastReport VCL: How 25 Years of Innovation Changed the Approach to Reporting in VCL Applications

We decided to take a look back to demonstrate how reporting technologies have changed and to trace the key stages of FastReport VCL development in each version.

© 1998-2026 Fast Reports Inc.