Announcement

Collapse
No announcement yet.

Windows, PdfToText.exe + sort

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows, PdfToText.exe + sort

    Hello,

    I want to open PDF and convert it to sorted lines. Otherwise it will show false positives when rows are in wrong order.

    I was able to sort my PDF convert text in Linux with this:
    Code:
    pdftotext %s - |sort > %t
    This works like a charm and I don't see many lines if I show only diffs.

    I was not able to do the same in Windows.

    I think this should work, but no:
    Code:
    PdfToText.exe%s - |sort > %t
    Is somebody able to help?

  • #2
    Hello,

    The command line you are attempting on Windows does not look like a valid Windows command line. You can test external to BC4 using the Windows command prompt, and a literal file name input.pdf for the source, and temp.txt for the output, to see if it can generate results.

    I was able to make a pdfsort.bat file, which contained:
    "c:\program files\beyond compare 4\PdfToText.exe" %1 %2
    sort %2 /o %2

    And testing on the command line. Then set the External Conversion in BC4 to:
    pdfsort.bat %s %t
    Disable Editing enabled.
    Aaron P Scooter Software

    Comment


    • #3
      Thank you Aaron. I was able to do what I wanted to achieve.

      Comment

      Working...
      X