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 - Right-align form field text gets overflowed
  FAQ FAQ  Forum Search   Register Register  Login Login

Right-align form field text gets overflowed

 Post Reply Post Reply
Author
Message
sugi View Drop Down
Beginner
Beginner
Avatar

Joined: 09 Feb 20
Location: Japan
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote sugi Quote  Post ReplyReply Direct Link To This Post Topic: Right-align form field text gets overflowed
    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.

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3079
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sugi View Drop Down
Beginner
Beginner
Avatar

Joined: 09 Feb 20
Location: Japan
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote sugi Quote  Post ReplyReply Direct Link To This Post Posted: 12 Feb 20 at 6:45AM
Hi Ingo,

Thank you for your attentive reply.
I understand deeply.

Thank you so much.
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