New answers tagged

0

Here is my regex attempt. Replacement happens in-place so make a copy of your document before you start. This variation works when the colour array is present: $ perl -pi -e 's/(\/Type.*\/Annot.*\/Subtype.*\/Highlight.*\/C\s*\[)[^]]*]/${1}0.5 0.5 0.5]/' document.pdf This one is for when the colour array is not specified (which defaults to black): $ perl ...


4

There are many ways to generate a banner page pdf. Here's one using groff: declare -a files del i=1 for file in file1.pdf file2.pdf file3.pdf do echo -e '.ft H\n.ps 30\n.vs 35\n.sp 10c\n.ce\n'"$file" | groff -Tps | ps2pdf - - >/tmp/title$i.pdf files+=(/tmp/title$i.pdf "$file") del+=(/tmp/title$i.pdf) let i=i+1 done pdfconcat -o /tmp/...


0

You could try abiword software. e.g: abiword --to=doc example.pdf


1

You need to extract the text with optical character recognition program (OCR). This should give you an overview what is available under linux https://help.ubuntu.com/community/OCR .


0

Check out Intisign. Free by the Ecuadorian Goverment. https://www.eci.bce.ec/web/guest/intisign-firma-archivos-y-pdf It can sign and check signatures of pdfs. Additionally, it supports time stamping.


1

Wildcard matches are sorted in lexicographic order, so 10 is between 1 and 2, not after 9. To sort matches with numbers in numeric order, use zsh and its n glob qualifier pdfjam *.jpg(on) Or (still zsh-only) set the numeric_glob_sort option: setopt numeric_glob_sort # this can go in your ~/.zshrc pdfjam *.jpg If all your files have a number of the ...


3

A utility that seems to work quite well with handling ansi escapes and input line editing from a typescript is ansi2html.sh which obviously generates html. You can either view this output in your browser and use its printing features, or, if you dont mind losing the colours, convert the html back to simple text with no escapes, eg with ansi2html.sh <...


3

There's two choices: replay the script (with pauses, even via XOFF/XON), and make screenshots which some tool may convert into PDF strip the control sequences from the file, leaving a plain-text file that can be converted into PDF. Generally I've done the latter; both have their pitfalls. When making screenshots, you may not get exactly the picture you ...


0

The counterpart of script(1) is scriptreplay(1): DESCRIPTION This program replays a typescript, using timing information to ensure that output happens at the same speed as it originally appeared when the script was recorded. Also, scriptreplay provides option to speed up/slow down the replay. Thus, you can't just print it. You could ...


0

Here is a quick script for search pdf in the current directory : #!/bin/bash if [ $# -ne 1 ]; then echo "usage $0 VALUE" 1>&2 exit 1 fi echo 'SEARCH IS CASE SENSITIVE' 1>&2 find . -name '*.pdf' -exec /bin/bash -c 'pdftotext "{}" - | grep --with-filename --label="{}" --color "$0"' $1 \;



Top 50 recent answers are included