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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - TMemo to PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

TMemo to PDF

 Post Reply Post Reply
Author
Message
Luke View Drop Down
Team Player
Team Player
Avatar

Joined: 13 Aug 10
Location: USA
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Luke Quote  Post ReplyReply Direct Link To This Post Topic: TMemo to PDF
    Posted: 23 Mar 11 at 3:50AM
I have 5 TMemo fields that store a variable amount of plain text data. Is there an "easy" way to convert the text to PDF? Theoretically a memo field could have more than 1 page worth of information and I need to start each memo field after each other, i.e. no automatic page breaks after each field.

TIA.
Luke M. Miller

ResCorSoft, Inc.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Mar 11 at 6:55AM
Hi Luke!

There's no automatic way inside QuickPDF.
Why should it be inside (each language is a bit different)?
Put your memo-fields in a stringlist.
Get the number of stringlist entries.
Check how many rows you want to have on each pdf-page.
At least use DrawText or something similar from QuickPDF.

Cheers, Ingo

Back to Top
Luke View Drop Down
Team Player
Team Player
Avatar

Joined: 13 Aug 10
Location: USA
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Luke Quote  Post ReplyReply Direct Link To This Post Posted: 23 Mar 11 at 7:38AM
Thank you for the quick replay. Additional question:

Is there any way to tell how many rows will fit assuming that I use the same font and font size for all rows?
Luke M. Miller

ResCorSoft, Inc.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Mar 11 at 12:02PM
Hi!

You have to do your own algorithm regarding this case.
You know the dimensions (pixels) of your page.
You can get the used font dimensions.
Let's do some math ;-)
An idea: What about the html-textbox-functions with
wrapped text in QuickPDF? Perhaps you should investigate
there... see the online reference.

Cheers, Ingo


Edited by Ingo - 23 Mar 11 at 12:04PM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store