Does anybody know if it is possible to HPDFPRINT a string containing multiple sizes/colors mixed.
Something like this:
This string has multiple sizes and colors..
In HMGPDF :
@ nROW, nPOS HPDFPRINT 'This string has multiple sizes and colors.
obviously doesn't work but that how I would like to print a string.
I suppose it has to be done in more than 1 commands:
@ nROW, nPOS HPDFPRINT 'This '
@ nROW, nPOS+.. HPDFPRINT 'string' SIZE 10
@ nROW, nPOS+.. HPDFPRINT 'has'
etc.etc..
OR
Is there an easier way to it?
Thanks, Serge
HMGPDF
Moderator: Rathinagiri
- serge_girard
- Posts: 3420
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
HMGPDF
There's nothing you can do that can't be done...
Re: HMGPDF
I believe there is no other way than to write the various strings with specific properties such as color, size and font.
Anyway, I follow to learn something new
Anyway, I follow to learn something new
The Eart would be a good place without humans.
Re: HMGPDF
serge_girard wrote: ↑Tue Apr 26, 2022 1:39 pm Does anybody know if it is possible to HPDFPRINT a string containing multiple sizes/colors mixed.
Something like this:
This string has multiple sizes and colors..
In HMGPDF :
@ nROW, nPOS HPDFPRINT 'This string has multiple sizes and colors.
obviously doesn't work but that how I would like to print a string.
I suppose it has to be done in more than 1 commands:
@ nROW, nPOS HPDFPRINT 'This '
@ nROW, nPOS+.. HPDFPRINT 'string' SIZE 10
@ nROW, nPOS+.. HPDFPRINT 'has'
etc.etc..
OR
Is there an easier way to it?
Thanks, Serge
ola, Hello
@ 57, 30 HPDFPRINT "DATA1" FONT "Arial" SIZE 10 OLOR { 0, 0, 0 } CENTER
@ 57, 60 HPDFPRINT "DATA2" FONT "Arial" SIZE 12 COLOR { 0, 0, 0 } CENTER
@ 57, 90 HPDFPRINT "DATA"3 FONT "Arial" SIZE 14 COLOR { 0, 0, 0 } CENTER
@ 57, 120 HPDFPRINT "DATA4" FONT "Arial" SIZE 16 COLOR { 0, 0, 0 } CENTER