Page 2 of 7

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 8:45 pm
by Javier Tovar
Italia1 wrote:
Sorry for my stupid question :oops: :oops:
No digas eso amigo, simplemente tienes una pregunta! :D :D :D

Saludos

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 8:49 pm
by Javier Tovar
A lo mejor la pregunta seria, ¿Con "Print System" se puede enviar a un archivo *.PDF en ves de a una impresora?

Saludos

P.D.: Esperemos que alguien nos conteste! :D

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 8:53 pm
by Italia1
Javier Tovar wrote:
Italia1 wrote:
Sorry for my stupid question :oops: :oops:
No digas eso amigo, simplemente tienes una pregunta! :D :D :D

Saludos
Thanks - Muchas gracias !!! :D :D

Code: Select all

#xcommand @ <Row> , <Col> PRINT [ DATA ] <cText>
is the same command of

Code: Select all

#xcommand @ <Row> , <Col> HPDFPRINT [ DATA ] <cText>
PRINT is more confortable :lol:

Very beatiful users in HMG Forum!! :D

EDIT - With HPDFPRINT someone have underline or italic?

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 9:06 pm
by Javier Tovar
Italia1 wrote:
EDIT - With HPDFPRINT someone have underline or italic?
No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.

Saludos

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 9:14 pm
by Italia1
Javier Tovar wrote: No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.
Saludos
We hope this :D
I think that the solution is in my suggestion of my 1st post, but I don't konw how change the code :oops:
------
Te esperamos todos! :D
Creo que la solución es, de hecho, mi sugerencia en mi primer post. Pero no puedo cambiar el código. :oops:
-----
Lo speriamo tutti! :D
Penso che la soluzione sia nel mio suggerimento fatto nel mio primo post. Ma non so modificare il codice. :oops:

Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 9:27 pm
by Pablo César
Italia1 wrote:
Javier Tovar wrote: No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.
Saludos
We hope this :D
I think that the solution is in my suggestion of my 1st post, but I don't konw how change the code :oops:
------
Te esperamos todos! :D
Creo que la solución es, de hecho, mi sugerencia en mi primer post. Pero no puedo cambiar el código. :oops:
-----
Lo speriamo tutti! :D
Penso che la soluzione sia nel mio suggerimento fatto nel mio primo post. Ma non so modificare il codice. :oops:
Yes gentlemen. You are right ! UNDERLINE, ITALIC and also STRIKEOUT are not working in HMGHPDF. I made also tests in C:\HMG.3.2\hfcl\Samples\HMGHPDFDoc without good results. :(

I also checked in HMGHPDF source code in HMG_HPDF.Prg and seems is missing these properties.

Lets wait for Rathinagiri, whos is concerned in this job and give us any solution.

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 9:46 pm
by Italia1
Pablo César wrote:Yes gentlemen. You are right ! UNDERLINE, ITALIC and also STRIKEOUT are not working in HMGHPDF. I made also tests in C:\HMG.3.2\hfcl\Samples\HMGHPDFDoc without good results. :(

I also checked in HMGHPDF source code in HMG_HPDF.Prg and seems is missing these properties.

Lets wait for Rathinagiri, whos is concerned in this job and give us any solution.
Great Rathinagiri: we believe in you! Thank you for existing!
Regards and good night from Italy!

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 10:29 pm
by danielmaximiliano
Hola a todos :
intente modificar la libreria HMGPDF y volverla a construir para que tomepor defecto los siguientes valores y ningun resultado :cry:

Code: Select all

function _HMG_HPDF_PRINT ( nRow, nCol, cFontName, nFontSize, nRColor, nGColor, nBColor, cText, lBold, lItalic, lUnderline, lStrikeout, lColor, lFont, lSize, cAlign )
   local nWidth         := _HMG_SYSDATA[ 150 ][ 4 ]
   local nHeight        := _HMG_SYSDATA[ 150 ][ 5 ]
   local nTextWidth     := 0
   local nxPos          := _HMG_HPDF_MM2Pixel( nCol )
   local nyPos          := nHeight - _HMG_HPDF_MM2Pixel( nRow )
   local oFont          := Nil
   local cFont          := ''
   default cFontName   := ''
   default nFontSize   := 12
   default nRColor     := 0
   default nGColor     := 0
   default nBColor     := 0
   default lBold       := .T.
   default lItalic     := .T.
   default lUnderline  := .T.
   default lStrikeout  := .f.
   default lColor      := .f.
   default lFont       := .f.
   default lSize       := .f.
   default cAlign      := ''

la documentacion de HMGpdf dice :
@..HPDFPRINT
This command is used to render a single line of text data in the specified font, size, color and alignment at the specified row and column.
The text rendered is left aligned unless otherwise specified. Only following Base14 fonts are built-in.

Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Symbol, ZapfDingbats. The text will be rendered in the current character encoding.

Helvetica is the default font if no fontname is specified. Default fontsize is 12.

True Type Fonts can also be used if the absolute address of the True Type Font file is mentioned. Otherwise the TTF shall be required at the runtime in the same directory as of the executable file.

Sample : HPDFPRINT "The font is Tscparan.TTF" FONT "Tscparan.TTF" size 12
Leyendohttps://github.com/libharu/libharu/wiki/Fonts encontre que hay fuentes Italic o BoldItalic pero no Underline.
puede ser que unicamente "UnderLine" sea soportado con la carga de una fuente TTF subrayada

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 11:32 pm
by Javier Tovar
Gracias Pablo César y DanielMaximiliano por contestar, esperemos si Rathinagiri tiene una solución! :D

Saludos

Re: Underline and italic in PDF seems not work

Posted: Tue Apr 08, 2014 11:41 pm
by danielmaximiliano
Javier Tovar wrote:Gracias Pablo César y DanielMaximiliano por contestar, esperemos si Rathinagiri tiene una solución! :D

Saludos
Solo queda cargar las fuentes TTF con soporte Underline, las internas solo son estas
Built-in base14 fonts

Courier
Courier-Bold
Courier-Oblique
Courier-BoldOblique
Helvetica
Helvetica-Bold
Helvetica-Oblique
Helvetica-BoldOblique
Times-Roman
Times-Bold
Times-Italic
Times-BoldItalic
Symbol
ZapfDingbats

base14 fonts are only able to display the latin1 character set. To use other character sets, an application must use other fonts.