Text to pdf conversion

Hi,

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

@rutuja.mahajan

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

1 Like

Hi,
How to set font folder for Aspose PDF?

@rutuja.mahajan

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

FontRepository.getSources().clear();
ArrayList<String> localFontPaths = new ArrayList<String>();
localFontPaths.add(dataDir + "customfonts\\");
FontRepository.setLocalFontPaths(localFontPaths);
FontRepository.reloadFonts(); 
1 Like

Hi,
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?

@rutuja.mahajan

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?

@rutuja.mahajan

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.

Hello, has this issue been fixed, yet?

@rutuja.mahajan

Sadly, no updates are made yet towards ticket resolution. Your concerns have already been recorded and we will surely inform you once some progress is made in this regard. Please spare us some time.

We are sorry for the inconvenience.