Determine if incoming PDF has bitmap within?

Discussion for the End User use of OCR in PDF-XChange Editor and Viewer

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Determine if incoming PDF has bitmap within?

Post by whoit »

Hi -

I'm trying to create a user option whereby the OCR'ing of a incoming PDF can be skipped if the PDF
does not contain any BITMAPs.

In other words, and incoming PDF that is all text would be skipped.

Is there a way, using any part of the Tracker library, to determine if the incoming PDF contains
a bitmap?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Determine if incoming PDF has bitmap within?

Post by Ivan - Tracker Software »

The only way I can see is to analyze content of every page (or less precise method - just to analyze resources used by page's content and descendant XForm and annotations) of incoming document.
New Core API SDK (or Editor SDK) can be used for that.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Post Reply