• Contact
  • Company
  • Login / My Account
  • Shopping Cart (0)
Document Conversion Made Easy!
Peernet Menu
  • Products
      • Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG, etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • enterprise-licensingEnterprise Licensing for your Corporation
      • discounts-multiple-licensesDiscounts for Purchasing Multiple Licenses
      • distribute-bundle-peernet-softwareDistribute PEERNET Software Bundled with your Product
  • Purchase
      • Purchase Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • Purchase PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Purchase Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Purchase Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • peernet-online-store-purchase-optionsPurchase Options
      • peernet-software-license-levelsLicense Levels
      • peernet-software-purchase-resellerFind Resellers
      • peernet-software-sales-faqsSales FAQ
  • Learn & Support
        • peernet-help-centerTutorials
          • Learn the Basics or Go Beyond with Video Tutorials, FAQs and Guides

            At PEERNET we pride ourselves on providing the best support and the fastest response times in the industry.
          • Select Software Tutorials:
              • tiff-image-printer-iconTIFF Image Printer
              • raster-image-printer-iconRaster Image Printer
              • pdf-image-printer-iconPDF Image Printer
              • pdf-creator-plus-iconPDF Creator Plus
              • document-conversion-service-iconDocument Conversion Service
              • file-conversion-center-iconFile Conversion Center
              • peernet-reports-iconPEERNET Reports
        • peernet-software-faqsSales FAQ
          • Popular Topics

            Find all the answers you need to our most frequently asked questions.
              • Download & Install
                • How do I download software I already purchased?
              • Purchasing & Renewing
                • How do I purchase PEERNET software?
                • What license level do I need?
                • How do I add licenses to an existing serial number?
                • How do I renew my annual subscription?
              • Licensing & Operating
                • How do I activate my new PEERNET software?
                • How do I activate my software without an internet connection?
                • Where do I find my serial number?
                • How do I move my software to a new computer?
                • How do I update/upgrade my software to the latest release?
            • Read all Sales FAQs
  • Blog
  • Menu Menu

Batch Convert Text to PDF with Page Size Formatting

June 13, 2024/by Robert Massart

PEERNET is pleased to add a new batch convert text to PDF feature to Document Conversion Service. Our new converter intelligently detects the paper size and the ASCII, Unicode, or other character set needed for each text document. This ensures that the content is perfectly scaled and presented on the page. For those who require a more tailored approach, there are options for custom paper sizes, fonts, and word wrapping, providing flexibility and control over converting text to PDF.

  • Who Needs to Batch Convert Text to PDF?
  • Using the Text – Builtin Convert for Text Files
  • Convert Text to PDF When the Text File Has Formfeeds
  • Converting Text without Formfeeds to PDF
  • Setting the Text Page Size
  • Changing the Font and Font Size
  • Word Wrapping
  • Adding New Text File Extensions

Who Needs to Batch Convert Text to PDF?

Text documents are still a popular file format in use in the medical, legal, financial, and insurance fields. The need to batch convert these text documents to PDF is increasing as these industries transition to digital content and document management. This need will continue to grow as companies start incorporating AI and machine learning technologies for data and trend analysis and to facilitate administrative and other professional tasks.

Using the Text – Builtin Converter for Text Files

The new text converter, Text – Builtin, replaces our original technique that used Word to convert text files. This approach works but lacks customization. It can also require manual steps to handle non-standard page sizes and wide-format text files.

When you update to the latest version of Document Conversion Service, this converter is already enabled and ready to handle your text files. To check this, use the DCS Dashboard to go to DCS Settings, then Edit DCS Configuration. Set the Text – Builtin converter to Auto or On. If it was Off, you need to restart the Document Conversion Service to pick up the changes.

batch convert text to pdf with the built-in text converter in Document Conversion Service

Convert Text to PDF When the Text File Has Formfeeds

Text files have existed since the early days of computing and the advent of disk storage in the 1960s. They are still an essential way to store data today. During this era of dot matrix line printers, the need to manage printed output and be able to separate text content into pages led to the introduction of the ASCII form feed character.

This character, ASCII code 12 (0x0C in hexadecimal, FF in text editors), tells the printer to move to the top of the next page and continue printing. Form feeds became an integral part of operating systems, programming languages, and text editors for controlling the layout of printed text. It remains in use today.

When you convert text to PDF, the form feed character in your text file signals when to start a new page. Now that we know when to start a page, the next step is determining the page size needed to display our text.

Using the Courier New font at 10 points, we scan the text in the document to calculate the page size using the form feed as the end-of-page marker.  With our calculated page size, we look for the closest paper size match in the Document Conversion Service printer’s forms list. We use the matching page size when creating the PDF file. When no match is found, the default action is to use a Letter-sized page (8.5in x 11in) in the PDF file.

Convert Text to PDF For Text Without Formfeeds

When a text document has no form feeds, there is no indication of where a page break is supposed to be. In this case, the entire document is essentially a single page.

Using the Courier New font at 10 points, we scan the text in the document to calculate the closest matching page size in the Document Conversion Service printer’s forms list. Intelligent pre-sets control that this page size is not smaller than 8in x 8in. When there is no match, we split the text onto a Letter-sized (8.5in x 11in) page.

Setting the Text Page Size

The smart AutoDetect mode in our text converter means you don’t have to worry about the page size and cut-off text in your PDF files. Depending on the lines of text and how wide they are, we find a matching page size or default to a Letter-sized (8.5in x 11in) page.

In cases where you want to use a pre-defined page size, our UseSpecified mode allows you to set a custom page size, An additional mode, SizeToFit, uses the text and formfeeds, if any, to calculate a page size. There is no attempt to match a standard paper size with this setting.

Changing the Font and Font Size

The font and font size used to render your text to PDF affects your page size. The default font used is Courier New, and the default size is 10 points (about 1/14 of an inch tall). You can change both the font and the text size used.

Choose a fixed-width (monospaced) font for optimal results. Monospaced fonts use the same amount of space to display each character. Using the same space for each character is particularly useful for text documents containing tables and columns of data.

Word Wrapping

Word wrapping automatically shifts the remaining text to a new line after reaching the maximum number of characters per line. Three modes determine where the break in the text occurs when this shift happens.

  • None – Do not line wrap. When not line wrapping, any text that occurs past the maximum number of characters per line is truncated.
  • Plain – This wrap can occur in the middle of a word. There is no attempt to backtrack to find the last space between words to break at.
  • Word – wraps the text at the calculated number of characters per line. This mode backtracks to find the last space between words and breaks at the space when necessary.

Text documents that include form feeds wrap long lines of text using the None mode. A text document without formfeeds will default to Word mode. You can customize this to suit the format of your text files.

Adding New Text File Extensions

Most text documents have the file extension TXT, but many other types of files are also just text files. Log files, Excel Comma Delimited Files, XML files, HTML files, and programming source code are just a few types of files that are, in essence, just a text file. A good rule of thumb is if Notepad can open the file, it is a text file.

We’ve already mapped many common text file extensions to our Text – Builtin converter, and you can add as many more as you need.

To add a new text file extension mapping, go to the DCS Dashboard – DCS Settings – Edit File Extension Map. Scroll down to find the section of extensions for the Text – Builtin converter and add your new text file extension

What Do You Think?

Give it a try, and let us know what you think of our latest file converter. Your feedback is invaluable in helping us refine and perfect our software. We look forward to hearing from you!

We added several other goodies to this release. Visit PDF, Text and Cadd Converters, OCR Support, and a Dashboard to see what other new features we added.

https://www.peernet.com/wp-content/uploads/batch-convert-text-to-pdf-dcs-feature.jpg 800 800 Robert Massart https://www.peernet.com/wp-content/uploads/peernet-logo.png Robert Massart2024-06-13 13:00:002024-06-17 10:46:32Batch Convert Text to PDF with Page Size Formatting
  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports
Search Search

Recent Posts

  • PNSrv11Lib to PNSrv12Lib: Migration Made Easy
  • Migrating to Version 12: Compatibility Mode Quick Start Guide
  • Well Logs: Stitch PDF Pages into a Continuous TIFF Image
  • Dynamic Stamp Content
  • Convert to PDF: The Power of On-Premise PDF Creation

INTERESTING LINKS

Below are some interesting links for you! Enjoy your stay :)

RSS Feed Logo RSS Feed Logo Subscribeto RSS Feed

OUR PRODUCTS

  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports

LATEST NEWS

  • PNSrv11Lib to PNSrv12Lib: Migration Made EasyMarch 14, 2025 - 2:10 pm
  • Migrating to Version 12: Compatibility Mode Quick Start GuideMarch 14, 2025 - 2:09 pm
  • Well Logs: Stitch PDF Pages into a Continuous TIFF ImageMarch 14, 2025 - 2:08 pm
  • Dynamic Stamp ContentNovember 4, 2024 - 4:47 pm

BUSINESS INFORMATION

Toll Free: 1-800-883-7980 North America

Tel: 1-613-224-6894

Our office hours are Monday to Friday, from 0900 hrs to 1700 hrs, Eastern Standard Time.

Email Address: [email protected]
Copyright © 1997-2026. All rights reserved. Terms and Conditions | Disclaimer | Privacy Policy | Trademarks.
PEERNET® is a registered trademark of PEERNET Inc.
  • Link to Youtube
  • Link to Rss this site
  • Products
  • Purchase
  • Company
  • Contact
Link to: Batch OCR PDF – Make PDF Searchable Link to: Batch OCR PDF – Make PDF Searchable Batch OCR PDF – Make PDF Searchable Link to: Optical Character Recognition (OCR) with PEERNET Link to: Optical Character Recognition (OCR) with PEERNET Optical Character Recognition (OCR) with PEERNET
Scroll to top Scroll to top Scroll to top