Tag Info

New answers tagged

0

As you can see at this post: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/270046/comments/28 SOLVED by the easiest way (Disabling cups apparmor profile) Run these commands ... sudo mv /etc/apparmor.d/usr.sbin.cupsd /etc/apparmor.d/disable sudo /etc/init.d/apparmor restart


1

Have you looked into PDF Content Comparer? There are command line options which should let you automate the process. You could run some sort of logic on the difference log it creates to see how similar they are. Failing that you might try splitting the PDF's into multiple files temporarily and comparing them that way. You'd probably still have duplicates ...


-1

There is an Linux application, called recoll. It can perform the task, but only for pdfs with text layer.


4

The only images in that file are the front and back covers, the rest is normal text, not hidden behind a scanned image. Another indication that this is typeset text and not OCR-ed is that special font characters are correct selectable despite their font and them being typeset as e.g. superset and also text in images where OCR normally gets confused. ...


3

If the original image are JPEG files, you could use pdfimages option -j. From man pdfimages: -j Normally, all images are written as PBM (for monochrome images) or PPM (for non-monochrome images) files. With this option, images in DCT format are saved as JPEG files. All non-DCT images are saved in PBM/PPM format as ...


1

There are multiple ways to get rid of the OCRed text in the file. Export the scanned images from the PDF and recombine them. You can use pdfimages for the extraction (from the poppler-utils package) and convert (from imagemagick) to convert them back: pdfimages toc.pdf toctmp convert toctmp*.pbm newtoc.pdf Print to PDF (with PDF support from cups-pdf) ...


1

I'm not expert of pdf format, but from your example file I believe the unwanted parts are objects 17, 33 and 49. To remove those objects I would use pcregrep in the following way: pcregrep -aMv '(17|33|49) 0 obj(.|\n)*?Hello(.|\n)*?endobj' new2.pdf > new3.pdf Here -a option is needed to treat binary file as text, -M to match multiline and -v to invert ...


1

pdfcrop first removes the whitespace and then adds the margin (or removes space, if the values are negative). This makes it very hard to control the exact amount of space being cropped. You are better off using pdfcrop.sh which allows you to specify how much is trimmed from the outer edges of the page.


1

Probably yes - there is hocr2pdf tool (from ExactImage) available, but I haven't tried it to be able confirm Some notes: if you just want to make searchable PDF you can use simpler GUI programs like, gscan2pdf and others, which allow pdf input. You can also make searchable PDF with recent versions of tesseract. In html file you can export with pdf2html ...



Top 50 recent answers are included