Print Page | Close Window

Right-align form field text gets overflowed

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=3780
Printed Date: 29 Mar 24 at 9:55AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Right-align form field text gets overflowed
Posted By: sugi
Subject: Right-align form field text gets overflowed
Date Posted: 10 Feb 20 at 2:25AM
Hi,
I'm using DebenuPDFLibrary64AX1711 on Windows 10.

My PDF file has a form field with a right-aligned text, and its font is Meiryo.
1. Setting new text(like "abcdefg") to the form field by SetFormFieldValue method.
2. Updating appearance and flattening the form field by UpdateAndFlattenFormField method.
3. Then I get flatten text with unexpected position!

I expected that the right side of the flatten text fits to the right side of the existed form field.
But the flatten text gets overflowed and a part of it gets disappeared.

How can I fix it?

Thank you.




Replies:
Posted By: Ingo
Date Posted: 10 Feb 20 at 11:23AM
Hi Sugi,

internally supported are only less fonts and these fonts all are readable from western world.
https://www.debenu.com/docs/pdf_library_reference/AddStandardFont.php
Using different fonts (like Meiryo) will activate to search a similar internal font treating the new font the same way.
This can result to the described issue.
Make a test with "Meiryo UI". It should match better.

For good quality it's better to add the truetypefontfile to the pdf, select the font... and then draw with it:
https://www.debenu.com/docs/pdf_library_reference/Fonts.php

Here you can read about how to add a CJK-font (should be interesting for you):
https://www.debenu.com/docs/pdf_library_developer_guide/foxit_quick_pdf_library_15_developer_guide.pdf

Cheers and welcome here,
Ingo



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



Posted By: sugi
Date Posted: 12 Feb 20 at 6:45AM
Hi Ingo,

Thank you for your attentive reply.
I understand deeply.

Thank you so much.



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