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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Problem with Fill Color
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with Fill Color

 Post Reply Post Reply
Author
Message
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Fill Color
    Posted: 01 Sep 18 at 2:28PM
Can anyone see where I am going wrong here as if if I do more than a single color I get a grey ?

PDF.SetFillColorCMYK(20,100,30,0);
PDF.DrawBox(L, T, W, H, 1); 

if I do 

PDF.SetFillColorCMYK(0,100,0,0);
PDF.DrawBox(L, T, W, H, 1); 

Then I get a magenta box as expected.

Thanks
Back to Top
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Posted: 04 Sep 18 at 2:41PM
We have made a workaround for this issue, only possible because we are using a box. We have replaced the Box with a pretty fat Line and this displays the colour correctly. Not Ideal, but will do for now.
Back to Top
Erhardt View Drop Down
Beginner
Beginner
Avatar

Joined: 11 Sep 18
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Erhardt Quote  Post ReplyReply Direct Link To This Post Posted: 18 Sep 18 at 11:13AM
How do you set up a line that's fat enough to look like a box though?
Back to Top
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Posted: 18 Sep 18 at 11:22AM
PDF.MeasurementUnits(0);
PDF.SetLineWidth(58);
Back to Top
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Posted: 18 Sep 18 at 1:12PM
By the way the values shown in the above example are divided by 100 in code, so 

PDF.SetFillColorCMYK(0.2,1,0.3,0);
Back to Top
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Posted: 19 Sep 18 at 11:31AM
Ok, let's just forget this nonsense shall we? Rookie error on my part. it's all fine.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store