Print Page | Close Window

Table Cell Alignment

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3141
Printed Date: 05 May 24 at 9:33AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Table Cell Alignment
Posted By: mdgodfrey
Subject: Table Cell Alignment
Date Posted: 24 Jun 15 at 5:07PM
I am having a problem with table cell alignment being inconsistent and in general height requirements before table cells will paint text.

My issue is concerning tables with specified row heights.
I am trying to squeeze rows into as small of space as possible and I am having two problems.

1. A cell at some specified heights will allow left aligned text and yet center or right alignment causes the text to disappear.  In my case a row height of 4mm will show left aligned text. With center or right alignment the text disappears until I change the height to 4.8. This is with all padding turned off btw. This seems like a bug.

2. Cell text seems pretty restrictive just in general. There is still rooms in cells but tables want to drop it if it is squeezed at all. I can write text over the table and inside the cell and there is plenty of room. But the table doesn't like it. This is not a bug necessarily but seems like it could be optimized.

I have some table intensive government specified forms that I am trying to create and the cell height that QPL is making me adhere to is causing dimension problems with the forms.

Thanks for your help.



Replies:
Posted By: erico
Date Posted: 24 Jun 15 at 6:00PM
This solution is not a "good" one, but  . . .

Draw everything a little too big, then Capture the page and reinsert it with smaller dimensions.

Ugly, but it will work


-------------
Eric O


Posted By: mdgodfrey
Date Posted: 24 Jun 15 at 6:20PM
Thanks for that thought.

I can also find the top and left of every cell and draw over the top of it. But in the case of text that's too long and needs to wrap I then have to calc each text and then draw the table appropriately. Then draw the text over top.

What I would really like to do leave the row height set to autosize, turn the padding off and have QPL respect that no padding means no padding and draw it accordingly. Right now autosize means that the row is half again the size it should be. So instead I try to set row height but then it doesn't draw the text.

So my respectful question to Debenu is do I need to create a work around at this point?
I ask because I have a serious deadline and want to know if I can look for a resolution or if it is best to use a work around?

It is so close to being a great solution for my project.





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