How to add or stamp page numbers to the OCR generated PDF file by PDF to Text Converter Command Line application?
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
Thanks for your message, "PageText %PageNumber% of %PageCount%" values will be inserted into OCRed text file only, they can't be inserted into OCRed PDF file.
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,
- Garbage characters in stamped PDF file
- How to stamp Unicode text with opacity using pdfStamp.dll?
- How to activate PDF stamper v2.3?
- How to convert from PCL files to PDF files and add barcode text stamp to PDF files?
- Does pdfstamp.exe has an option (that Acrobat DC has) to shrink page contents (or resize paper size) to a PDF document?
- PDF Stamper Command Line text with Underline, Bold, Italic attributes
- PDF Stamp SDK: What to install PDF Stamp SDK into our system?
- How to use PDFStamp COM Interfaces? How to install PDFStamp SDK into my system?
- How to stamp PDF files with the documents’ title, author, copyright and page number(s) information?
- Make PDF Stamp with Transparent Background, Create and Insert Transparent Signature Stamp into PDF file, Transparent Signature Stamps for PDFs, Transparent Barcode Stamps for PDFs
- Is there a C++ library to extract text from a PDF file?
- Batch convert Fax TIFF files to OCR searchable PDF files
- Automatically Align Text Columns in Table, Convert PDF to Text with Table Column Alignment Arithmetic, "Non-Line Table Detection Arithmetic" and "Table & Cell Analysis Arithmetic", PDF to Text with Right Aligning Text, Align columns in ASCII file
- Command Line Tool for Extracting Text Coordinates in PDF
- Compare "Image to PDF OCR Converter Command Line" and "PDF to Text OCR Converter Command Line" software