Print Page | Close Window

clipping a pdf file to user clip size

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=2368
Printed Date: 04 Apr 26 at 7:52PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: clipping a pdf file to user clip size
Posted By: peterbh
Subject: clipping a pdf file to user clip size
Date Posted: 10 Aug 12 at 2:48AM
Is there any mechanism to clip a pdf file to a non standard clip box ?
I am using QuickPDF library to perform imposition and place PDF images at different points on a page.
If the space reserved for an image is different to the pdf file, I may need to clip the image to prevent overlapping for instance. I'm aware that imposing has ability to scale the image , but this is not always desirable
Is there any mechanism to perform clipping to a user specified clip size ?
TIA
Peter



Replies:
Posted By: AndrewC
Date Posted: 20 Aug 12 at 12:41PM

You can set the page crop box which is a rectangular region that defines the clipping rectangle for a PDF.

  QP.SetPageBox(2, 1, 100);  // Set crop box left to 100 points

   http://www.quickpdflibrary.com/help/quickpdf/SetPageBox.php - http://www.quickpdflibrary.com/help/quickpdf/SetPageBox.php



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