Determine if incoming PDF has bitmap within?

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

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

Post Reply
Posts: 271
Joined: Tue Jul 07, 2015 3:30 pm

Determine if incoming PDF has bitmap within?

Post by whoit » Mon Sep 14, 2015 5:02 pm

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?

Ivan - Tracker Software
Site Admin
Posts: 3617
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Determine if incoming PDF has bitmap within?

Post by Ivan - Tracker Software » Tue Sep 15, 2015 10:31 pm

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