Page 1 of 1

HMGPDF

Posted: Tue Apr 26, 2022 1:39 pm
by serge_girard
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

Re: HMGPDF

Posted: Wed Apr 27, 2022 5:17 pm
by tryak96
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

Re: HMGPDF

Posted: Wed Apr 27, 2022 5:45 pm
by jairpinho
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