A-PDF :: Affordable PDF Tools

A-PDF Text Extrator Command Line

A-PDF Text Extractor Command line (PTCMD) is a Windows console utility that extracts plan text from PDF files based on pages. PTCMD is a standalone program. It does not need Adobe Acrobat. A trial version for PTCMD is NOT available. Anyway, you can download the free GUI version.

Get now
Only $35.
100% unconditional 30 Day Money Back Guarantee
Once you order goes through, you will be provided with a link that allows you to download the full version.

 

USAGE

PTCMD <Source> [<Output File>] [Options]

Parameters:
  <Source>: The PDF file to be extract.
  <Output File>: The output text file.
Options:
  -W<password>              : Password of the pdf file if application.
  -B<BeginPage> and -E<EndPage>: Range of page number.
  -P<Extract option>        : Select to extract only odd pages or even pages 
                              or all pages. Default is All. Options available:
                                All, Odd, Even
  -H<Header> and -F<Footer> : Some special variants can be put at Header or 
                              Footer area of every page to display page 
                              information. Following are the variants:
                              &p        Current page number
                              &a        All page count
                              &f        PDF file name with full path.
                                        Such as c:\pdfs\my.pdf
                              &n        PDF file name. Such as my.pdf
                              &d        Extracting date

Return Code:  
  0: Extract successfully.
  1: Extract failed.
  2: Parameters error.
  3: Source file not found.
  4: Load source file error.
  5: Output file error.
  6: Decrypt source failed.
  

EXAMPLES:
                   
PTCMD my.pdf
PTCMD c:\pdfs\my.pdf c:\pdfs\out.txt -W"P@ssw0rd" -B4 -E20 -Peven
PTCMD "c:\pdfs\my.pdf" -H" http://a-pdf.com" -F" =Page&p="
 

See also