Print Page | Close Window

Wrapping text

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=3555
Printed Date: 22 Nov 24 at 5:46PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Wrapping text
Posted By: bpeikes
Subject: Wrapping text
Date Posted: 23 Apr 18 at 5:58PM
I'm fairly new to PDF generation. We have a report that we are building, and I'm trying to figure out if there is a way to have Debenu PDF Library wrap text while breaking on spaces.

For example, I want to write out a list of comma delimited names on the page which might be wider than the page. Right now, I have a ton of logic to estimate how much to put on a line, and then I have to do things like keep track of the font height, and remember to insert new pages.

Does this all have to be done by hand?



Replies:
Posted By: Ingo
Date Posted: 23 Apr 18 at 8:39PM
Hi,

there are functions like DrawMultilineText, DrawWrappedText and similar ones...
Here's the section with all relevant functions regarding text output:
http://www.debenu.com/docs/pdf_library_reference/Text.php

Here are links from other users having problems with text output.
Reading the samples or code snippets they've posted will give you an idea how to solve your task:

http://www.quickpdf.org/forum/forum_posts.asp?TID=547&KW=wrap+text&PID=2422&title=drawwrappedtext-longer-than-one-page#2422

http://www.quickpdf.org/forum/forum_posts.asp?TID=2426&KW=wrap+text&PID=10203&title=does-getwrapped-text-work-with-unicode-text#10203

http://www.quickpdf.org/forum/forum_posts.asp?TID=3475&KW=wrap+text&PID=13815&title=wrapped-text#13815


Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: is_it_tennant
Date Posted: 22 May 18 at 3:52PM
It's a quite easy thing to do while using QuickPDF, but I feel you, its interface could be puzzling for some people, especially for newbies. The very feature you need according to the description you provided is DrawWrappedText, it can easily be found by the link Ingo posted. If you aren't able to do that nevertheless, you may try to add this through some simpler application, like this one as an example of edition of real estate forms  https://boston-real-estate-board-form.pdffiller.com/" rel="nofollow - https://boston-real-estate-board-form.pdffiller.com/  and other things. But I think that very function will be enough



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