Print Page | Close Window

Clipping paths

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1169
Printed Date: 05 May 25 at 10:50AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Clipping paths
Posted By: reaanb
Subject: Clipping paths
Date 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




Replies:
Posted By: reaanb
Date 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.


Posted By: reaanb
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk