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!
![]() |
Clipping paths |
Post Reply ![]() |
Author | |
reaanb ![]() Beginner ![]() Joined: 07 Aug 09 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
reaanb ![]() Beginner ![]() Joined: 07 Aug 09 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
reaanb ![]() Beginner ![]() Joined: 07 Aug 09 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Solved: I just had to check Adobe's PDF reference. Save the graphics state before clipping and load it when done.
|
|
![]() |
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