Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
PDF preflight |
Post Reply |
Author | |
deus
Beginner Joined: 29 Mar 07 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 29 Mar 07 at 5:48AM |
Hi All ,
Im using iSED library for color space detection of the PDF's. In other words i want to make a "simple" logic that will decide whatever the pdf is in color or black/white. I don't know how to achive this? I doubt if iSED library is able to extract that info from the pdf correct me if im wrong.
Thanks in advance
Deus
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Deus!
You're right. That's not possible with QuickPDF. But ... To get the color schemes you can use this (Delphi): Edit1.Text contains the filename... var textcomplete : String; fs : TFileStream; // . . . FileSetAttr(Trim(Edit1.Text), faArchive); // . . . textcomplete := ''; fs := TFileStream.Create(Edit1.Text,fmOpenRead+fmShareDenyWrite); try SetLength(textcomplete,fs.Size); fs.Read(PChar(textcomplete)^,fs.Size); finally fs.Free; end; // . . . If Pos('/Device', textcomplete) > 0 Then begin cscheme.Text := System.Copy(textcomplete, Pos('/Device', textcomplete) + 7, 4); cscheme.Text := Trim(cscheme.text); end else cscheme.Text := 'Nothing'; |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store