Print Page | Close Window

superscript and normal text mixing

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=3724
Printed Date: 24 Apr 24 at 4:26AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: superscript and normal text mixing
Posted By: FredericP
Subject: superscript and normal text mixing
Date Posted: 25 Jun 19 at 2:20PM
Hi everyone,

I have to draw, in a specific rectangle, some text with superscript caracters inside.

"This is my 2nd test"  : "nd" should be superscrited

I currently use DrawTextBox or DrawRotatedTextBox and I don't know how can I achieve that goal...
A simple option could be to use DrawHTMLTextBox but with this function, I can't set the vertical aligment if I am right.

Do you have suggestions ? Lamp



Replies:
Posted By: Ingo
Date Posted: 25 Jun 19 at 9:54PM
No Frederic... no more suggestions.
You've yourself Draw... and DrawHtml... that's all.



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



Posted By: mLipok
Date Posted: 28 Jun 19 at 5:24AM
https://www.debenu.com/docs/pdf_library_reference/DrawHTMLText.php" rel="nofollow - https://www.debenu.com/docs/pdf_library_reference/DrawHTMLText.php
https://www.debenu.com/docs/pdf_library_reference/AppendixA.php" rel="nofollow - https://www.debenu.com/docs/pdf_library_reference/AppendixA.php

Func _Example()
......
Local $sHTMLText = '<p align="justified"><strong>2<sup>nd</sup></strong></p>'
$oQPDF.DrawHTMLText(100,20,180,$sHTMLText)
......
EndFunc


-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: FredericP
Date Posted: 05 Jul 19 at 11:05AM
Thanks for your replies, I will try to find some tricks...



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