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 - Query about RenderPageToDC
  FAQ FAQ  Forum Search   Register Register  Login Login

Query about RenderPageToDC

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


Joined: 19 Nov 14
Location: London
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ChrisA2107 Quote  Post ReplyReply Direct Link To This Post Topic: Query about RenderPageToDC
    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
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