l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2007 Mar 20 23:47

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] How to tell if a pdf is text or image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] How to tell if a pdf is text or image?

> Well, I don't actually need the text, I just need to know if it is text.
> The idea is that once I separate them, all the ones that are images can 
> then be ocr corrected to text versions.
> So my idea was either a yes/no answer or to say something like, if the 
> document is more than 20%(arbitrary) text consider it text.

Right, but presumably you wouldn't get any text from ps2ascii if the
document were just images, making it an effective test for the scenario
you have described. Although I think your idea of using pdffont would be
equally effective and possibly easier to use in a script.

> So far pdffont tells me what fonts I have, and if it's an image I get 
> nothing after the header lines. So that might work if I write a program 
> that makes a temp pdffont and sees if it's longer than just the headers.

Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

Attachment: signature.asc
Description: Digital signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.