Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jul 17, 2019 2:03 am

Is there any way convert txt file to pdf file?
Txt file is split by page break symbols.

hitech
 
Posts: 11
Joined: Mon Mar 18, 2019 1:17 pm

Wed Jul 17, 2019 5:56 am

Hello,

Thanks for your inquiry.
Our Spire.PDF (at present the latest version is Spire.PDF Pack Version:5.7) supports converting a .txt file to a PDF file, you can refer to the tutorial (Convert Text to PDF) to test your case. If there is any question after trying, please share us with your text file as well as your desired effect of output to help further look into it. You could send them to us via email([email protected]).

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1536
Joined: Wed Apr 25, 2018 3:20 am

Thu Jul 18, 2019 8:52 am

谢谢你的回复,我们的TXT文件包含了多个页面,用分页符进行分隔的。
使用提供的代码转换为PDF时,分页符被忽略了,是否可以根据分页符号,
把TEXT文件逐页进行转换呢?

hitech
 
Posts: 11
Joined: Mon Mar 18, 2019 1:17 pm

Thu Jul 18, 2019 9:42 am

Hello,

您好,感谢回复。
为了我们进一步调查并提供准确的方案,请提供你的.txt 文件。您可以通过邮件([email protected]) 发送给我们。提前感谢。

Sincerely,
Lisa
E-iceblue suppor team
User avatar

Lisa.Li
 
Posts: 1536
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF