Estoy intentando utilizar esta clase pero al indicar una fuente de un color determinado con algunos colores me los cambia.
Pongo un ejemplo
#define HPDF_COMP_ALL 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 0x0F
// HPDF_TextAlignment
#define HPDF_TALIGN_LEFT 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽0
#define HPDF_TALIGN_RIGHT 聽 聽 聽 聽 聽 聽 聽 聽 聽 1
#define HPDF_TALIGN_CENTER 聽 聽 聽 聽 聽 聽 聽 聽 聽2
#define HPDF_TALIGN_JUSTIFY 聽 聽 聽 聽 聽 聽 聽 聽 3
#DEFINE AZUL聽 聽 CLR_BLUE聽 聽 //16711680
#DEFINE ROJO聽 聽 CLR_RED聽聽 聽 //255
#DEFINE VERDE聽 聽CLR_GREEN聽 聽//65280
STATIC FUNCTION TestHaru()
Local oPrint, oFont
oPrint := THaruPdf():New(".\pdf\testharu.pdf", NIL, NIL, NIL, .T., NIL)
oPrint:SetCompression( HPDF_COMP_ALL )
oFont := oPrint:DefineFont( 'Arial', 10 )
oPrint:StartPage()
WITH OBJECT oPrint
聽 聽 //METHOD CmRect( nTop, nLeft, nBottom, nRight, oPen, nColor )
聽 聽 :CmSay( 04.02, 10.2, "AZUL", 聽oFont, 5.0,AZUL 聽 聽 ,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 04.02, 12.2, "HBLUE", oFont, 5.0,CLR_HBLUE,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 04.52, 10.2, "VERDE", 聽oFont, 5.0,VERDE 聽 ,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 05.02, 10.2, "ROJO", 聽 oFont, 5.0,ROJO 聽 聽,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 05.52, 10.2, "GRAY", 聽 oFont, 5.0,CLR_GRAY,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 05.52, 10.2, "GRAY", 聽 oFont, 5.0,CLR_GRAY,, HPDF_TALIGN_LEFT )
聽 聽 :CmSay( 06.02, 10.2, "YELLOW", oFont, 5.0,CLR_YELLOW,, HPDF_TALIGN_LEFT )
聽 聽 :CmRect( 08.0, 10.0, 09, 16, 1, CLR_HBLUE)
聽 聽 聽:CmSay( 08.2, 10.2, "HBLUE 8,10, 09,16", oFont, 5.0,CLR_HBLUE,, HPDF_TALIGN_LEFT )
聽 聽 :CmRect( 10.0, 10.0, 11, 16, 2, CLR_HRED)
聽 聽 聽:CmSay( 10.2, 10.2, "HRED 10,10, 11,16", oFont, 5.0,CLR_RED, HPDF_TALIGN_LEFT )
聽 聽 //RoundBox( nTop, nLeft, nBottom, nRight, nWidth, nHeight, oPen, nColor, nBackColor )
聽 聽 聽:CMRoundBox( 聽 14, 聽 聽10, 聽 聽 聽15, 聽 聽 12, 聽 聽 0.1, 聽 聽 0.1, 聽 聽3, 聽CLR_HGREEN, 聽 聽 聽 聽CLR_YELLOW)
END
oPrint:EndPage()
oprint:eND()
RETURN NILAlguna pista
Gracias



