Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3409

TextToPDF drops leading spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.10, 1.8.12, 1.8.13, 2.0.1, 2.0.2, 2.0.3
    • 1.8.13, 2.0.3, 3.0.0 PDFBox
    • Utilities
    • AIX Version 7

    Description

      We want to use TextToPDF in batch command line mode to convert legacy reports which assume a mono-spaced font, but the PDF files created ignore all leading spaces. Obviously, this messes up column alignment. We can't use the tool without a fix for this. Or is there a parameter we can pass? Here is the command line we are using: java -jar pdfbox-app-1.8.10.jar TextToPDF -standardFont Courier -fontSize 6 gprod.pdf gprod.txt.

      I tried downloading 2.0.2, but it is stuck at "WARNING: Building on-disk font cache, this may take a while".

      P.S. I am also submitting a second ticket (PDFBOX-3410) regarding the need for orientation control in TextToPDF. Most of our old legacy reports are 128 characters wide and without a Landscape option, they come out wrapped into illegibility.

      Attachments

        1. gprod.pdf
          4 kB
          Marc Stuart
        2. gprod.txt
          23 kB
          Marc Stuart
        3. gprod-better.pdf
          6 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              marc.stuart@infor.com Marc Stuart
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: