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 - Clipping paths
  FAQ FAQ  Forum Search   Register Register  Login Login

Clipping paths

 Post Reply Post Reply
Author
Message
reaanb View Drop Down
Beginner
Beginner


Joined: 07 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote reaanb Quote  Post ReplyReply Direct Link To This Post Topic: Clipping paths
    Posted: 07 Aug 09 at 9:40AM
I'm trying to create clipping rectangles around text, but can't seem to get it right.  Any information on using clipping paths would be appreciated.

If I clip a fixed area, e.g. half the page, it works as expected.  If I draw my paths instead of clipping them, the rectangles are in the correct position.  But if try to clip around text, most of the text is missing.

Here's a snippet of the code I'm using.

pdfdoc.StartPath X1, Y1
pdfdoc.AddLineToPath X2, Y1
pdfdoc.AddLineToPath X2, Y2
pdfdoc.AddLineToPath X1, Y2
pdfdoc.ClosePath
pdfdoc.SetClippingPath

Back to Top
reaanb View Drop Down
Beginner
Beginner


Joined: 07 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote reaanb Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 09 at 9:58AM
Update: It seems to only use the first clipping path per page.  Is that correct?  I'd REALLY like to be able to set arbitrary clipping paths.
Back to Top
reaanb View Drop Down
Beginner
Beginner


Joined: 07 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote reaanb Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 09 at 10:27AM
Solved: I just had to check Adobe's PDF reference.  Save the graphics state before clipping and load it when done.
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