I bought a pdf2txtoctcmd. I need to generate an input PDF file to an output PDF file adding the page number so I did this command buy nothing occur.
pdf2txtocr.exe -ocr -ocrmode 1 -text “PageText %PageNumber% of %PageCount%” C:\sodimac\out\prueba.pdf C:\sodimac\out\out.pdf
out.pdf is the same file as prueba.pdf
If you wish include these values into OCRed PDF file, you may use our PDFStamp Command Line to stamp these values into PDF pages, PDFStamp Command Line can be downloaded from this web page,
after you download it, you can run following command line to add “PageText %PageNumber% of %PageCount%” to PDF pages,
pdfstamp.exe -pdf D:\test.pdf -o D:\out.pdf -a “PageText \p of \c”
You may also look at more command line options from this web page,