txt2pdf

developed by © SANFACE Software

Version 2.0 25th April 1999

What is txt2pdf?

txt2pdf is a very flexible PERL5 program. It's a converter from text files to PDF format files.
View the power of txt2pdf on the net!
Create your Peter Pan PDF on the fly! with Alex Catalogue
Read the PDFzone.com article on the project!
Why do you need txt2pdf?
SANFACE Software
SANFACE Software logo
Getting txt2pdf, Licence and Registration

txt2pdf is shareware
The txt2pdf source code is our company core business.
We trust you.
You can test text2pdf and modify it.
We'll send you a free registered copy for a good idea or txt2pdf modify.

You can't use a modify version of txt2pdf for production purpose.
You can't resell txt2pdf or a modify version of it without SANFACE Software authorization.
You can't copy part of it to include in your source without SANFACE Software authorization.

The txt2pdf 2.0 source code tar.gz
The txt2pdf 2.0 source code zipped
The txt2pdf 1.3 source code tar.gz
The txt2pdf 1.3 source code zipped
You can get the txt2pdf source code from www.pdfstore.com, too

txt2pdf 2.0 is shareware. The registration fee is $25 (US) every licence.
Buy five licences packet, one is free!
DescriptionPayment Options
One licence
Register NOW txt2pdf 2.0 via a SECURE SERVER at www.RegSoft.COM
SECURE MasterCard, VISA,American Express, Check, Fax, Voice
Five licences
Register NOW 5 txt2pdf 2.0 via a SECURE SERVER at www.RegSoft.COM
SECURE MasterCard, VISA,American Express, Check, Fax, Voice
The upgrade from txt2pdf 1.3 to txt2pdf 2.0 is only $10 (US) every licence.
txt2pdf 1.3 is shareware. The registration fee is only $10 (US) every licence.
Buy six licences packet, one is free!
One licence
Register NOW txt2pdf via a SECURE SERVER at www.RegSoft.COM
Register NOW txt2pdf via a SECURE SERVER at www.PdfStore.COM
Six licences
Register NOW 6 txt2pdf via a SECUR
E SERVER at www.RegSoft.COM
SECURE MasterCard, VISA,American Express, Check, Fax, Voice
If you want to register 10 o more licences contact SANFACE Software.
Remember: SANFACE Software is going to give you a free licence for every good idea or for every good modify.

Installing txt2pdf

  1. Create your personal txt2pdf.cfg file.
    You can change the value of lf_extra, tmpdir, author, creator, keywords, subject, title, paper, landscape, font, cols, lines, tab, pointSize, vertSpace, yellow, red, green, blue, bold, italic, bo_it, columns2, npage, border, allowinparse, beginfile and endfile variables.
    With lf_extra you can set how many extra characters are written for \n.
    NOTE: change to 1 for PCs (where \n => <CR><LF>) (Default 0)
    With tmpdir you can set the directory for the temporary files. You can use relative and absolute path. Default is ./
    It's better if you use the specific temporary directory of your system

          e.g. /tmp/  on UNIX systems
               /temp/ on Windows systems
               /desktop folder/temp on MacOS
    
    With author, creator, keywords, subject, title you can set the relative fields of PDF Info dictionary that provides information about the document.
    AuthorThe name of the person who created the document
    CreatorIf the document was converted into a PDF document from another form, this is the name of the application that created the original document
    KeywordsKeywords associated with the document
    SubjectThe subject of the document
    TitleThe document's title
    If the value of author, creator, keywords, subject is not known there are omitted. If the value of title is null, the file name is introduced.
    The default paper value is letter. You can use also A3 (or a3), A4 (or a3), A5 (or a5), widthxheight
    Default is portrait, if you want to swap to landscape you have to set landscape variable to 1 (Default 0).
    With cols you can set max chars per output line (default 80)
    With lines you can set max lines per output page (default (pageHeight-72)/vertSpace, pageHeight depends from paper select)
    With tab you can set the number of white space char for every tab (default 8)
    The default font value is Courier. You can use also Helvetica or Times
    With pointSize you can set the font point size (default 10)
    vertSpace is the distance between two lines (default 12)
    With yellow, red, green, blue you can set a file where you can list words you want to be colored yellow, red, green, blue in PDF output file.
    With bold, italic and bo_it you can set a file where you can list words you want to be marked bold, italic or bolditalic in PDF output file.
    With columns2 you can configure the conversion to 2-columns PDF files.
    With npage you can add page number in every page
    With border you can add a border in every page
    With allowinparse you can allow the parse
    With beginfile and endfile you can set a file where you can add the text you want to be added at the beginning or at the end of every file.

  2. How to configure yellow, red, green, blue and bold, italic, bo_it files.
    In these files you can insert a word list with PERL regular expression rules.
    e.g. if you introduce in red.cfg the word end, every word in the input file what contain end will become red in PDF output file. If you introduce ^end$, only the end word will become red.

  3. Inside beginfile and endfile files you can use the a few markers that you can enable with the option allowinparse.
    This is the list

    You can insert one inside another e.g. [!red] [!italic] Red italic begin file [!/italic] [!/red]
    Remember:

  4. Try to start txt2pdf. Enter in Tests directory and digit:
    ../txt2pdf -c test.cfg test.txt
    test.pdf is the PDF output file
Syntax

txt2pdf [-options] files
where options include:
    -help                        print out this message
    -configure file              default txt2pdf.cfg
    -landscape
    -2                           format in 2 columns
    -paper format                default letter, valid formats: A3 (or a3),
                                 A4 (or a4), A5 (or a5), widthxheight
    -npage                       add page number
    -recursive directory         scan recursively the directory
    -match     files             match different files ex. *.pdf, a?.*
                                 (require -recursive option)
    -border                      border line
    -allowinparse                parser
    -verbose                     verbose

list:
    with list you can use metacharacters and relative and absolute path name
Other Features

What's new in this version
Here you can find an exhaustive history file

Links around the world to txt2pdf