PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Nov 20, 2017 12:48 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jun 27, 2017 7:46 am 
Offline
Forum Newbie

Joined: Tue Jun 27, 2017 7:42 am
Posts: 2
Hello Guys, I have a general question about count color and b/w pages from pdf ? In brief about this, I have implemented this functionality using imagick. What imagick(imagemagic) do is first convert each of pdf pages into image and checking into image whether colored or black/white.

It executed one command in for loop according to pdf pages which cause server down.

Please anyone can tell me solution of this question except IMAGICK.

I even used ghostscript but it counts gray page as color page so its not as much useful also used Verypdf and setasign but they are costly.

Please tell me solution over linux server that can count pages directly using command over linux server. Thanks. Gopal


Top
 Profile  
 
PostPosted: Tue Jun 27, 2017 7:56 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13443
Location: New York, NY, US
The PDF is a text file. Have you thought of searching it for color tags?

_________________
(#10850)


Top
 Profile  
 
PostPosted: Wed Jun 28, 2017 12:53 am 
Offline
Forum Newbie

Joined: Tue Jun 27, 2017 7:42 am
Posts: 2
Pdf if either text or image.
I don't know what to do with that.


Top
 Profile  
 
PostPosted: Sat Jul 01, 2017 3:34 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13443
Location: New York, NY, US
Search for PDF tags that set color. Any embedded images would need to be scanned for color pixels.

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: LinensRange786, Yahoo [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group