large list
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=2965
Printed Date: 15 Nov 25 at 4:35PM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: large list
Posted By: Reed
Subject: large list
Date Posted: 04 Sep 14 at 8:08PM
|
I'm using the Table functions to export a rather large list (both width and height) to PDF. I was able to get the list to break across pages (height-wise), but what I would really like to do now is shrink the width of the report to fit the width of the page (probably meaning everything is smaller). Is there a way to make that happen easily? Thank you!
|
Replies:
Posted By: erico
Date Posted: 25 Sep 14 at 6:55PM
I can think of 2 methods that would not be too difficult. IF the "longest line" is available to you, calculate the font size you need to make it fit in a single page width and then pass that value as a parameter to your function.
If that is not known ahead of time, then you could output as you are now, creating wider pages. Then use "CapturePage/DrawCapturedPage" and draw those pages onto pages of the desired size. This will shrink the text by the ratio of the original page to the drawn page, however, and the result may not be easily read if the factors are large, or if the x/y ratios differ signficantly (you may end up with very thin, tall text)
|
|