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!
large list |
Post Reply |
Author | |
Reed
Beginner Joined: 04 Sep 14 Status: Offline Points: 2 |
Post Options
Thanks(0)
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!
|
|
erico
Senior Member Joined: 24 Sep 14 Location: Minnesota USA Status: Offline Points: 51 |
Post Options
Thanks(0)
|
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) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store