We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text to pdf conversion


Can we convert .txt file to PDF through Aspose using Java code?


Please check below documentation article that explains how to convert a .txt file into PDF using Aspose.PDF for Java:

1 Like

How to set font folder for Aspose PDF?


You can use below code snippet to set font folder in Aspose.PDF:

ArrayList<String> localFontPaths = new ArrayList<String>();
localFontPaths.add(dataDir + "customfonts\\");
1 Like

Using Aspose Pdf I have converted texts file to Pdf and one of the text file not converting properly.
Can we align the column text same as input text file? Column_Alignment.zip (395.1 KB)


We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-42522

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Any update on this? Will there be any code solution?


The ticket has recently been logged in our issue management system. We will definitely look into its details and as soon as it is investigated, we will share updates with you. The solution to this requirement can be a new property in the API to handle such formatting from the .txt file. Nevertheless, we will let you know as soon as we make some progress towards ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

I just wanted to know if it has any quick solution, but yes that explains. Thank you.