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!
where is getFillColor? |
Post Reply |
Author | |
toran
Beginner Joined: 20 Feb 12 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 01 Jun 12 at 5:12PM |
I need to find out the current background color of a pdf document. There is a setFillColor function, but I can't find the setter. Is there such a thing or the white color is assumed to be the default background color unless changed?
Thanks
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Toran!
There isn't a get available. Render the page to a thumbnail-jpg and then check few pixels near the frame - so you can get the color. Not a save method ;-) Cheers, Ingo |
|
toran
Beginner Joined: 20 Feb 12 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Thanks, Ingo!
Interesting approach. :) Do you think that missing getter is because of Pdf specs ?
|
|
edvoigt
Senior Member Joined: 26 Mar 11 Location: Berlin, Germany Status: Offline Points: 111 |
Post Options
Thanks(0)
|
Hi Toran,
that's no question of PDF-specifications. What you call the PDF-background does not exists as an single, well defined object. What is the background (and his color), if you fill it as half with any color and on the other half with an image? So it can give only the answer for the question: which color has a pixel at position x,y? And inside this question is a parameter, the size (scale) used for rendering. So what Ingo said is the only possible (but very unsure) approach. The problem is the question, not the answer. Cheers, Werner |
|
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