English | 日本
PDF Java
Shopping CartContact Us
Knowledgebase
BCL easy PDF SDK

How do I convert TXT and RTF documents to PDF without installing MS Word?

Last Updated: 3/13/2014

You may occasionally want to print one of the officially supported file types without using the standard host application our SDK assumes will be present.  One of the most common instances of this is printing text documents and .rtf files without having Word installed on the machine.  Our SDK assumes that Office will be installed, and attempts to use Word to print .txt and .rtf files, even if Word is not installed.  However if you don't want to install Word our SDK can process .txt and .rtf files through Notepad or Wordpad instead.

In order to make use of this, you should make sure the application you want to use is set as the default application to open the particular file type.  Then switch your code to use Printer.GenericPrintJob.PrintOut().  GenericPrintJob is the most basic PrintJob object we have available.  It uses only the basic logic and does not have any assumptions or file type specific exceptions built into it.  It also has no special properties or different conversion methods. GenericPrintJob is affected by the PrinterSetting and PDFSetting objects just like PrintJob is, so you do not lose all control.

PDF SDK Knowledgebase
 
BCL
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.