Print Page | Close Window

Query about RenderPageToDC

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=3026
Printed Date: 22 Nov 24 at 10:59PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Query about RenderPageToDC
Posted By: ChrisA2107
Subject: Query about RenderPageToDC
Date Posted: 09 Dec 14 at 4:28PM
I am using this in .Net, creating a Bitmap, Graphics object and passing the DC for this to DARenderPageToDC, which all works fine.

To determine the size of the Bitmap to create, I was using DAGetPageWidth & DAGetPageHeight.  However in some situations, this was resulting in the page being rendered to just part of this image leaving a thick black border on the bottom and right hand edges.

After investigation, I have discovered that this is because one of the various other measurements CropBox, BleedBox, ArtBox, ... is being used for rendering the page and that for some images these are smaller than the actual page size.

I am assuming that it is the CropBox, but am looking for confirmation, so if anyone knows for certain?

Thanks



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