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!
text is bleeding in tables |
Post Reply |
Author | |
Paulidis
Beginner Joined: 28 Jun 13 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 28 Jun 13 at 4:32PM |
Hello. I have an issue with text that is bleeding out of the table cell it belongs in.
here is a screen shot. https://dl.dropboxusercontent.com/u/978764/bleeding.png any help is appreciated! |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
The problem are the special characters. The library counts the place for each character and then there are single characters which could only be interpreted by more than one other characters. The place for the string can be counted only before. So try to extract the text completely readable and then the text will find a place in the box completely ;-) Try the search function here for fonts, character codes or similar ... Cheers and welcome here, Ingo |
|
Paulidis
Beginner Joined: 28 Jun 13 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thank you for your prompt response and thanks for making me feel welcome :)
Many apologies but I'm not quite sure what your answer means. Could you break it down for me? Thanks again. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Please have a look on your picture ;-) Not all characters could be displayed well - That's the reason for the problems. For example if your actual codepage can't display the character H then it will replace the character perhaps with abc - the library counts 1 place (for the H but the replacements needs 3 places - so this line will run out of the box. Perhaps you want to output a greec text in an english system environment without regarding the correct codepage to use? In this direction you should explore. Here in the forum sections you will probably find useful answers. Cheers, Ingo
|
|
Paulidis
Beginner Joined: 28 Jun 13 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Aha. I see. Thank you once again. I will take a look around and post my findings here for others.
|
|
Paulidis
Beginner Joined: 28 Jun 13 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
I did research and there is a lack of support on the matter. I don't understand why it wont just work. This lib should render Unicode characters properly without any configuration.
|
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
Your problem is simple to diagnose, but I cannot offer you a solution without knowing the basic information which you have failed to provide: what version of the library are you using and what programming language?
The three characters 'i with double-dot', 'upside-down questionmark' and 'one-half' are the normal western font rendering of hexadecimal EF BF BD. This is the UTF-8 encoding of the single character "REPLACEMENT CHARACTER (FFFD)" which is the result of converting a Unicode string to for example ASCII, which has no accented characters. So in your text where you have for example "Décembre" the "é" has been converted to the replacement character (usually rendered in Unicode as a white questionmark inside a black diamond shape). At some stage BEFORE passing to the Debenu library your text has had all its accented characters converted to this "don't know" character, and then to UTF-8. You have then treated this text as ANSI and passed it to a Debenu library function as such, so this single UTF-8 character has been rendered as the three ANSI characters you see. Obviously this causes the text to overflow its area, but your problem is the (many) encoding issues, not the rendering of the text. Show your actual code, and someone may be able to help you sort out the mess. |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
I forgot that this forum (unlike the Debenu library) does not support Unicode. Obviously what I wrote in the double quotes was "Decembre" and "e", each with an acute accent in the appropriate place!
|
|
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