Print Page | Close Window

RenderPageToDC with SetRenderDCOffset

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=3209
Printed Date: 03 Jul 25 at 2:11PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToDC with SetRenderDCOffset
Posted By: s.meyer
Subject: RenderPageToDC with SetRenderDCOffset
Date Posted: 19 Nov 15 at 9:53AM
Hello!

I'd like to output a PDF by RenderPageToDC not at position (0,0) but moved to (x,y). If I use SetRenderDCOffset(), the output is moved correctly, but cut at the unmoved former borders. If I move the position e.g. by 100 pixels right to (100,0), there are missing 100 pixels on the right side! Only the white background is output completely and correctly...

What am I doing wrong? I use the Delphi-Source-Edition 11.12 with Delphi 2010 und Windows 7.

Many thanks for your help

 




Replies:
Posted By: Sebaestschjin
Date Posted: 11 Mar 16 at 4:12PM
Well, the topic is a bit older now, but apparently I have the same problem.
We implemented a Document-Viewer in our application using QuickPDF and the RenderPageToDC-Method. Until now we used Library-Version 8.16 and everything works fine. The SetRenderDCOffset-Method is called when the user drags the mouse on the document, so that the position moves.

However I'm currently trying to update the Library to the recent version 12.12 and there the same problem as s.meyer mentioned can be seen. The paper background moves correctly, but the content is cut at the old borders. I tried to manipulate the RenderCropType and PageBoxes, but so far there's no option I found that fixes the problem. Is there some new option that has to be set in order for this method to still work correctly?

Help will be greatly appreciated



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