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!
Multiple PDF pages from long Unicode String |
Post Reply |
Author | |
DevTech
Beginner Joined: 17 Sep 19 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 17 Sep 19 at 10:28PM |
I'd like to feed a long (multiple pages worth) string into
qp->DrawTextBox(30,30,600,700, sLongString.w_str(), 1); and have it create as many PDF pages as needed. But it only adds text to one page. Even if i use something like qp->NewPages(5); Is this possible? PS. Ive tried this too qp->DrawText(30,300, sLongString.w_str()); Thanks!
Edited by DevTech - 17 Sep 19 at 10:28PM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(1)
|
Hi Dev,
the library (and i think all the competitors as well) and the filetype pdf is page based. What you can do is separate the long text into parts with your own algorithm and then try it again but "page by page". Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(1)
|
Since I see you are not using wrapping, DrawTextBox (with option 1) returns the number of lines actually inserted in the box, so you should be able to strip these off your string and put the remainder on a new page, until you are done. There are functions to determine the extent which would be inserted on wrapped and HTML text, but it's then a little harder to work out where to break your text in this case.
|
|
DevTech
Beginner Joined: 17 Sep 19 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
That's a great idea tfost. Thank you!
|
|
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